Created
February 19, 2015 23:53
-
-
Save wholroyd/96a067773fc102566723 to your computer and use it in GitHub Desktop.
// source http://jsbin.com/wekata
This file contains 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 = "4650"; | |
var a = "47002"; | |
var b = Math.random().toString().substr(3, 5); | |
var c = Math.random().toString().substr(7, 1);a | |
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