-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (32 loc) · 879 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<title>Hangman</title>
<meta charset="UTF-8">
<link href="hangman.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Sarabun" rel="stylesheet">
<script src="hangman.js"></script>
</head>
<body>
<div id="container">
<div id="gameTitle">Hangman</div>
<div id="gallows"></div>
<div id="guessed">
<h3>Guessed Letters</h3>
<h2 id="guessedLetters"></h2>
</div>
<div id="word">
<h1 id="theWord"></h2>
</div>
<br />
<div id="guessDiv">
<input id="guessInput" type="text" maxlength="1" />
<button id="check-btn" onclick="checkLetter()">Check Letter</button>
</div>
<div id="message"></div>
<div id="playAgain">
<button id="playAgain-btn" onclick="setUpGame()">Play Again</button>
</div>
</div>
</body>
</html>