I hereby claim:
- I am nalekberov on github.
- I am nalekberov (https://keybase.io/nalekberov) on keybase.
- I have a public key ASCKcWAAecMGaOdiyWig7Q9td3seLZI2llKMemwABg8JYAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* | |
* Parabank Financial Calculator | |
* Date : 16.12.10 | |
*/ | |
function checkIsNumber() { | |
var re = /^\d+$/; | |
var amount = document.getElementById("amount").value; | |
if (re.test(amount) == false && amount) { | |
document.getElementById("amount").value = parseInt(amount); | |
} |
FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.