Created
April 8, 2017 22:11
-
-
Save anonymous/dabb9271fe8dfdf1cf39adfa467f0c5c to your computer and use it in GitHub Desktop.
Exported from Popcode.
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> | |
<script src="https://code.jquery.com/jquery.js"> </script> | |
<script src="script.js"></script> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
<title>Password Guesser></title> | |
</head> | |
<body> | |
<input id="input"> | |
<button type="button">can you guess the word!</button> | |
<h1></h1> | |
</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
// JavaScript File | |
$(document).ready(function() { | |
var secretword = "Hello"; | |
$("button").click(function() { | |
if (secretword === $("#input").val()) { | |
//instad of using line 11 try line 12 | |
// $("h1").append("congratulations"); | |
$("h1").html("congratulations"); | |
} | |
//var name = $("#input").val(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment