(function($) { 'use strict' CheckPositionMobile(); /* Revolution Slider */ jQuery('.tp-banner').show().revolution({ dottedOverlay: "none", delay: 3500, startwidth: 1170, startheight: 700, hideThumbs: 200, thumbWidth: 100, thumbHeight: 50, thumbAmount: 5, navigationType: "bullet", navigationArrows: "hide", navigationStyle: "preview1", navigationInGrid: "off", touchenabled: "on", onHoverStop: "off", swipe_velocity: 0.7, swipe_min_touches: 1, swipe_max_touches: 1, drag_block_vertical: false, parallax: "mouse", parallaxBgFreeze: "on", parallaxLevels: [7, 4, 3, 2, 5, 4, 3, 2, 1, 0], keyboardNavigation: "off", navigationHAlign: "center", navigationVAlign: "bottom", navigationHOffset: 0, navigationVOffset: 20, soloArrowLeftHalign: "left", soloArrowLeftValign: "center", soloArrowLeftHOffset: 20, soloArrowLeftVOffset: 0, soloArrowRightHalign: "right", soloArrowRightValign: "center", soloArrowRightHOffset: 20, soloArrowRightVOffset: 0, shadow: 0, fullWidth: "off", fullScreen: "on", spinner: "spinner4", stopLoop: "off", stopAfterLoops: -1, stopAtSlide: -1, shuffle: "off", autoHeight: "off", forceFullWidth: "off", hideThumbsOnMobile: "off", hideNavDelayOnMobile: 1500, hideBulletsOnMobile: "off", hideArrowsOnMobile: "off", hideThumbsUnderResolution: 0, hideSliderAtLimit: 0, hideCaptionAtLimit: 0, hideAllCaptionAtLilmit: 0, startWithSlide: 0, fullScreenOffsetContainer: ".header-reduce" }); /* Owl Carousel For All product slider */ if ($('.owl-carousel').length) { $('.owl-carousel').each(function() { var owl = $('.owl-carousel'); $(this).owlCarousel({ margin: 30, loop: true, autoplayTimeout: $(this).data('autotime'), smartSpeed: $(this).data('speed'), autoplay: $(this).data('autoplay'), items: $(this).data('carousel-items'), nav: $(this).data('nav'), dots: $(this).data('dots'), responsive: { 0: { items: $(this).data('mobile'), margin: 15 }, 768: { items: $(this).data('tablet') }, 992: { items: $(this).data('laptop') }, 1200: { items: $(this).data('items') } } }); }); } $('.multiple-items').slick({ infinite: true, slidesToShow: 3, slidesToScroll: 3, responsive: [{ breakpoint: 991, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 767, settings: { slidesToShow: 1, slidesToScroll: 1, } } ] }); /* Slick Slider Call Here... */ $('.slider-for').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: false, fade: false, asNavFor: '.slider-nav' }); $('.slider-nav').slick({ slidesToShow: 4, slidesToScroll: 1, asNavFor: '.slider-for', dots: false, centerMode: false, focusOnSelect: true, responsive: [{ breakpoint: 991, settings: { arrows: true, centerMode: false, slidesToShow: 3 } }, { breakpoint: 480, settings: { arrows: true, centerMode: false, slidesToShow: 3 } } ] }); //Initiat WOW JS new WOW().init(); /* Magnificate Popup call here... */ $('.magnific-popup').magnificPopup({ type: 'image' }); $('.galeri').magnificPopup({ type: 'image', gallery: { enabled: true, navigateByImgClick: true, preload: [0,1] } }); $('.magnific-youtube').magnificPopup({ type: 'iframe' }); function CheckPositionMobile() { if (window.matchMedia('(max-width: 991px)').matches) { /* Scroll Bar Plugin Call here... */ (function($) { $(window).on('load', function() { $(".menu-main").mCustomScrollbar({ theme: "minimal" }); }); })(jQuery); } } /* Steller Parallax */ $.stellar({ horizontalScrolling: false, verticalScrolling: true, horizontalOffset: 0, verticalOffset: 0, responsive: true, scrollProperty: 'scroll', positionProperty: 'position', parallaxBackgrounds: true, parallaxElements: true, hideDistantElements: true, hideElement: function($elem) { $elem.hide(); }, showElement: function($elem) { $elem.show(); } }); $(window).on('load', function() { if ($(".portfolioContainer").length || $(".gallery-filter").length) { var $container = $('.portfolioContainer , .gallery-filter'); $container.isotope({ layoutMode: 'masonry', animationOptions: { duration: 750, easing: 'linear', queue: false, } }); $('.portfolioFilter a , .galleryportfolio a').on('click', function() { $('.portfolioFilter .current , .galleryportfolio .current').removeClass('current'); $(this).addClass('current'); var selector = $(this).attr('data-filter'); $container.isotope({ layoutMode: 'masonry', filter: selector, animationOptions: { duration: 750, easing: 'linear', queue: false, } }); return false; }); } if ($(".gallery-packery").length) { var $container = $('.gallery-packery .gallery-filter'); $container.isotope({ layoutMode: 'packery', itemSelector: '.msrItem', packery: { }, animationOptions: { duration: 750, easing: 'linear', queue: false } }); $('.gallery-packery .galleryportfolio a').on('click', function() { $('.gallery-packery .galleryportfolio .current').removeClass('current'); $(this).addClass('current'); var selector = $(this).attr('data-filter'); $container.isotope({ layoutMode: 'packery', itemSelector: '.msrItem', filter: selector, animationOptions: { duration: 750, easing: 'linear', queue: false } }); return false; }); } }); $(window).on('resize', function() { CheckPositionMobile(); }); /* Form Style Call Here... */ $(function() { $('select.select-dropbox, input[type="radio"], input[type="checkbox"]').styler({ selectSearch: true, }); }); })(jQuery);