You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

2 line
3.8 KiB

  1. jQuery(window).on("load",function(){$("#loader-fade").fadeOut(800)});jQuery(function(e){var a=e(window),n=e(window).width();if(e(".scroll").on("click",function(t){t.preventDefault(),e("html,body").animate({scrollTop:e(this.hash).offset().top-40},1100)}),e("nav.navbar").hasClass("static-nav")&&e(window).on("scroll",function(){var t=a.scrollTop(),i=e(".static-nav");t>=80?i.addClass("fixed-menu"):i.removeClass("fixed-menu")}),e("nav.navbar").hasClass("bottom-nav")){var r=e(".bottom-nav").offset().top;e(window).on("scroll",function(){a.scrollTop()>r?e(".bottom-nav").addClass("fixed-menu"):e(".bottom-nav").removeClass("fixed-menu")})}e("nav.navbar").hasClass("bottom-nav")&&e(window).on("scroll",function(){var t=a.scrollTop(),i=e(".bottom-nav");t>=400?i.addClass("scroll-menu"):i.removeClass("scroll-menu")}),e(window).on("scroll",function(){e(this).scrollTop()>=80?e("header").addClass("header-appear"):e("header").removeClass("header-appear")}),e("#sidemenu_toggle").length&&(e("#sidemenu_toggle").on("click",function(){e(".pushwrap").toggleClass("active"),e(".side-menu").addClass("side-menu-active"),e("#close_side_menu").fadeIn(700)}),e("#close_side_menu").on("click",function(){e(".side-menu").removeClass("side-menu-active"),e(this).fadeOut(200),e(".pushwrap").removeClass("active")}),e(".side-nav .navbar-nav .nav-link").on("click",function(){e(".side-menu").removeClass("side-menu-active"),e("#close_side_menu").fadeOut(200),e(".pushwrap").removeClass("active")}),e("#btn_sideNavClose").on("click",function(){e(".side-menu").removeClass("side-menu-active"),e("#close_side_menu").fadeOut(200),e(".pushwrap").removeClass("active")})),e(window).width()>767&&(new WOW({boxClass:"wow",animateClass:"animated",offset:0,mobile:!1,live:!0}),new WOW().init());function o(){var t=e(".full-screen");t.css("height",a.height()),t.css("width",a.width())}o(),a.resize(function(){o()}),e(".stats").each(function(){e(".numscroller").appear(function(){e(this).prop("Counter",0).animate({Counter:e(this).text()},{duration:5e3,easing:"swing",step:function(t){e(this).text(Math.ceil(t))}})})}),e(".progress-bar").each(function(){e(this).appear(function(){e(this).animate({width:e(this).attr("aria-valuenow")+"%"},2e3)})}),n>992&&e(".parallaxie").parallaxie({speed:.4,offset:0}),e(".gallery").isotope({itemSelector:".items"});var c=e(".gallery").isotope({});e(".filtering").on("click","span",function(){var t=e(this).attr("data-filter");c.isotope({filter:t})}),e(".filtering").on("click","span",function(){e(this).addClass("active").siblings().removeClass("active")}),setTimeout(function(){e(".filtering .active").click()},1500),e("[data-fancybox]").fancybox({protect:!0,animationEffect:"fade",hash:null}),l(),a.on("resize",function(){l()});function l(){var t=e(".equalheight");t.length&&n>767&&t.matchHeight({property:"height"})}if(e("#typewriting").length){var s=document.getElementById("typewriting"),u=new Typewriter(s,{loop:!0});u.typeString("Way to achieve success").pauseFor(2e3).deleteAll().typeString("Style to achieve success").pauseFor(2e3).deleteAll().typeString("Method to achieve success").start()}if(e("#personal").length){var s=document.getElementById("personal"),d=new Typewriter(s,{loop:!0});d.typeString("Photographer").pauseFor(2e3).deleteAll().typeString("Traveler").pauseFor(2e3).deleteAll().typeString("Model").start()}e(".testimonial-two").owlCarousel({loop:!0,smartSpeed:500,responsiveClass:!0,nav:!1,dots:!0,dotsContainer:".owl-thumbs",autoplay:!0,autoplayHoverPause:!0,autoplayTimeout:3e3,responsive:{0:{items:1,margin:30},480:{items:1,margin:30},992:{items:1,margin:30}}}),e(".brand-carousel").owlCarousel({margin:75,nav:!1,navText:['<i class="ti ti-angle-left"></i>','<i class="ti ti-angle-right"></i>'],dots:!1,autoWidth:!1,autoplay:300,autoplayHoverPause:!1,loop:!0,responsive:{0:{items:1},480:{items:2},600:{items:4},1e3:{items:5}}})});