Created
February 14, 2015 06:36
-
-
Save ckotsovos/d3ac7653adbd60f0deba to your computer and use it in GitHub Desktop.
Riddler Game Webpage V.1
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"> | |
<script src="puzzle.js"></script> | |
</head> | |
<body> | |
<aside> | |
<div id="playButton"> | |
<a href="#">?WANT TO PLAY A GAME?</a> | |
</div> | |
</aside> | |
</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
<script> | |
var message; | |
var myRiddle, | |
myRiddle = "eye"; | |
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); | |
</script> |
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"); | |
}, | |
div#playButton { | |
padding: 0px; border: #999 1px dashed; | |
} | |
div#playButton > a{ | |
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; | |
} | |
div#playButton > a:hover { | |
background: #6F8A00; | |
color: #fff; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment