(function($){("use strict");Pace.Options={ajax:!1,document:!1,eventLag:!1,};Pace.on("done",function(){$("#preloader").addClass("isdone");$(".loading").addClass("isdone")});function mousecursor(){if($("body")){const e=document.querySelector(".cursor-inner"),t=document.querySelector(".cursor-outer");let n,i=0,o=!1;(window.onmousemove=function(s){o||(t.style.transform="translate("+s.clientX+"px, "+s.clientY+"px)"),(e.style.transform="translate("+s.clientX+"px, "+s.clientY+"px)"),(n=s.clientY),(i=s.clientX)}),$("body").on("mouseenter","a, .cursor-pointer",function(){e.classList.add("cursor-hover"),t.classList.add("cursor-hover")}),$("body").on("mouseleave","a, .cursor-pointer",function(){($(this).is("a")&&$(this).closest(".cursor-pointer").length)||(e.classList.remove("cursor-hover"),t.classList.remove("cursor-hover"))}),(e.style.visibility="visible"),(t.style.visibility="visible")}} $(function(){mousecursor()});$(".header-area nav").meanmenu();var fixed_top=$(".header-area");$(window).on("scroll",function(){if($(this).scrollTop()>300){fixed_top.addClass("menu-fixed animated fadeInDown")}else{fixed_top.removeClass("menu-fixed fadeInDown")}});$(window).scroll(function(){var scrollPos=$(document).scrollTop();$("section").each(function(){var offsetTop=$(this).offset().top;var height=$(this).height();var id=$(this).attr("id");if(scrollPos>=offsetTop&&scrollPos'+'
'+''+"",patterns:{youtube:{index:"youtube.com/",id:"v=",src:"https://www.youtube.com/embed/%id%?autoplay=1",},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1",},gmaps:{index:"//maps.google.",src:"%id%&output=embed",},},srcAction:"iframe_src",},});$(".count").counterUp({delay:30,time:3000,});$(".progress-count").counterUp({delay:30,time:1000,});$(document).ready(function(){$("select").niceSelect()});$(".footer-popup").magnificPopup({type:"image",gallery:{enabled:!0,},});var scrollPath=document.querySelector(".scroll-up path");var pathLength=scrollPath.getTotalLength();scrollPath.style.transition=scrollPath.style.WebkitTransition="none";scrollPath.style.strokeDasharray=pathLength+" "+pathLength;scrollPath.style.strokeDashoffset=pathLength;scrollPath.getBoundingClientRect();scrollPath.style.transition=scrollPath.style.WebkitTransition="stroke-dashoffset 10ms linear";var updatescroll=function(){var scroll=$(window).scrollTop();var height=$(document).height()-$(window).height();var scroll=pathLength-(scroll*pathLength)/height;scrollPath.style.strokeDashoffset=scroll};updatescroll();$(window).scroll(updatescroll);var offset=50;var duration=950;jQuery(window).on("scroll",function(){if(jQuery(this).scrollTop()>offset){jQuery(".scroll-up").addClass("active-scroll")}else{jQuery(".scroll-up").removeClass("active-scroll")}});jQuery(".scroll-up").on("click",function(event){event.preventDefault();jQuery("html, body").animate({scrollTop:0,},duration);return!1})})(jQuery)