jQuery((function($){$('div.quantity:not(.spinners-added):has(input[type="number"])').addClass("spinners-added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />'),$(document).on("updated_cart_totals",(function(){$('div.quantity:not(.spinners-added):has(input[type="number"])').addClass("spinners-added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />')})),$("body").on("quick-view-displayed",(function(){$('div.quantity:not(.spinners-added):has(input[type="number"])').addClass("spinners-added").append('<input type="button" value="+" class="plus" />').prepend('<input type="button" value="-" class="minus" />')})),$(document).on("click",".plus, .minus",(function(){var t=$(this).closest(".quantity").find(".qty"),a=parseFloat(t.val()),n=parseFloat(t.attr("max")),s=parseFloat(t.attr("min")),e=t.attr("step");a&&""!==a&&"NaN"!==a||(a=0),""!==n&&"NaN"!==n||(n=""),""!==s&&"NaN"!==s||(s=0),"any"!==e&&""!==e&&void 0!==e&&"NaN"!==parseFloat(e)||(e=1),$(this).is(".plus")?n&&(n==a||a>n)?t.val(n):t.val(a+parseFloat(e)):s&&(s==a||a<s)?t.val(s):a>0&&t.val(a-parseFloat(e)),t.trigger("change")}))}));
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
admin | Folder | 0755 |
|
|
src | Folder | 0755 |
|
|
admin-activate.min.js | File | 1.82 KB | 0644 |
|
cart-update.min.js | File | 116 B | 0644 |
|
css-vars-ponyfill.min.js | File | 21.09 KB | 0644 |
|
gutenberg-notice.min.js | File | 390 B | 0644 |
|
ie.min.js | File | 582 B | 0644 |
|
lightbox-init.min.js | File | 1.15 KB | 0644 |
|
navigation-lite.min.js | File | 8.57 KB | 0644 |
|
navigation.min.js | File | 18.67 KB | 0644 |
|
product-cls.min.js | File | 231 B | 0644 |
|
shop-spinner.min.js | File | 1.2 KB | 0644 |
|
shop-toggle.min.js | File | 2.88 KB | 0644 |
|
simplelightbox.min.js | File | 7.35 KB | 0644 |
|
slide-init.min.js | File | 2 KB | 0644 |
|
splide-init.min.js | File | 2.37 KB | 0644 |
|
splide.min.js | File | 29.07 KB | 0644 |
|
text-widgets.min.js | File | 4.36 KB | 0644 |
|