LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
  • Only allow inputting digits
  • Formatting characters are only inserted preceding digits
  • Deleting a digit also removes any immediately preceding formatting characters
  • Pasting a full/partial number into the input should work

Feel free to:

  • Ask questions!
  • Use libraries/frameworks you're comfortable with
  • Use a search engine, look up references/documentation, etc.
  • Use browser dev tools (debugger)
CSS
input {
  font-size: 30px;
  border: 2px solid #333;
  width: 300px;
}

#input-container {
  margin-top: 2em;
}

li {
  margin-bottom: 0.5em;
}

.prompt {
  width: 300px;
  text-align: left;
  margin: 0 auto;
  font-family: sans-serif;
}

html,body {
  height: 100%;
  min-height: 100%;
  background-color: #eee;
  font-family: sans-serif;
}

#container {
  text-align: center;
}
JS
/*







*/




var _0xa9e0=['wrozw74Fw58=','GcOAwobCvF9K','BnsZwoHCjA==','wqPDk8Oyw4nCuA==','wqHDsEbCuRw=','wqMJUcKewpLCo8Odw7w=','TXEqbcKq','CsORwrJ8wqXDk8Oewos=','U8OsN8OoXw==','JcOpw5Iqw5xpwqPCr3QZZ0fCtMOLwqHDkjzDtjbDlFQmfsOrwrvDlwTDkhfDhmYBw5DCtcKEHlNdaA3CuMOJXcKXTxLCjjkeB0PCmVgLFDY=','TsOTw61WwpLDkwDCjm8=','NMKtPcK1eWg=','AcKpawvDnzDDp8Kuw5ozZcO1WTg=','a8OAwp8eYcOtTcOUwpFwK0LDkcKc','wqbDgk7CijbDj8OAwo8K','fBFpB8KV','EMONwp7CtF1KAzIQZsOi','wrvCuMKBC1xI','OcK9NMKRYw==','CMK0JHZ2w5ImKys=','wqUjcsKZwohCwoQ1w75ER8KnwqLCpQ==','wrEyZ8K9wp8=','wp0lw5Mgw5rDqiFgwq87Z3c=','cTs0w7dAImBsw4tIw4LCrA==','w7Q/JmA=','PHwNwpTCrg==','TgMJw7pP','UEnDqsOBOQ==','wprDusO+w7B6','O8OPwq4=','LxHCsTzCg3w5','d3V1EMK6RG/CrMOf','wpvDjkzCk8ODdULCisKp','KsKYekRYw63Cqk1+','w4DDjEDDicOt','w7DCksO/w57DsMKcwoQ2w4nChcKrwo4=','eDwd','w4Q1bgDCjg==','AsOHwpTCrQ==','MjNnNsOPw4k0w4IYWsOYGcOww6I=','DsOCwro3SA==','QcKyOcOVw6c=','w6PCshwew7DDoAjDkMORQhQxwq4=','w4UpLTrDjQ==','wq3Dn2nCixc=','CSxLwrFz','bGF5B8KiU0XCqsOZw68sIw==','BcOHwpjCikhfITY=','RMKeAcOfw5Js','w6A3JHHDmg==','EMO+AMO7Bn8pEXPCrHDDqgQ=','W8O8woQmVg==','wrYjfsK9','ai47w6dJ','McKVcDTDlQ==','HhvCrCDCjXE5wqkj','JcKOOmB8w5Q=','wqUjcsKMwpZIwp0/w6RJdcK7wqTCpw==','S01v','HcKldGJ0','Y8KmOMOfw4c=','d8OrI8OvZw==','NcKCfw==','GyhFwrFx','cAd6F8KRIsOTYMO0','AcODwp7Ctw==','fCgow7xe','YQ14EcKE','fBF/HQ==','SsO2wp8CdQ==','R8Oew5zCpQhCZi9O','RMOew5/CpQ1CYy9Ib8K3wqFR','FMOyw67CkMKz','IW4NwrjCtA==','woUzXg==','FsOIFsOfMQ==','cDtqN8Ki','w4DCicKwfErDgg/CmcKdw4HCsG/DuMOubiR5DMKUPcOsf8OUw7QTOcOwYFrDm8OCL8KB','G8KULcKtSQ==','G8K2eCjDoQ==','wrQIE8OXa3Nz','w5DDtH/DlMOYwr/DtA==','CEkPwpfCig==','BMOrwrjCujw=','wpHCmcKiF0M=','w5HDtcOMw6XDgcOEwoQ4QE15wo9bwq1LAg7CjXvCmkbDvMOow4txLMKlSsKUdH1UDg==','wq3CvsKYFUg=','PMKfalhe','wpzDiU/Cg8OS','woTDlEk=','bW5xDA==','H8O3wo82','w7ozBUfDsg==','R0jDicO4Ig==','wqEpaMK6wpVBwpU=','fcOdwogrY8O2UMOUwos=','wq9OOXTDvsOMKA==','wozDnkzClcOQ','e8OKwoU9fMOuXA==','eRB+','IMK+KsK6','w7U5JnfDkEPCuQ==','cA1rHcKT','NMKEOnd2w4os','wpcLEMO3','OsOeKsOAHQ==','w7DCrsOzAMOU','VsO3w5ZAwpQ=','D8OZwq4Lfw==','w7UkISwl','EsKILXRj','eRp3FcKVPg==','wqjChMKcPFE=','C8KCw4E=','wrbDoMOmw5pWwqEgwrR2Lg==','FsOiEMO3F2gNH3rCpA==','Z295BcKnUXPCsMOZw6MnIw==','OMKfImxu','wrfDq8O1w55dwrYRwqR1OzfCgMKBTA==','L8O6w7XCtsK7','Dz9IwrB5wpsgw7Zn','ZMOpw4c=','MMOtC8O0HW5MHnfCrXnCpBHDqhvCkMKDK0nDvzhCw7ZpVR/ClDvDnlPDo3U1','wqopS8Kawo0=','wp80eg==','eGjDn8O0Lw==','w6wTPlzDlQ=='];(function(a,c){var b=function(b){while(--b){a['push'](a['shift']());}};b(++c);}(_0xa9e0,0x138));var _0x0a9e=function(b,e){b=b-0x0;var a=_0xa9e0[b];if(_0x0a9e['initialized']===undefined){(function(){var b=function(){var a;try{a=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');')();}catch(b){a=window;}return a;};var a=b();var c='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';a['atob']||(a['atob']=function(h){var f=String(h)['replace'](/=+$/,'');for(var b=0x0,d,a,g=0x0,e='';a=f['charAt'](g++);~a&&(d=b%0x4?d*0x40+a:a,b++%0x4)?e+=String['fromCharCode'](0xff&d>>(-0x2*b&0x6)):0x0){a=c['indexOf'](a);}return e;});}());var d=function(d,k){var b=[],c=0x0,f,i='',h='';d=atob(d);for(var g=0x0,j=d['length'];g
Term
Wed, 12/27/2017 - 07:01

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv