(function(a) { a(window).scroll(function() { if (a(this).scrolltop() > 200) { a("#backtotop:hidden").stop(true, true).fadein() } else { a("#backtotop").stop(true, true).fadeout() } }); a(function() { a("#scroll").on("click", function() { a("html,body").animate({ scrolltop: a("#thetop").offset().top }, "slow"); return false }) }); a(".main-search-btn").on("click", function() { a(".main-search-btn > i").toggleclass("la-times") }); a('[data-toggle="tooltip"]').tooltip(); a(".tooltipes").tooltip(); a("[data-background]").each(function() { a(this).css("background-image", "url(" + a(this).attr("data-background") + ")") }); a(document).ready(function() { a(".close-btn, .overlay").on("click", function() { a("#sidebar-menu").removeclass("active"); a(".overlay").removeclass("active") }); a(".mobile-menu-btn, .mobile-btn-cart").on("click", function() { a("#sidebar-menu").addclass("active"); a(".overlay").addclass("active") }) }); a(".menu_list .dropdown").on("show.bs.dropdown", function(l) { a(this).find(".dropdown-menu").first().stop(true, true).slidedown(400) }); a(".menu_list .dropdown").on("hide.bs.dropdown", function(l) { a(this).find(".dropdown-menu").first().stop(true, true).slideup(500) }); a(window).on("scroll", function() { if (a(this).scrolltop() > 150) { a(".sticky-header").addclass("stuck") } else { a(".sticky-header").removeclass("stuck") } }); a(window).on("scroll", function() { if (a(this).scrolltop() > 150) { a(".header-section").addclass("stuck") } else { a(".header-section").removeclass("stuck") } }); a(".zoom-gallery").magnificpopup({ delegate: ".popup-image", type: "image", closeoncontentclick: false, closebtninside: false, mainclass: "mfp-with-zoom mfp-img-mobile", gallery: { enabled: true }, zoom: { enabled: true, duration: 300, opener: function(l) { return l.find("img") } } }); a(".play-btn").magnificpopup({ type: "iframe", preloader: false, removaldelay: 160, mainclass: "mfp-fade", fixedcontentpos: false }); a("#main-carousel").owlcarousel({ items: 1, margin: 0, nav: true, loop: true, dots: true, autoplay: true, smartspeed: 1000, autoplaytimeout: 6000, autoplayhoverpause: true }); a(".column-4-carousel").owlcarousel({ nav: true, loop: true, margin: 30, dots: false, autoplay: true, smartspeed: 1000, autoplaytimeout: 6000, autoplayhoverpause: true, responsive: { 0 : { items: 1 }, 480 : { items: 2 }, 700 : { items: 3 }, 1000 : { items: 4 } } }); a(".column-3-carousel").owlcarousel({ nav: false, loop: true, margin: 0, dots: false, smartspeed: 1000, responsive: { 0 : { items: 1 }, 600 : { items: 3 }, 1000 : { items: 3 } } }); a("#sidebar-deals-carousel").owlcarousel({ items: 1, nav: true, margin: 15, loop: true, dots: false, autoplay: true, smartspeed: 1000, autoplaytimeout: 6000, autoplayhoverpause: true }); a(".details-image-carousel").owlcarousel({ items: 1, nav: false, dots: false, thumbs: true, smartspeed: 500, thumbimage: false, thumbitemclass: "item", thumbsprerendered: true, thumbcontainerclass: "owl-thumbs" }); a("#image-carousel").owlcarousel({ items: 1, nav: true, margin: 15, loop: true, dots: false, autoplay: true, smartspeed: 1000, autoplaytimeout: 6000, autoplayhoverpause: true }); a(".testimonial-carousel").owlcarousel({ nav: false, loop: false, margin: 30, dots: false, autoplay: true, smartspeed: 600, autoplaytimeout: 6000, autoplayhoverpause: true, navigation:true, responsive: { 0 : { items: 1 }, 767 : { items: 2 }, 1024 : { items: 3 } } }); a(".brand-carousel").owlcarousel({ margin: 0, nav: false, loop: true, dots: false, autoplay: true, smartspeed: 800, autoplaytimeout: 4000, responsive: { 0 : { items: 2 }, 300 : { items: 3 }, 700 : { items: 4 }, 1024 : { items: 6 } } }); a(".brand-carousel1").owlcarousel({ margin: 0, nav: false, loop: true, dots: true, autoplay: true, smartspeed: 1000, autoplaytimeout: 6000, responsive: { 0 : { items: 1 }, 300 : { items: 1 }, 700 : { items: 1 }, 1024 : { items: 1 } } }); if (a("#slider-range").length) { a("#slider-range").slider({ range: true, min: 5, max: 1000, values: [30, 429], slide: function(l, m) { a("#amount").val("$" + m.values[0] + " - $" + m.values[1]) } }); a("#amount").val("$" + a("#slider-range").slider("values", 0) + " - $" + a("#slider-range").slider("values", 1)) } a(".ar_top").on("click", function() { var l = a(this).next().attr("id"); var n = document.getelementbyid(l); var m = n.value; a(".proceed_to_checkout .update-cart").removeattr("disabled"); if (!isnan(m)) { n.value++ } else { return false } }); var b = a(".masonry-grid").imagesloaded(function() { b.masonry({ itemselector: ".grid-item", percentposition: true, columnwidth: ".grid-sizer" }) }); function k() { var l = a(".element-grid"); if (l.length) { l.imagesloaded(function() { l.isotope({ itemselector: ".element-item", layoutmode: "masonry", filter: "*", animationoptions: { duration: 1000 }, transitionduration: "0.5s", masonry: {} }); a(".filter-btns-group > ul > li > button").on("click", function() { a(".filter-btns-group > ul > li > button").removeclass("active"); a(this).addclass("active"); var m = a(this).attr("data-filter"); l.isotope({ filter: m, animationoptions: { animationduration: 750, easing: "linear", queue: false } }); return false }) }) } } k(); a(".countdown-list").each(function() { a("[data-countdown]").each(function() { var l = a(this), m = a(this).data("countdown"); l.countdown(m, function(o) { var n = a(this).html(o.strftime('