forked from sumn2u/learn-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (38 loc) · 1.33 KB
/
index.html
File metadata and controls
41 lines (38 loc) · 1.33 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Whack-a-Mole Game 🦫</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<h1>Whack-a-Mole 🦫</h1>
<div class="scoreboard">
<p>Score: <span id="score">0</span></p>
<label for="difficulty">Difficulty:</label>
<select id="difficulty">
<option value="beginner" selected>Beginner</option>
<option value="easy">Easy</option>
<option value="medium">Medium</option>
<option value="hard">Hard</option>
</select>
<p>Time: <span id="time-left">30</span>s</p>
<button id="start-btn">Start Game</button>
<button id="reset-btn" disabled>Reset Game</button>
</div>
<div class="grid">
<!-- 9 holes -->
<div class="hole" data-index="0"></div>
<div class="hole" data-index="1"></div>
<div class="hole" data-index="2"></div>
<div class="hole" data-index="3"></div>
<div class="hole" data-index="4"></div>
<div class="hole" data-index="5"></div>
<div class="hole" data-index="6"></div>
<div class="hole" data-index="7"></div>
<div class="hole" data-index="8"></div>
</div>
<script type="module" src="index.mjs"></script>
</body>
</html>