Skip to content

Instantly share code, notes, and snippets.

@sheafk
Created March 17, 2017 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sheafk/2d78218c486864f0d0d4027ea3683e02 to your computer and use it in GitHub Desktop.
Save sheafk/2d78218c486864f0d0d4027ea3683e02 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=2d78218c486864f0d0d4027ea3683e02
<!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>
{"enabledLibraries":["jquery"]}
$("#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