/****** slider home js ******/ $(document).ready(function() { var owl = $('#sliderhome'); owl.owlcarousel({ margin: 10, nav: true, navtext: ["", ""], autoplay: true, loop: true, responsive: { 0: { items: 1 }, 600: { items: 1 }, 1000: { items: 1 } } }) }) /****** slidernews slider js ******/ $(document).ready(function() { var owl = $('#slidernews'); owl.owlcarousel({ margin: 10, nav: true, navtext: ["", ""], autoplay: true, loop: true, responsive: { 0: { items: 1 }, 600: { items: 2 }, 1000: { items: 3 } } }) }) /****** product slider js ******/ $(document).ready(function() { var owl = $('#product-slider-wrapper'); owl.owlcarousel({ margin: 10, nav: true, navtext: ["", ""], autoplay: true, loop: true, responsive: { 0: { items: 1 }, 600: { items: 1 }, 1000: { items: 1 } } }) }) /****** sliderproduct slider js ******/ $(document).ready(function() { var owl = $('#sliderproduct'); owl.owlcarousel({ margin: 10, nav: true, navtext: ["", ""], autoplay: true, loop: true, responsive: { 0: { items: 1 }, 600: { items: 2 }, 1000: { items: 3 } } }) }) /****** sliderproduct slider js ******/ $(document).ready(function() { var owl = $('#productapplication'); owl.owlcarousel({ margin: 10, nav: true, navtext: ["", ""], autoplay: true, loop: true, responsive: { 0: { items: 1 }, 600: { items: 1 }, 1000: { items: 1 } } }) }) /****** menu js ******/ jquery(document).ready(function(){ jquery(".toggle").click(function(){ jquery("ul.menu").toggleclass('open'); jquery("body").toggleclass('open'); }); jquery('html').click(function() { if (jquery('ul.menu').hasclass('open')){ jquery('ul.menu').removeclass('open'); jquery('body').removeclass('open'); } }); // replace mobile-nav with your entire nav container jquery('.nav_area').click(function(e){ e.stoppropagation(); }); jquery(window).load(function(){ jquery('li.menu-item-has-children > span').click(function() { jquery(this).next('.sub-menu').slidetoggle('500'); jquery(this).closest('li').siblings().find('ul').hide(); jquery(this).toggleclass('close-icon'); jquery(this).closest('li').siblings().find('span').removeclass('close-icon'); }); }); jquery('.sidebar-title').click(function(){ jquery(".sidemenu").slidetoggle(); }); jquery('ul.sidemenu1 li').click(function(){ jquery("ul.side-sub-menu").slidetoggle("slow"); }); }); /****** animate js ******/ jquery(document).ready(function(){ aos.init({ duration:1200, easing:"ease-out-cubic", delay:200, once:1 }); }); /****** bottom to top button******/ (function($) { "use strict"; $(document).ready(function(){"use strict"; var progresspath = document.queryselector('.progress-wrap path'); var pathlength = progresspath.gettotallength(); progresspath.style.transition = progresspath.style.webkittransition = 'none'; progresspath.style.strokedasharray = pathlength + ' ' + pathlength; progresspath.style.strokedashoffset = pathlength; progresspath.getboundingclientrect(); progresspath.style.transition = progresspath.style.webkittransition = 'stroke-dashoffset 10ms linear'; var updateprogress = function () { var scroll = $(window).scrolltop(); var height = $(document).height() - $(window).height(); var progress = pathlength - (scroll * pathlength / height); progresspath.style.strokedashoffset = progress; } updateprogress(); $(window).scroll(updateprogress); var offset = 50; var duration = 550; jquery(window).on('scroll', function() { if (jquery(this).scrolltop() > offset) { jquery('.progress-wrap').addclass('active-progress'); } else { jquery('.progress-wrap').removeclass('active-progress'); } }); jquery('.progress-wrap').on('click', function(event) { event.preventdefault(); jquery('html, body').animate({scrolltop: 0}, duration); return false; }) }); })(jquery);