-
-
Save LemmaEOF/4003f87fc01fb224f5b8 to your computer and use it in GitHub Desktop.
Powerball simulator! [A simulator of the Powerball lottery] // source http://jsbin.com/suraqo
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="[A simulator of the Powerball lottery]"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>Powerball simulator!</title> | |
<style id="jsbin-css"> | |
body { | |
font-family: sans-serif; | |
text-align: center; | |
} | |
#lose { | |
display: none; | |
margin: auto | |
} | |
#power { | |
background-color: red; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>POWERBALL SIMULATOR 2016!!</h1> | |
<span id=win><img src="http://u.cubeupload.com/Transgirlgogo/download1.jpeg"></img> | |
<p>Enter six numbers 1-69 (1-26 for the powerball) and find out if you'll WIN THE JACKPOT!</p> | |
<p><input type=number min=1 max=69> <input type=number min=1 max=69> <input type=number min=1 max=69> <input type=number min=1 max=69> <input type=number min=1 max=69> <input type=number min=1 max=26 id=power></p> | |
<p id=win><button onclick=youLose()>Enter</button></p></span> | |
<script id="jsbin-javascript"> | |
function youLose() { | |
var iframe = document.createElement("iframe"); | |
iframe.src = "https://www.youtube.com/embed/M5QGkOGZubQ" + "?autoplay=true"; | |
iframe.height="630"; | |
iframe.width="840"; | |
document.body.appendChild(iframe); | |
document.getElementById('win').style.display = 'none'; | |
} | |
</script> | |
<script id="jsbin-source-css" type="text/css">body { | |
font-family: sans-serif; | |
text-align: center; | |
} | |
#lose { | |
display: none; | |
margin: auto | |
} | |
#power { | |
background-color: red; | |
} | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">function youLose() { | |
var iframe = document.createElement("iframe"); | |
iframe.src = "https://www.youtube.com/embed/M5QGkOGZubQ" + "?autoplay=true"; | |
iframe.height="630"; | |
iframe.width="840"; | |
document.body.appendChild(iframe); | |
document.getElementById('win').style.display = 'none'; | |
}</script></body> | |
</html> |
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
body { | |
font-family: sans-serif; | |
text-align: center; | |
} | |
#lose { | |
display: none; | |
margin: auto | |
} | |
#power { | |
background-color: red; | |
} |
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
function youLose() { | |
var iframe = document.createElement("iframe"); | |
iframe.src = "https://www.youtube.com/embed/M5QGkOGZubQ" + "?autoplay=true"; | |
iframe.height="630"; | |
iframe.width="840"; | |
document.body.appendChild(iframe); | |
document.getElementById('win').style.display = 'none'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment