|
- $(window).on("load",function(){$(".side-menu").removeClass("hidden"),setTimeout(function(){$(".preloader").fadeOut()},1e3)});$("a.pagescroll").on("click",function(e){e.preventDefault(),$("html,body").animate({scrollTop:$(this.hash).offset().top},1200)});$("#sidemenu_toggle").length&&($("#sidemenu_toggle").on("click",function(){$(".pushwrap").toggleClass("active"),$(".side-menu").addClass("side-menu-active"),$("#close_side_menu").fadeIn(700)}),$("#close_side_menu").on("click",function(){$(".side-menu").removeClass("side-menu-active"),$(this).fadeOut(200),$(".pushwrap").removeClass("active")}),$(".side-nav .navbar-nav .nav-link").on("click",function(){$(".side-menu").removeClass("side-menu-active"),$("#close_side_menu").fadeOut(200),$(".pushwrap").removeClass("active")}),$("#btn_sideNavClose").on("click",function(){$(".side-menu").removeClass("side-menu-active"),$("#close_side_menu").fadeOut(200),$(".pushwrap").removeClass("active")}));$(window).width()>991&&(new WOW({boxClass:"wow",animateClass:"animated",offset:0,mobile:!1,live:!0}),new WOW().init());$("#js-grid-mosaic").cubeportfolio({filters:"#js-filters-mosaic",layoutMode:"grid",sortByDimension:!0,mediaQueries:[{width:1500,cols:2},{width:1100,cols:2},{width:768,cols:1},{width:480,cols:1,options:{gapHorizontal:60}}],defaultFilter:"*",animationType:"fadeIn",gapHorizontal:50,gapVertical:50,gridAdjustment:"responsive",caption:"zoom",lightboxDelegate:".cbp-lightbox",lightboxGallery:!0,lightboxTitleSrc:"data-title",lightboxCounter:'<div class="cbp-popup-lightbox-counter">{{current}} of {{total}}</div>',plugins:{loadMore:{element:"#js-loadMore-lightbox-gallery",action:"click",loadItems:5}}}).on("initComplete.cbp",function(){var e=$(this);$(".cbp-filter-item-active").attr("data-filter")==="*"?$("#js-loadMore-lightbox-gallery").addClass("active"):$("#js-loadMore-lightbox-gallery").removeClass("active"),e.find(".cbp-wrapper").find(".cbp-item:not(.cbp-item-off)").each(function(o){$(this).removeClass("even"),console.log(),$(this).css("left")!=="0px"&&$(this).addClass("even")})}).on("onAfterLoadMore.cbp",function(){var e=$(this);$("#js-loadMore-lightbox-gallery a").addClass("d-none"),$("#js-loadMore-lightbox-gallery").addClass("active-outer"),e.find(".cbp-wrapper").find(".cbp-item:not(.cbp-item-off)").each(function(o){$(this).removeClass("even"),console.log(),$(this).css("left")!=="0px"&&$(this).addClass("even")})}).on("filterComplete.cbp",function(){var e=$(this);$(".cbp-filter-item-active").attr("data-filter")==="*"?($("#js-loadMore-lightbox-gallery").addClass("active"),$("#js-loadMore-lightbox-gallery").removeClass("d-none")):($("#js-loadMore-lightbox-gallery").removeClass("active"),$("#js-loadMore-lightbox-gallery").addClass("d-none")),e.find(".cbp-wrapper").find(".cbp-item:not(.cbp-item-off)").each(function(o){$(this).removeClass("even"),$(this).css("left")!=="0px"&&$(this).addClass("even")})});$(".testimonial-box").owlCarousel({loop:!0,margin:20,slideSpeed:2e3,slideTransition:"linear",nav:!1,dots:!1,autoplay:!0,autoplayTimeout:5e3,autoplayHoverPause:!0,responsive:{0:{items:1},600:{items:1},1e3:{items:1}}});$("[data-fancybox]").fancybox({transitionIn:"elastic",transitionOut:"elastic",speedIn:600,speedOut:200,buttons:["slideShow","fullScreen","thumbs","share","zoom","close"]});jQuery(function(e){e(window).on("scroll",function(){e(this).scrollTop()>260?e("header").addClass("header-appear"):e("header").removeClass("header-appear")})});$(".scroll").on("click",function(e){e.preventDefault(),$("html,body").animate({scrollTop:$(this.hash).offset().top-88})});$(function(){$(window).on("scroll",function(){var e=$(window).scrollTop();e>600&&$(".go-top").addClass("active"),e<600&&$(".go-top").removeClass("active")}),$(".go-top").on("click",function(){$("html, body").animate({scrollTop:"0"},500)})});
|