PATH:
home
/
lab2454c
/
costbloc.com
/
Modules
/
Gateway
/
Resources
/
assets
/
js
"use strict"; function cc_format(value) { var v = value.replace(/\s+/g, '').replace(/[^0-9]/gi, '') var matches = v.match(/\d{4,16}/g); var match = matches && matches[0] || '' var parts = [] for (i=0, len=match.length; i<len; i+=4) { parts.push(match.substring(i, i+4)) } if (parts.length) { return parts.join(' ') } else { return value } } onload = function() { document.getElementById('cc').oninput = function() { this.value = cc_format(this.value) } } function checkDigit(event) { var code = (event.which) ? event.which : event.keyCode; if ((code < 48 || code > 57) && (code > 31)) { return false; } return true; }
[-] jquery.min.js
[edit]
[-] credit.js
[edit]
[+]
..
[-] app.min.js
[edit]
[-] app.js
[edit]
[-] date.js
[edit]
[-] jquery-ui.min.js
[edit]
[-] bootstrap-datepicker.min.js
[edit]
[-] bootstrap.bundle.min.js
[edit]