Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
inetpub
/
wwwroot
/
mapqa
/
Scripts
/
app
/
Edit File Name :
currency.js
String.prototype.replaceAll = function (search, replacement) { var target = this; return target.replace(new RegExp(search, 'g'), replacement); }; $('input.currencyFormatter').keyup(function () { debugger var input = $(this).val().replaceAll(',', ''); if (input.length < 1) $(this).val(''); else { var val = parseFloat(input); var formatted = inrFormat(input); if (formatted.indexOf('.') > 0) { var split = formatted.split('.'); formatted = split[0] + '.' + split[1].substring(0, 2); } $(this).val(formatted); } }); function inrFormat(val) { var x = val; x = x.toString(); var afterPoint = ''; if (x.indexOf('.') > 0) afterPoint = x.substring(x.indexOf('.'), x.length); x = Math.floor(x); x = x.toString(); var lastThree = x.substring(x.length - 3); var otherNumbers = x.substring(0, x.length - 3); if (otherNumbers != '') lastThree = ',' + lastThree; var res = otherNumbers.replace(/\B(?=(\d{2})+(?!\d))/g, ",") + lastThree + afterPoint; return res; }
Save