PageSourceSearch

http://www.cnw.com.sg/wp-content/themes/Avada/assets/min/js/general/avada-quantity.js?ver=5.2.1

js cnw.com.sg collected 2026-09-26 07:31:55 UTC 1,224 bytes, 1 lines download raw bytes

1function avadaAddQuantityBoxes(a){var b;a||(a=".qty"),(b=jQuery("div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)").find(a))&&"date"!==b.prop("type")&&"hidden"!==b.prop("type")&&(b.parent().hasClass("buttons_added")||(b.parent().addClass("buttons_added").prepend('<input type="button" value="-" class="minus" />'),b.addClass("input-text").after('<input type="button" value="+" class="plus" />')),jQuery("input"+a+":not(.product-quantity input"+a+")").each(function(){var a=parseFloat(jQuery(this).attr("min"));a&&a>0&&parseFloat(jQuery(this).val())<a&&jQuery(this).val(a)}),jQuery(".plus, .minus").unbind("click"),jQuery(".plus, .minus").on("click",function(){var b=jQuery(this).parent().find(a),c=parseFloat(b.val()),d=parseFloat(b.attr("max")),e=parseFloat(b.attr("min")),f=b.attr("step");c&&""!==c&&"NaN"!==c||(c=0),""!==d&&"NaN"!==d||(d=""),""!==e&&"NaN"!==e||(e=0),"any"!==f&&""!==f&&void 0!==f&&"NaN"!==parseFloat(f)||(f=1),jQuery(this).is(".plus")?d&&(d==c||c>d)?b.val(d):b.val(c+parseFloat(f)):e&&(e==c||c<e)?b.val(e):c>0&&b.val(c-parseFloat(f)),b.trigger("change")}))}jQuery(window).on("load",function(a){avadaAddQuantityBoxes()}),jQuery(document).ajaxComplete(function(){avadaAddQuantityBoxes()});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.