-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (42 loc) · 1.24 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="main.css">
<script defer type="text/javascript" src="hangman.js"></script>
<title>Hangman Game</title>
</head>
<body>
<header>
<h1>Let's play Hangman</h1>
</header>
<article id="player1">
<h2>Your turn Player 1</h2>
<h3>Write a word or phrase longer than 3 characters. You can't use proper nouns such as names, places, and brands:</h3>
<div class="form">
<input type="text" id="player1-phrase">
<input type="submit" id="phrase-button" value="Submit">
</div>
</article>
<article id="player2" class="hide">
<h2>Your turn Player 2</h2>
<section>
<h4>You can miss <span id="lives">6</span> guesses before you die.<h4>
</section>
<h3 id="phrase-to-guess"></h3>
<section>
<h3>Write a letter or the exact phrase to solve:</h3>
<div class="form">
<input type="text" id="player2-guess">
<input type="submit" id="guess-button" value="Submit">
</div>
</section>
</article>
<article id="game-over" class="hide">
<h1>Game Over</h1>
</article>
<footer>
<p>Made with (lots of) ☕ by Diego Castañeda in 2016.</p>
</footer>
</body>
</html>