Created
February 28, 2015 16:13
-
-
Save wholroyd/e146da3482f23e433491 to your computer and use it in GitHub Desktop.
// source http://jsbin.com/qobafunewu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body onload="GetPromo()"> | |
<SCRIPT LANGUAGE="JavaScript"> | |
function GetPromo() { | |
var p = "24682"; | |
var a = "47000"; | |
var b = Math.random().toString().substr(3, 4); | |
var c = Math.random().toString().substr(7, 1); | |
prompt("Enjoy your coupon! :)", a + b + p + c); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment