-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathindex.html
35 lines (32 loc) · 1.09 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
<html lang="en" dir="ltr">
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav>
<h1 class="name">Word Scramble</h1>
<div id="rules">
<p class="lead">Unscamble the words.</p>
<p>Type in your guess.</p>
<p>Get three correct words and level will increase.</p>
<p>Get a word wrong three times and game will restart.</p>
<p>Finish level 8 and you win.</p>
<p>Good luck!</p>
<button id="play-btn">Let's Play</button>
</div>
</nav>
<div id="game-container" class="hidden">
<p>Level: <span id="level">1</span></p>
<p>Score: <span id="score">0</span></p>
<p>Attempts: <span id="attempts">0</span></p>
<p id="info"></p>
<div id="guess-container">
<p id="scrambled-word"></p>
<input id="user-guess" type="text" placeholder="Enter your guess">
<button id="submit">Submit</button>
<button id="reset-btn">Reset</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>