HEX
Server: LiteSpeed
System: Linux pulsar191.sitesanctuary.org 5.14.0-284.30.1.el9.tuxcare.els9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jan 10 17:34:05 UTC 2025 x86_64
User: lgooir (1604)
PHP: 8.1.32
Disabled: exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/lgooir/www/wp-content/themes/woodmart_old/js/scripts/wc/woocommerceQuantity.min.js
!function(l){woodmartThemeModule.woocommerceQuantity=function(){String.prototype.getDecimals||Object.defineProperty(String.prototype,"getDecimals",{value:function(){var e=(""+this).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0},enumerable:!1}),woodmartThemeModule.$document.on("click",".plus, .minus",function(){var e=l(this),t=e.closest(".quantity").find(".qty"),a=parseFloat(t.val()),o=parseFloat(t.attr("max")),r=parseFloat(t.attr("min")),i=t.attr("step");a&&""!==a&&"NaN"!==a||(a=0),""!==o&&"NaN"!==o||(o=""),""!==r&&"NaN"!==r||(r=0),"any"!==i&&""!==i&&void 0!==i&&"NaN"!=parseFloat(i)||(i="1"),e.is(".plus")?o&&(a+parseFloat(i)).toFixed(i.getDecimals())>=o?t.val(o):t.val((a+parseFloat(i)).toFixed(i.getDecimals())):r&&(a-parseFloat(i)).toFixed(i.getDecimals())<=r?t.val(r):0<a&&t.val((a-parseFloat(i)).toFixed(i.getDecimals())),t.trigger("change")})},l(document).ready(function(){woodmartThemeModule.woocommerceQuantity()})}(jQuery);