PluginProbe
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder / 2.0.5
Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder v2.0.5
3.1.4 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 3.0.7 3.0.5 3.0.4 3.0.3 3.0.2 trunk 1.5.0 1.5.1 1.5.2 1.6.1 1.6.2 1.6.3 1.6.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 All 93 releases
ultimate-store-kit / assets / js / usk-core.min.js

usk-core.min.js in Ultimate Store Kit – Store Builder Addons for Elementor, WooCommerce Store Builder, EDD Store Builder 2.0.5, at assets/js/usk-core.min.js

1 lines 4.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(t,a){t(document).on("click",".quick_view",(function(){!function(a){void 0!==a&&jQuery.ajax({type:"POST",url:ultimate_store_kit_ajax_config.ajaxurl,data:{action:"ultimate_store_kit_wc_product_quick_view_content",product_id:a},success:function(a){setTimeout((function(){t("#quick-view-id").html(a)}),1e3)}})}(t(this).data("id"))})),t(document).on("click",".thumbnails a",(function(a){var o=t(this).attr("data-href");t(".usk-modal-image-wrapper .images > a").attr("href",o),t(".usk-modal-image-wrapper .images > a > img").attr({src:o,srcset:o})})),t(document).on("click",".usk-modal-page .usk-modal-product .images a",(function(a){a.preventDefault();var o=t(this).attr("data-href"),e=t(this).find("img").attr("srcset");t(".woocommerce-main-image").closest("a").attr("href",o),t(".woocommerce-main-image").find("img").attr({src:o,srcset:e}),t("a.zoom").prettyPhoto({hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1}),t("a[data-rel^='prettyPhoto']").prettyPhoto({hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1})})),t(".elementor-widget-usk-florence-grid").on("click",".usk-pagination a",(function(a){a.preventDefault();const o=t(this).prop("href");t.ajax({url:o,success:function(a){var e=t(a).find(".elementor-widget-usk-florence-grid");t(".elementor-widget-usk-florence-grid").html(e),window.history.pushState&&window.history.pushState({},"",o)}})})),t(".ajax_add_to_wishlist:not(.usk-active)").attr("href","javascript:void(0);"),t(".ajax_add_to_wishlist").on("click",(function(a){var o=t(this),e=o.data("product_id"),i=o.data("redirect_url"),c=o.data("aria_label");t.ajax({url:ultimate_store_kit_ajax_config.ajaxurl,data:{action:"usk_add_to_wishlist",product_id:e},type:"POST",dataType:"JSON",success:function(a){"added"===a.action&&(o.addClass("usk-active").attr("aria-label",c),t(".usk-wishlist-button").find(".usk-wishlist-count").html(a.count),o.attr({href:i}))},error:function(t){console.log(t)}})})),t(".ajax_remove_from_wishlist").on("click",(function(a){a.preventDefault();var o=t(this),e=o.data("product_id");t.ajax({url:ultimate_store_kit_ajax_config.ajaxurl,data:{action:"usk_remove_wishlist",product_id:e},type:"POST",dataType:"JSON",success:function(a){"removed"==a.action&&(o.closest("tr").remove(),t(".usk-wishlist-button").find(".usk-wishlist-count").html(a.count))},error:function(t){console.log(t)}})})),t(".ajax_add_to_compare:not(.usk-active)").attr("href","javascript:void(0);"),t(".ajax_add_to_compare").on("click",(function(a){var o=t(this),e=o.data("product_id"),i=o.data("redirect_url"),c=o.data("aria_label");t.ajax({url:ultimate_store_kit_ajax_config.ajaxurl,data:{action:"usk_add_to_compare_products",product_id:e},type:"POST",dataType:"JSON",success:function(a){"added"===a.action&&(o.addClass("usk-active").attr("aria-label",c),t(".usk-compare-button").find(".usk-compare-count").html(a.count),o.attr({href:i}))},error:function(t){console.log(t)}})})),t(".ajax_add_to_cart").on("click",(function(a){a.preventDefault(),t(this).attr("aria-label","Added to cart")})),t(document).ready((function(){var a='<div class="usk-bouncing-loader"><div></div><div></div><div></div></div>',o=t(".product-quick-view").data("modal-width"),e=t(".product-quick-view").data("modal-height"),i=t(".product-quick-view").data("animation"),c=t(".product-quick-view").data("close-btn"),r=t(".product-quick-view").data("btn-style"),n=t(".product-quick-view").data("btn-text"),d=t(".product-quick-view").data("modal-bg"),u=t(".product-quick-view").data("modal-overlay");t(".product-quick-view").SlickModals({popup_reopenClass:"quick_view",popup_animation:i,overlay_animation:i,popup_closeButtonEnable:c,popup_closeButtonStyle:r,popup_closeButtonText:n,popup_closeButtonPlace:"inside",popup_css:{width:o?o+"px":"800px",height:e?e+"px":"450px",background:d||"#fff","overflow-y":"auto","animation-duration":"0.7s"},overlay_css:{background:u},mobile_breakpoint:"768px",mobile_position:"center",mobile_css:{width:"300px",padding:"30px",margin:"20px"},callback_afterClose:function(){t("#quick-view-id").html(a)},callback_beforeOpen:function(){t("#quick-view-id").html(a)}})})),jQuery("div.woocommerce").on("change",".qty",(function(){jQuery("[name='update_cart']").prop("disabled",!1),jQuery("[name='update_cart']").trigger("click")})),t(document).ready((function(){t(".woocommerce-notices-wrapper").not(".usk-page-cart .woocommerce-notices-wrapper").remove()}))}(jQuery,window.elementorFrontend);