Created
February 17, 2015 05:41
-
-
Save ckotsovos/1a6e2b2ae1ae1f1651b3 to your computer and use it in GitHub Desktop.
Riddler Puzzle Game 2/16/15
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
<!DOCTYPE html> | |
<head> | |
<title>???Riddler???</title> | |
<link rel="stylesheet" type="text/css" href="Riddler.css"> | |
</head> | |
<body> | |
<aside> | |
<button id="playButton"> | |
<P>?WANT TO PLAY A GAME?</P> | |
</button> | |
</aside> | |
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script> | |
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script> | |
<script src="puzzle.js"></script> | |
</body> | |
</html> |
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
var message; | |
var myRiddle, | |
myRiddle = "eye"; | |
$('button').on('click', function() { | |
guess = prompt("What begins with an E and ends with an E, but contains one letter?"); | |
if (guess.toLowerCase() == myRiddle.toLowerCase()) { | |
message = "Well you're as clever as you look!"; | |
} else { | |
message = "Wrong! But you can try again!" | |
}; | |
alert(message); | |
}); |
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
body { | |
background-image: url("http://superhero-wallpapers.com/wallpapers/batman-riddler-twitter-backgrounds-batman-movies-tvshows-wallpaper-wallpaper-42640.jpg"); | |
}, | |
#playButton { | |
padding: 0px; border: #999 1px dashed; | |
} | |
#playButton > p{ | |
position: absolute; | |
top: 350px; | |
left: 285px; | |
font-family: Arial, Helvetica, sans-serif; | |
font-size: 50px; | |
background: rgba(255,255,255,0.5); | |
padding: 0px 0px; | |
color: #999; | |
margin-right: 0px; | |
text-decoration: none; | |
border-radius: 3px; | |
transition: background 0.3s linear 0s, color 0.3s linear 0s; | |
} | |
#playButton > p:hover { | |
background: #6F8A00; | |
color: #fff; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment