/** * Theme Main Animation and transition JS File. * * @package Articled * @since Articled 1.0 * */ !function(e){"use strict";e(document).ready(function(){var s=function(){new LazyLoad({selector:".single-post-thumb img, .post-thumbnail img, .related-posts img",error:function(s,i){"missing"===i?e(this).innerHTML="Missing Image":"invalid"===i&&(e(this).innerHTML="Invalid Image")},breakpoints:[{width:420,src:"data-src-small"},{width:768,src:"data-src-medium"},{width:992,src:"data-src-large"}],successClass:"lazy-loaded",validateDelay:200})};s(),e("#content").find("a").has("img").addClass("imgwrap"),e("#content p").each(function(){var s=e(this);0==s.html().replace(/\s| /g,"").length&&s.addClass("empty")}),e(".next-slider, .prev-slider").each(function(i,t){e(this).on("click",function(){s()})}),e(".top-searchform .icons").on("click",function(){e(".searcharea").fadeIn()}),e(".closeme").on("click",function(){e(this).parent().fadeOut()}),e(window).width()>480?e(".menu-item-has-children").on("hover",function(){e(this).children(".sub-menu").slideToggle()}):e(".menu-item-has-children").on("click",function(){e(this).children(".sub-menu").slideToggle()}),e(window).bind("resize",function(){e(window).width()>480?e(".menu-item-has-children").on("hover",function(){e(this).children(".sub-menu").slideToggle()}):e(".menu-item-has-children").on("click",function(){e(this).children(".sub-menu").slideToggle()})}),e(".show-mobile").on("click",function(){e(".mobile-menu").slideToggle()}),e(".toggle-btn").on("click",function(){e("#toggleBar").slideToggle(),e("#toggle-icon").toggleClass("fa-plus"),e("#toggle-icon").toggleClass("fa-minus")}),e(".top-mobile .pull-right i").on("click",function(){e("#pull-topbar-text span").toggleClass("show"),e("#pull-topbar-text span").toggleClass("hide"),e(".top-mobile .pull-right i").toggleClass("fa-bars"),e(".top-mobile .pull-right i").toggleClass("fa-times"),e(".top-bar .social-icon, .top-bar .main-menu-wrap ").slideToggle()}),e(window).bind("resize",function(){var s=e(window).width();if(s>680&&e(".top-bar .main-menu-wrap , .top-bar .social-icon ").slideDown(),s<680){var i=".top-bar .main-menu-wrap , .top-bar .social-icon";e(".top-mobile .pull-right i").hasClass("fa-bars")?e(i).slideUp():(e(i).slideDown(),e(".top-mobile .pull-right i").addClass("fa-times"))}}),e(".slider, .body-content").on("click",function(){e("#slider-container").toggleClass("slider-opened"),e("#sliders").toggleClass("fa-align-center"),e("#sliders").toggleClass("fa-plus")}),e(".sliderclose").on("click",function(){e(".sliderclose").parent().toggleClass("slider-opened"),e("#sliders").toggleClass("fa-align-center"),e("#sliders").toggleClass("fa-plus")}),e(".comments-button").on("click",function(){e(".comments-list").slideToggle(),e(".comments-button .comments-text-show").fadeToggle(0),e(".comments-button .comments-text-hide").fadeToggle(0)}),e(window).on("scroll",function(){e("p, .textwidget, .rssSummary, .textwidget p ").each(function(s){var i=e(this).offset().top+e(this).outerHeight();e(window).scrollTop()+e(window).height()>i&&e(this).animate({opacity:"1"},500)})});var i=e(".scrollTop");e(window).on("scroll",function(){e(this).scrollTop()>1e3?e(i).css("opacity","1"):e(i).css("opacity","0")}),e(i).on("click",function(){return e("html, body").animate({scrollTop:0},800),!1}),e(".single-post-meta .comments").on("click",function(){e("html, body").animate({scrollTop:e(".single-comments").offset().top},1e3)})})}(jQuery),function(){for(function(){for(parents=document.getElementsByClassName("slideshow-container"),j=0;j