/* Template: The Kings - Responsive Multi-purpose HTML5 Template Template URI: http://bootexperts.com Description: This is html5 template Author: BootExperts Author URI: http://bootexperts.com Version: 1.0 */ /*================================================ [ Table of contents ] ================================================ 01. jQuery MeanMenu 02. wow js active 03. scrollUp jquery active 04. slick carousel ====================================== [ End table content ] ======================================*/ (function($) { "use strict"; /*------------------------------------------- 01. jQuery MeanMenu --------------------------------------------- */ jQuery('nav#dropdown').meanmenu(); /*------------------------------------------- 02. wow js active --------------------------------------------- */ new WOW().init(); /*------------------------------------------- 03. scrollUp jquery active --------------------------------------------- */ $.scrollUp({ scrollText: '', easingType: 'linear', scrollSpeed: 900, animation: 'fade' }); /*------------------------------------------- 04. slick carousel --------------------------------------------- */ $('.total-what-we-do,.total-meal-day').slick({ slidesToShow: 3, slidesToScroll: 1, autoplay: false, autoplaySpeed: 5000, dots: false, arrows: true, prevArrow: '
', nextArrow: '
', responsive: [ { breakpoint: 1169, settings: { slidesToShow: 3, } }, { breakpoint: 969, settings: { slidesToShow: 2, } }, { breakpoint: 767, settings: { slidesToShow: 1, } }, ] }); $('.total-amazing-work').slick({ slidesToShow: 4, slidesToScroll: 1, autoplay: false, autoplaySpeed: 5000, dots: false, arrows: true, prevArrow: '
', nextArrow: '
', responsive: [ { breakpoint: 1169, settings: { slidesToShow: 3, } }, { breakpoint: 969, settings: { slidesToShow: 2, } }, { breakpoint: 767, settings: { slidesToShow: 1, } }, ] }); $('.total-single-product').slick({ slidesToShow: 3, slidesToScroll: 1, autoplay: false, autoplaySpeed: 5000, dots: false, arrows: true, prevArrow: '
', nextArrow: '
', responsive: [ { breakpoint: 1169, settings: { slidesToShow: 3, } }, { breakpoint: 969, settings: { slidesToShow: 2, } }, { breakpoint: 767, settings: { slidesToShow: 1, } }, ] }); $('.total-onsale-product,.total-related-portfolio').slick({ slidesToShow: 4, slidesToScroll: 1, autoplay: false, autoplaySpeed: 5000, dots: false, arrows: true, prevArrow: '
', nextArrow: '
', responsive: [ { breakpoint: 1169, settings: { slidesToShow: 4, } }, { breakpoint: 969, settings: { slidesToShow: 3, } }, { breakpoint: 767, settings: { slidesToShow: 2, } }, { breakpoint: 479, settings: { slidesToShow: 1, } }, ] }); $('.total-onsale-product-2,.total-related-portfolio-2').slick({ slidesToShow: 4, slidesToScroll: 1, autoplay: false, autoplaySpeed: 5000, dots: true, arrows: false, responsive: [ { breakpoint: 1169, settings: { slidesToShow: 4, } }, { breakpoint: 969, settings: { slidesToShow: 3, } }, { breakpoint: 767, settings: { slidesToShow: 2, } }, { breakpoint: 479, settings: { slidesToShow: 1, } }, ] }); $('.total-sale-product').slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: false, autoplaySpeed: 5000, dots: false, arrows: false, prevArrow: '
', nextArrow: '
', responsive: [ { breakpoint: 1169, settings: { slidesToShow: 1, } }, { breakpoint: 969, settings: { slidesToShow: 1, } }, { breakpoint: 767, settings: { slidesToShow: 1, } }, ] }); $('.total-brand').slick({ slidesToShow: 5, slidesToScroll: 1, autoplay: false, autoplaySpeed: 5000, dots: false, arrows: false, responsive: [ { breakpoint: 1169, settings: { slidesToShow: 5, } }, { breakpoint: 969, settings: { slidesToShow: 4, } }, { breakpoint: 767, settings: { slidesToShow: 2, } }, ] }); $('.total-what-we-res').slick({ slidesToShow: 3, slidesToScroll: 3, autoplay: false, autoplaySpeed: 5000, dots: true, arrows: false, responsive: [ { breakpoint: 1169, settings: { slidesToShow: 3, } }, { breakpoint: 969, settings: { slidesToShow: 3, } }, { breakpoint: 767, settings: { slidesToShow: 1, } }, ] }); $('.total-client-say,.total-rs-stuff').slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: false, autoplaySpeed: 5000, dots: true, arrows: false, responsive: [ { breakpoint: 1169, settings: { slidesToShow: 1, } }, { breakpoint: 969, settings: { slidesToShow: 1, } }, { breakpoint: 767, settings: { slidesToShow: 1, } }, ] }); // slick slider for mouse wheel var myCarousel= $('.blog-img-slider'); myCarousel.slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: false, autoplaySpeed: 5000, dots: true, arrows: false, responsive: [ { breakpoint: 1169, settings: { slidesToShow: 1, } }, { breakpoint: 969, settings: { slidesToShow: 1, } }, { breakpoint: 767, settings: { slidesToShow: 1, } }, ] }); myCarousel.mousewheel(function(e) { e.preventDefault(); if (e.deltaY < 0) { $(this).slick('slickNext'); } else { $(this).slick('slickPrev'); } }); $('.total-amazing-team').slick({ slidesToShow: 6, slidesToScroll: 1, autoplay: false, autoplaySpeed: 5000, dots: false, arrows: true, prevArrow: '
', nextArrow: '
', responsive: [ { breakpoint: 1169, settings: { slidesToShow: 5, } }, { breakpoint: 969, settings: { slidesToShow: 3, } }, { breakpoint: 767, settings: { slidesToShow: 2, } }, { breakpoint: 479, settings: { slidesToShow: 1, } }, ] }); $('.total-from-blog').slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: false, autoplaySpeed: 5000, dots: false, arrows: true, prevArrow: '
', nextArrow: '
', responsive: [ { breakpoint: 1169, settings: { slidesToShow: 1, } }, { breakpoint: 969, settings: { slidesToShow: 1, } }, { breakpoint: 767, settings: { slidesToShow: 1, } }, ] }); $('#gallery_01').slick({ slidesToShow: 4, slidesToScroll: 1, autoplay: false, autoplaySpeed: 5000, dots: false, arrows: true, prevArrow: '
', nextArrow: '
', responsive: [ { breakpoint: 1169, settings: { slidesToShow: 4, } }, { breakpoint: 969, settings: { slidesToShow: 3, } }, { breakpoint: 767, settings: { slidesToShow: 2, } }, ] }); $('.thumbnail-carousel').slick({ slidesToShow: 5, slidesToScroll: 1, autoplay: false, autoplaySpeed: 5000, dots: false, draggable: true, arrows: false, vertical: true, verticalSwiping: true, responsive: [ { breakpoint: 1169, settings: { slidesToShow: 5, } }, { breakpoint: 969, settings: { slidesToShow: 4, } }, { breakpoint: 767, settings: { slidesToShow: 3, } }, ] }); /*---------------------------- fancybox active ------------------------------ */ $(document).ready(function() { $('.fancybox').fancybox(); }); /*---------------------------- Elevate Zoom active ------------------------------ */ $("#zoom_03").elevateZoom({ constrainType: "height", zoomType: "lens", containLensZoom: true, gallery: 'gallery_01', cursor: 'pointer', galleryActiveClass: "active" }); //pass the images to Fancybox $("#zoom_03").on("click", function(e) { var ez = $('#zoom_03').data('elevateZoom'); $.fancybox(ez.getGalleryList()); return false; }); /************************* tooltip *************************/ $('[data-toggle="tooltip"]').tooltip({ animated: 'fade', placement: 'top', container: 'body' }); /*---------------------------- counterUp ------------------------------ */ $('.counter2').counterUp({ delay: 10, time: 1000 }); /*--------------------- Circular Bars - Knob --------------------- */ if(typeof($.fn.knob) != 'undefined') { $('.knob').each(function () { var $this = $(this), knobVal = $this.attr('data-rel'); $this.knob({ 'draw' : function () { $(this.i).val(this.cv + '%') } }); $this.appear(function() { $({ value: 0 }).animate({ value: knobVal }, { duration : 2000, easing : 'swing', step : function () { $this.val(Math.ceil(this.value)).trigger('change'); } }); }, {accX: 0, accY: -150}); }); } /*---------------------------- mixItUp ------------------------------ */ $('#mix-fil').mixItUp(); /*---------------------------- price-slider active ------------------------------ */ $( "#slider-range" ).slider({ range: true, min: 40, max: 600, values: [ 40, 600 ], slide: function( event, ui ) { $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] ); } }); $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) + " - $" + $( "#slider-range" ).slider( "values", 1 ) ); /*---------------------------- treeview active ------------------------------ */ $("#cat-treeview ul").treeview({ animated: "normal", persist: "location", collapsed: true, unique: true, }); /*---------------------------- accordion add class ------------------------------ */ $('.panel-title a').on('click', function(){ $('.panel-2').removeClass('active'); $(this).parent('.panel-title').parent('.panel-heading').parent('.panel-2').addClass('active'); }) $('.acc-toggle').on('click', function(){ if ($('.acc-toggle input').is(':checked')) { $('.create-acc-body').slideDown(); }else{ $('.create-acc-body').slideUp(); } }); $('.ship-toggle').on('click', function(){ if ($('.ship-toggle input').is(':checked')) { $('.ship-acc-body').slideDown(); }else{ $('.ship-acc-body').slideUp(); } }); })(jQuery); /* $(window).scroll(function() { if ($(this).scrollTop() > 1){ $('#sticky-header').addClass("sticky"); } else{ $('#sticky-header').removeClass("sticky"); } });*/