1 |
- jQuery(function(a){a(window).on("scroll",function(){if(a(this).scrollTop()>30){a(".navbar-area").addClass("is-sticky")}else{a(".navbar-area").removeClass("is-sticky")}});jQuery(".mean-menu").meanmenu({meanScreenWidth:"1199"});a(".others-option-for-responsive .dot-menu").on("click",function(){a(".others-option-for-responsive .container .container").toggleClass("active")});a(".language-option").each(function(){var j=a(this);j.find(".lang-name").html(j.find(".language-dropdown-menu a:nth-child(1)").text());var i=a(".language-dropdown-menu").children("a");j.find(".language-dropdown-menu").on("click","a",function(){i.removeClass("selected");a(this).addClass("selected");a(this).closest(".language-option").find(".lang-name").html(a(this).text())})});a(".close-btn").on("click",function(){a(".search-overlay").fadeOut();a(".search-btn").show();a(".close-btn").removeClass("active")});a(".search-btn").on("click",function(){a(this).hide();a(".search-overlay").fadeIn();a(".close-btn").addClass("active")});a(".main-slides-area").mousemove(function(i){var l=a(window).width();var m=a(window).height();var n=i.pageX-this.offsetLeft;var o=i.pageY-this.offsetTop;var j=n-l/2;var k=o-m/2;a(".main-slides-image").each(function(){var p=a(this).attr("data-speed");if(a(this).attr("data-revert")){p*=-0.4}TweenMax.to(a(this),1,{x:(1-j*p),y:(1-k*p)})})});var c=new ScrollMagic.Controller();a(".main-slides-content h1, .about-content h3, .services-section-content h3, .section-title h2, .testimonials-section-content h3, .main-hero-content h1, .skill-content h3, .main-banner-content h1, .about-wrap-content h3, .talk-content h3, .projects-section-content h3, .projects-info-content h3").each(function(){var k=new TimelineMax();if(k.isActive()){return false}var i=a(this).find(".overlay");k.from(i,0.5,{scaleX:0,transformOrigin:"left"});k.to(i,0.5,{scaleX:0,transformOrigin:"right"},"reveal");var j=new ScrollMagic.Scene({triggerElement:this,triggerHook:0.7}).setTween(k).addTo(c)});a(".home-slides").owlCarousel({loop:true,nav:false,dots:true,animateOut:"fadeOut",smartSpeed:1500,autoplayTimeout:1500,autoplayHoverPause:true,autoplay:true,autoHeight:true,items:1,navText:["<i class='ri-arrow-left-s-line'></i>","<i class='ri-arrow-right-s-line'></i>"],});a(".hero-slides").owlCarousel({loop:true,nav:false,dots:true,animateOut:"fadeOut",smartSpeed:2000,autoplayTimeout:2000,autoplayHoverPause:true,autoplay:true,autoHeight:true,items:1,navText:["<i class='ri-arrow-left-s-line'></i>","<i class='ri-arrow-right-s-line'></i>"],});a(".partner-slides").owlCarousel({loop:true,nav:false,dots:false,smartSpeed:500,margin:25,autoplayHoverPause:true,autoplay:true,responsive:{0:{items:2},576:{items:3},768:{items:3},1024:{items:4},1200:{items:6}}});a(".services-slides").owlCarousel({loop:true,nav:false,dots:true,smartSpeed:500,margin:25,center:true,autoplayHoverPause:true,autoplay:false,responsive:{0:{items:1},768:{items:2},1024:{items:3},1200:{items:3}}});a(".services-slides-two").owlCarousel({loop:true,nav:false,dots:true,smartSpeed:500,margin:25,center:true,autoplayHoverPause:true,autoplay:true,responsive:{0:{items:1},768:{items:2},1024:{items:3},1200:{items:4}}});a(".projects-slides").owlCarousel({loop:true,nav:true,dots:false,smartSpeed:500,margin:25,center:true,autoplayHoverPause:true,autoplay:true,navText:["<i class='ri-arrow-left-s-line'></i>","<i class='ri-arrow-right-s-line'></i>"],responsive:{0:{items:1},768:{items:2},1024:{items:3},1200:{items:4}}});a(".projects-slides-two").owlCarousel({loop:true,nav:true,dots:false,smartSpeed:500,margin:25,autoplayHoverPause:true,autoplay:true,navText:["<i class='ri-arrow-left-s-line'></i>","<i class='ri-arrow-right-s-line'></i>"],responsive:{0:{items:1},768:{items:2},1024:{items:2},1200:{items:2}}});a(".blog-slides").owlCarousel({loop:true,nav:true,dots:false,smartSpeed:500,margin:25,autoplayHoverPause:true,autoplay:true,navText:["<i class='ri-arrow-left-s-line'></i>","<i class='ri-arrow-right-s-line'></i>"],responsive:{0:{items:1},768:{items:2},1200:{items:2}}});a(".testimonials-slides").owlCarousel({loop:true,nav:false,dots:true,smartSpeed:500,margin:25,center:true,autoplayHoverPause:true,autoplay:true,responsive:{0:{items:1},768:{items:2},1024:{items:3},1200:{items:4}}});a(".article-image-slides").owlCarousel({loop:true,nav:true,dots:false,animateOut:"fadeOut",smartSpeed:1500,autoplayTimeout:1500,autoplayHoverPause:true,autoplay:true,autoHeight:true,margin:15,items:1,navText:["<i class='ri-arrow-left-s-line'></i>","<i class='ri-arrow-right-s-line'></i>"],});a(".popup-youtube").magnificPopup({disableOn:320,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:false,fixedContentPos:false});a(".newsletter-form").validator().on("submit",function(i){if(i.isDefaultPrevented()){d();g(false,"Please enter your email correctly.")}else{i.preventDefault()}});function b(i){if(i.result==="success"){e()}else{d()}}function e(){a(".newsletter-form")[0].reset();g(true,"Thank you for subscribing!");setTimeout(function(){a("#validator-newsletter").addClass("hide")},4000)}function d(){a(".newsletter-form").addClass("animated shake");setTimeout(function(){a(".newsletter-form").removeClass("animated shake")},1000)}function g(k,i){if(k){var j="validation-success"}else{var j="validation-danger"}a("#validator-newsletter").removeClass().addClass(j).text(i)}a(".newsletter-form").ajaxChimp({url:"https://envytheme.us20.list-manage.com/subscribe/post?u=60e1ffe2e8a68ce1204cd39a5&id=42d6d188d9",callback:b});function f(){var j=new Date("September 20, 2025 17:00:00 PDT");var j=(Date.parse(j))/1000;var m=new Date();var m=(Date.parse(m)/1000);var o=j-m;var i=Math.floor(o/86400);var k=Math.floor((o-(i*86400))/3600);var l=Math.floor((o-(i*86400)-(k*3600))/60);var n=Math.floor((o-(i*86400)-(k*3600)-(l*60)));if(k<"10"){k="0"+k}if(l<"10"){l="0"+l}if(n<"10"){n="0"+n}a("#days").html(i+"<span>Days</span>");a("#hours").html(k+"<span>Hours</span>");a("#minutes").html(l+"<span>Minutes</span>");a("#seconds").html(n+"<span>Seconds</span>")}setInterval(function(){f()},0);a(".odometer").appear(function(i){var j=a(".odometer");j.each(function(){var k=a(this).attr("data-count");a(this).html(k)})});jQuery(".skill-bar").each(function(){jQuery(this).find(".progress-content").animate({width:jQuery(this).attr("data-percentage")},2000);jQuery(this).find(".progress-number-mark").animate({left:jQuery(this).attr("data-percentage")},{duration:2000,step:function(k,j){var i=Math.round(k);jQuery(this).find(".percent").html(i+"%")}})});a("#Container").mixItUp();a("select").niceSelect();a(".input-counter").each(function(){var n=jQuery(this),k=n.find('input[type="text"]'),j=n.find(".plus-btn"),i=n.find(".minus-btn"),m=k.attr("min"),l=k.attr("max");j.on("click",function(){var p=parseFloat(k.val());if(p>=l){var o=p}else{var o=p+1}n.find("input").val(o);n.find("input").trigger("change")});i.on("click",function(){var p=parseFloat(k.val());if(p<=m){var o=p}else{var o=p-1}n.find("input").val(o);n.find("input").trigger("change")})});AOS.init();if(a(".wow").length){var h=new WOW({mobile:false});h.init()}a(window).on("scroll",function(){var i=a(window).scrollTop();if(i>600){a(".go-top").addClass("active")}if(i<600){a(".go-top").removeClass("active")}});a(".go-top").on("click",function(){a("html, body").animate({scrollTop:"0"},500)});jQuery(window).on("load",function(){jQuery(".preloader").fadeOut(500)})}(jQuery));
|