(function ($) { 'use strict'; var imJs = { m: function (e) { imJs.d(); imJs.methods(); }, d: function (e) { this._window = $(window), this._document = $(document), this._body = $('body'), this._html = $('html') }, methods: function (e) { imJs.featherAtcivation(); imJs.backToTopInit(); imJs.stickyHeader(); imJs.smothScroll(); imJs.stickyAdjust(); imJs.slickActivation(); imJs.contactForm(); imJs.selectJs(); imJs.popupMobileMenu(); imJs.masonryActivation(); imJs.cursorAnimate(); imJs.rncounterUp(); imJs.salActive(); imJs.searchClick(); imJs.filterClickButton(); imJs.unloadImage2(); imJs.unloadImage(); imJs.unloadImage3(); imJs.darkLight(); imJs.vedioActivation(); imJs.tiltJS(); }, featherAtcivation: function () { feather.replace() }, backToTopInit: function () { // declare variable var scrollTop = $('.backto-top'); $(window).scroll(function () { // declare variable var topPos = $(this).scrollTop(); // if user scrolls down - show scroll to top button if (topPos > 100) { $(scrollTop).css('opacity', '1'); } else { $(scrollTop).css('opacity', '0'); } }); //Click event to scroll to top $(scrollTop).on('click', function () { $('html, body').animate({ scrollTop: 0, easingType: 'linear', }, 500); return false; }); }, stickyHeader: function (e) { $(window).scroll(function () { if ($(this).scrollTop() > 50) { $('.header--sticky').addClass('sticky') } else { $('.header--sticky').removeClass('sticky') } }) }, smothScroll: function () { $(document).on('click', '.smoth-animation', function (event) { event.preventDefault(); $('html, body').animate({ scrollTop: $($.attr(this, 'href')).offset().top - 50 }, 300); }); }, stickyAdjust: function (e) { // Sticky Top Adjust.., $('.rbt-sticky-top-adjust').css({ top: 100 }); $('.rbt-sticky-top-adjust-two').css({ top: 200 }); $('.rbt-sticky-top-adjust-three').css({ top: 25 }); $('.rbt-sticky-top-adjust-four').css({ top: 90 }); $('.rbt-sticky-top-adjust-five').css({ top: 100 }); }, slickActivation:function(){ $('.slick-activation-01').slick({ infinite: true, slidesToShow: 3, slidesToScroll: 1, dots: false, arrows: true, cssEase: 'linear', adaptiveHeight: true, prevArrow: '', nextArrow: '', responsive: [{ breakpoint: 1124, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 868, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 576, settings: { slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, } } ] }); $('.slick-activation-02').slick({ infinite: true, slidesToShow: 4, slidesToScroll: 1, dots: false, arrows: true, cssEase: 'linear', adaptiveHeight: true, prevArrow: '', nextArrow: '', responsive: [{ breakpoint: 1124, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 868, settings: { slidesToShow: 1, slidesToScroll: 1, } }, { breakpoint: 576, settings: { slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, } } ] }); $('.slick-activation-03').slick({ infinite: true, slidesToShow: 5, slidesToScroll: 2, dots: false, arrows: true, cssEase: 'linear', adaptiveHeight: true, prevArrow: '', nextArrow: '', responsive: [{ breakpoint: 1399, settings: { slidesToShow: 4, slidesToScroll: 1, } }, { breakpoint: 1200, settings: { slidesToShow: 3, slidesToScroll: 1, } }, { breakpoint: 992, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 576, settings: { slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, } } ] }); $('.slick-activation-04').slick({ infinite: true, slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, cssEase: 'linear', adaptiveHeight: true, }); $('.slick-activation-05').slick({ infinite: true, slidesToShow: 5, slidesToScroll: 2, dots: true, arrows: true, cssEase: 'linear', adaptiveHeight: true, prevArrow: '', nextArrow: '', responsive: [{ breakpoint: 1399, settings: { slidesToShow: 4, slidesToScroll: 1, } }, { breakpoint: 1200, settings: { slidesToShow: 3, slidesToScroll: 1, } }, { breakpoint: 992, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 576, settings: { slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, } } ] }); $('.slick-activation-06').slick({ infinite: true, slidesToShow: 1, slidesToScroll: 1, dots: false, arrows: true, cssEase: 'linear', adaptiveHeight: true, prevArrow: '', nextArrow: '', responsive: [{ breakpoint: 1399, settings: { slidesToShow: 1, slidesToScroll: 1, } } ] }); $('.slick-activation-07').slick({ infinite: true, slidesToShow: 5, slidesToScroll: 2, dots: true, arrows: false, cssEase: 'linear', adaptiveHeight: true, responsive: [{ breakpoint: 1399, settings: { slidesToShow: 4, slidesToScroll: 1, } }, { breakpoint: 1200, settings: { slidesToShow: 3, slidesToScroll: 1, } }, { breakpoint: 992, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 576, settings: { slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, } } ] }); $('.slick-activation-08').slick({ infinite: true, slidesToShow: 4, slidesToScroll: 2, dots: true, arrows: true, cssEase: 'linear', adaptiveHeight: true, prevArrow: '', nextArrow: '', responsive: [{ breakpoint: 1399, settings: { slidesToShow: 4, slidesToScroll: 1, } }, { breakpoint: 1200, settings: { slidesToShow: 3, slidesToScroll: 1, } }, { breakpoint: 993, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 576, settings: { slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, } } ] }); $('.slick-activation-09').slick({ infinite: true, slidesToShow: 1, slidesToScroll: 1, dots: false, arrows: false, cssEase: 'linear', adaptiveHeight: true, }); $('.slider-activation-banner-3').slick({ infinite: true, slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, cssEase: 'linear', adaptiveHeight: true, // autoplay: true, autoplaySpeed: 2000, responsive: [{ breakpoint: 1599, settings: { dots: true, arrows: false, } } ] }); $('.slider-activation-banner-5').slick({ infinite: true, slidesToShow: 1, slidesToScroll: 1, dots: false, arrows: true, cssEase: 'linear', adaptiveHeight: true, // autoplay: true, autoplaySpeed: 2000, responsive: [{ breakpoint: 1599, settings: { dots: true, arrows: false, } } ] }); $('.slider-activation-banner-4').slick({ infinite: true, slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, cssEase: 'linear', adaptiveHeight: true, // autoplay: true, autoplaySpeed: 2000, }); $('.top-seller-slick-activation').slick({ infinite: true, slidesToShow: 4, slidesToScroll: 2, dots: false, arrows: false, cssEase: 'linear', adaptiveHeight: true, autoplay: false, autoplaySpeed: 2000, prevArrow: '', nextArrow: '', responsive: [{ breakpoint: 1399, settings: { slidesToShow: 4, slidesToScroll: 1, } }, { breakpoint: 1200, settings: { slidesToShow: 3, slidesToScroll: 1, } }, { breakpoint: 993, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 576, settings: { slidesToShow: 1, slidesToScroll: 1, dots: true, arrows: false, } } ] }); }, contactForm: function () { $('.rwt-dynamic-form').on('submit', function (e) { e.preventDefault(); var _self = $(this); var __selector = _self.closest('input,textarea'); _self.closest('div').find('input,textarea').removeAttr('style'); _self.find('.error-msg').remove(); _self.closest('div').find('button[type="submit"]').attr('disabled', 'disabled'); var data = $(this).serialize(); $.ajax({ url: 'mail.php', type: "post", dataType: 'json', data: data, success: function (data) { _self.closest('div').find('button[type="submit"]').removeAttr('disabled'); if (data.code == false) { _self.closest('div').find('[name="' + data.field + '"]'); _self.find('.rn-btn').after('
*' + data.err + '
' + data.success + '