(function ($) { 'use strict'; new wow().init(); // mobile menu $('.mobile-menu nav').meanmenu({ meanscreenwidth: "991", meanmenucontainer: ".mobile-menu", meanmenuopen: " ", onepage: false, }); $(document).ready(function(){ // sticky menu=================== var wind = $(window); var sticky = $('#sticky-header'); wind.on('scroll', function () { var scroll = wind.scrolltop(); if (scroll <100) { sticky.removeclass('sticky-nav'); } else { sticky.addclass('sticky-nav'); } }); }); $(document).ready(function(){ // sticky menu=================== var wind = $(window); var sticky = $('#navbar'); wind.on('scroll', function () { var scroll = wind.scrolltop(); if (scroll <100) { sticky.removeclass('sticky-menu'); } else { sticky.addclass('sticky-menu'); } }); }); // loder // $(function () { $('body').addclass('loaded'); }); // slider $('.banner-carousel').owlcarousel({ items:1, autoplay:true, autoplaytimeout:5000, loop:true, animateout: 'fadeout', dots: false, }); // slider active $('.slider-list').owlcarousel({ loop: true, autoplay: true, autoplaytimeout: 10000, dots: false, dotseach:false, smartspeed:3000, nav: true, navtext: ["", ""], responsive: { 0: { items: 1 }, 768: { items: 1 }, 992: { items: 1 }, 1000: { items: 1 }, 1920: { items: 1 } } }) // slider active $('.slider-list').owlcarousel({ loop: true, autoplay: true, autoplaytimeout: 10000, dots: false, dotseach:false, smartspeed:3000, nav: true, navtext: ["", ""], responsive: { 0: { items: 1 }, 768: { items: 1 }, 992: { items: 1 }, 1000: { items: 1 }, 1920: { items: 1 } } }) // testimonial active $('.testi_list').owlcarousel({ loop: true, autoplay: true, autoplaytimeout: 10000, dots: false, nav: true, navtext: ["", ""], responsive: { 0: { items: 1 }, 768: { items: 1 }, 992: { items: 1 }, 1000: { items: 1 }, 1920: { items: 1 } } }) // brand active $('.brand_list').owlcarousel({ loop: true, autoplay: true, autoplaytimeout: 10000, dots: false, nav: false, navtext: ["", ""], responsive: { 0: { items: 2 }, 768: { items: 3 }, 992: { items: 4 }, 1000: { items: 5 }, 1920: { items: 6 } } }) // brand active $('.blog_list').owlcarousel({ loop: true, autoplay: true, autoplaytimeout: 10000, dots: false, nav: true, navtext: ["", ""], responsive: { 0: { items: 1 }, 768: { items: 1 }, 992: { items: 1 }, 1000: { items: 1 }, 1920: { items: 1 } } }) // brand active $('.blog_list-two').owlcarousel({ loop: true, autoplay: true, autoplaytimeout: 10000, dots: false, nav: true, navtext: [" previous", "next "], responsive: { 0: { items: 1 }, 768: { items: 1 }, 992: { items: 1 }, 1000: { items: 1 }, 1920: { items: 1 } } }) /*--------------------- wow active js --------------------- */ new wow().init(); // counterup $('.counter').counterup({ delay: 10, time: 1000 }); //header search if($('.search-box-outer').length) { $('.search-box-outer').on('click', function() { $('body').addclass('search-active'); }); $('.close-search').on('click', function() { $('body').removeclass('search-active'); }); } /* portfolio isotope */ $('.image_load').imagesloaded(function () { if ($.fn.isotope) { var $portfolio = $('.image_load'); $portfolio.isotope({ itemselector: '.grid-item', filter: '*', resizescontainer: true, layoutmode: 'masonry', transitionduration: '0.8s' }); $('.menu-filtering li').on('click', function () { $('.menu-filtering li').removeclass('current_menu_item'); $(this).addclass('current_menu_item'); var selector = $(this).attr('data-filter'); $portfolio.isotope({ filter: selector, }); }); }; }); // venubox $('.venobox').venobox({ numeratio: true, infinigall: true }); /*-------------------------- scrollup ---------------------------- */ $.scrollup({ scrolltext: '', easingtype: 'linear', scrollspeed: 900, animation: 'fade' }) jquery(document).ready(function ($) { "use strict"; // =======< accordion js >======== $(".accordion > li:eq(0) a").addclass("active").next().slidedown(); $('.accordion a').on('click', function (j) { var dropdown = $(this).closest("li").find("p"); $(this).closest(".accordion").find("p").not(dropdown).slideup(); if ($(this).hasclass("active")) { $(this).removeclass("active"); } else { $(this).closest(".accordion").find("a.active").removeclass("active"); $(this).addclass("active"); } dropdown.stop(false, true).slidetoggle(); j.preventdefault(); }); //=====< barfiller script >==== $('#bar1').barfiller({ duration: 7000 }); $('#bar2').barfiller({ duration: 7000 }); $('#bar3').barfiller({ duration: 7000 }); $('#bar4').barfiller({ duration: 7000 }); $('#bar5').barfiller({ duration: 7000 }); //======< custom tab >====== $('.tab ul.tabs').addclass('active').find('> li:eq(0)').addclass('current'); $(".tab ul.tabs li a").on("click", function (g) { var tab = $(this).closest('.tab'), index = $(this).closest('li').index(); tab.find('ul.tabs > li').removeclass('current'); $(this).closest('li').addclass('current'); tab.find('.tab_content').find('div.tabs_item').not('div.tabs_item:eq(' + index + ')').slideup(); tab.find('.tab_content').find('div.tabs_item:eq(' + index + ')').slidedown(); g.preventdefault(); }); }); // $(window).on('scroll', function () { var scrolled = $(window).scrolltop(); if (scrolled > 300) $('.go-top').addclass('active'); if (scrolled < 300) $('.go-top').removeclass('active'); }); $('.go-top').on('click', function () { $("html, body").animate({ scrolltop: "0" }, 1200); }); $(".circle_percent").each(function () { var $this = $(this), $datav = $this.data("percent"), $datadeg = $datav * 3.6, $round = $this.find(".round_per"); $round.css("transform", "rotate(" + parseint($datadeg + 180) + "deg)"); $this.append('