Created
March 17, 2017 12:24
-
-
Save sheafk/2d78218c486864f0d0d4027ea3683e02 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=2d78218c486864f0d0d4027ea3683e02
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> | |
<title>Page Title</title> | |
</head> | |
<body> | |
<h1>Guess the Number</h1> | |
<p>The computer is thinking of a number between 1 and 10. Your job is to guess that number. </p> | |
<p>Are you ready?</p> | |
<input id="answer"> | |
<button id="try">Check your answer</button> | |
<button id="newGame">Reset</button> | |
<div id="guess"> | |
<p>Your guess:</p> | |
</div> | |
<div id="Hint"></div> | |
</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
{"enabledLibraries":["jquery"]} |
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
$("#try").click(function() { | |
$("#guess").append($("#answer").val()); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment