HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/salamatk/takarzan.ir/wp-content/themes/xts-luman/js/scripts/quantity.min.js
(n=>{XTSThemeModule.quantity=function(){String.prototype.getDecimals||(String.prototype.getDecimals=function(){var t=(""+this).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}),XTSThemeModule.$document.on("click",".xts-plus, .xts-minus",function(){var t=n(this),a=t.closest(".quantity").find(".qty"),e=parseFloat(a.val()),i=parseFloat(a.attr("max")),o=parseFloat(a.attr("min")),l=a.attr("step");e&&""!==e&&"NaN"!==e||(e=0),""!==i&&"NaN"!==i||(i=""),""!==o&&"NaN"!==o||(o=0),"any"!==l&&""!==l&&void 0!==l&&"NaN"!==parseFloat(l)||(l="1"),t.is(".xts-plus")?i&&i<=e?a.val(i):a.val((e+parseFloat(l)).toFixed(l.getDecimals())):o&&e<=o?a.val(o):0<e&&a.val((e-parseFloat(l)).toFixed(l.getDecimals())),a.trigger("change")})},n(document).ready(function(){XTSThemeModule.quantity()})})(jQuery);