Skip to content

Instantly share code, notes, and snippets.

@ckotsovos
Created February 14, 2015 06:36
Show Gist options
  • Save ckotsovos/d3ac7653adbd60f0deba to your computer and use it in GitHub Desktop.
Save ckotsovos/d3ac7653adbd60f0deba to your computer and use it in GitHub Desktop.
Riddler Game Webpage V.1
<!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>
<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>
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