function aCommerceHotDealTime(e, i) { var t = new Date(e).getTime(); $ = jQuery; var a = setInterval(function () { var e = (new Date).getTime(), n = t - e, s = Math.floor(n / 864e5), r = Math.floor(n % 864e5 / 36e5), o = Math.floor(n % 36e5 / 6e4), l = Math.floor(n % 6e4 / 1e3); $(i).html('
  • ' + s + ' Days
  • ' + r + ' hours
  • ' + o + ' Min
  • ' + l + ' Sec
  • '), n < 0 && (clearInterval(a), document.getElementById("demo").innerHTML = "EXPIRED") }, 1e3) } function acommerce_spinner_up_down() { jQuery("body").on("tap click", "div.quantity .quantity-up", function () { var e = jQuery(this).parent().find('input[type="number"]'), i = e.attr("max"), t = parseFloat(e.val()); if (t >= i && "" != i) var a = t; else a = t + 1; e.val(a), e.trigger("change") }), jQuery("body").on("tap click", "div.quantity .quantity-down, .acommerce_qty_spinner .quantity-down", function () { var e = jQuery(this).parent().find('input[type="number"]'), i = e.attr("min"), t = parseFloat(e.val()); if (t <= i && "" != i) var a = t; else a = t - 1; e.val(a), e.trigger("change") }) } function acommerce_product_single_carousel() { jQuery(".thumbnails").length && jQuery(".images, #yith-quick-view-content").each(function () { jQuery(this).find(".acommerce-single-woo-slick").slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: !1, autoplaySpeed: 4e3, speed: 500, dots: !1, fade: !0, focusOnSelect: !0, arrows: !1, infinite: !1, asNavFor: jQuery(this).find(".thumbnails") }), jQuery(this).find(".thumbnails").slick({ slidesToShow: 4, slidesToScroll: 1, nextArrow: '', prevArrow: '', asNavFor: jQuery(this).find(".acommerce-single-woo-slick"), dots: !1, focusOnSelect: !0, infinite: !1 }) }) } function acommerce_thumbnails_slider() { var e, i, t, a, n; t = (i = jQuery("#yith-quick-view-content .woocommerce-product-gallery__wrapper")).find(".woocommerce-product-gallery__image"), e = jQuery('
    '); for (var s = 0; s < t.length; s++)a = t[s], n = '
    ', e.append(n); i.parent().append(e), imagesLoaded(i.parent(), acommerce_vertical_thumb), jQuery("#yith-quick-view-content .woocommerce-product-gallery__image").easyZoom() } function acommerce_vertical_thumb() { jQuery("#yith-quick-view-content").each(function () { jQuery(this).find(".woocommerce-product-gallery__wrapper").slick({ slidesToShow: 1, slidesToScroll: 1, autoplay: !1, autoplaySpeed: 4e3, speed: 500, dots: !1, fade: !0, focusOnSelect: !0, arrows: !1, infinite: !1, asNavFor: jQuery(this).find(".acommerce-thumbnails-control") }), jQuery(this).find(".acommerce-thumbnails-control").slick({ slidesToShow: 4, slidesToScroll: 1, nextArrow: '', prevArrow: '', asNavFor: jQuery(this).find(".woocommerce-product-gallery__wrapper"), dots: !1, focusOnSelect: !0, infinite: !1 }); var e = jQuery(this).find(".woocommerce-product-gallery")[0]; jQuery(e).addClass("ready") }) } jQuery(document).ready(function (e) { if ((e(".acommerce-header-cat-title a").click(function () { e(".acommerce-header-cat-content").toggleClass("acommerce-isactive") }), e(".acommerce-search svg").click(function (i) { i.preventDefault(), i.stopPropagation(), e(".acommerce-popup-search").toggleClass("is_active") }), e("body:not(.acommerce-popup-search)").click(function (i) { i.target.closest(".acommerce-popup-search") || e(".acommerce-popup-search").removeClass("is_active") }), jQuery("a.add_to_cart_button").click(function () { jQuery(this).append('') }), e("ul.products li.product,section.our-products.single_category_style_1 li.product").matchHeight(), e(".acommerce_slider_section.carousel.our-products.four-product-slider.py-5 li.product").matchHeight(), e(".latest-blog-details article.blog-single-item .latest-blog-image img").matchHeight(), acommerce_spinner_up_down(), e("div.quantity .input-text").before('
    '), e("div.quantity .input-text").after('
    '), e(".main-menu-toggle").click(function () { e(this).parent("nav").children(".main-menu-container-collapse").first().slideToggle("1000") }), e("ul#primary-menu>li.menu-item-has-children>a").append(''), e("ul#primary-menu>li.page_item_has_children>a").append(''), e("nav .menu-item-has-children").append(' '), e("nav .page_item_has_children").append(' '), e("nav .sub-toggle").click(function () { e(this).parent(".menu-item-has-children").children("ul.sub-menu").first().slideToggle("1000"), e(this).children(".fa-plus").first().toggleClass("fa-minus") }), e(".navbar .sub-toggle-children").click(function () { e(this).parent(".page_item_has_children").children("ul.sub-menu").first().slideToggle("1000"), e(this).children(".fa-plus").first().toggleClass("fa-minus") }), e(".header_sticky")[0]) && e(window).width() > 350) { try { e(window).scroll(function () { var i = e(".header_sticky"); e(window).scrollTop() > 350 ? i.addClass("header_fixed") : i.removeClass("header_fixed") }) } catch (e) { } } e(".flexslider").show(), e(".flexslider").flexslider({ animation: "slide" }), e(".acommerce_slider_section").flexslider({ animation: "slide", animationLoop: !0, itemWidth: 300, itemMargin: 15, minItems: 1, maxItems: 4 }), e(".acommerce-hotoffer-single").flexslider({ animation: "slide", animationLoop: !0, minItems: 1, maxItems: 1 }), e(".flexslider5").flexslider({ animation: "slide", animationLoop: !0, itemWidth: 260, itemMargin: 20, minItems: 1, maxItems: 4 }), e(".acommerce-blog-grid").masonry({ itemSelector: ".acommerce-grid-item", columnWidth: 15 }), jQuery("div.add-to-wishlist-custom div.yith-wcwl-add-button").on("click", function (e) { jQuery(this).addClass("yith-wcwl-ajax-loading") }) }), jQuery(document).ajaxComplete(function () { jQuery(".acommerce-thumbnails-control.slick-slider").length || acommerce_thumbnails_slider() });