-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (65 loc) · 2.61 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<title>Whack-A-Mole!</title>
<link href="styles.css" rel="stylesheet">
<script src="./scripts.js"></script>
</head>
<body>
<div id="welcome-screen" class="welcome-screen">
<h1>Whack-A-Mole!</h1>
<p>a dead simple, vanilla javascript game by @juanparadox</p>
<button type="button" onclick="handleStartGame()" class="-start">START</button>
</div>
<main id="game" class="-hidden">
<header>
<div class="group">
<h4>Time</h4>
<h3 id="time">30</h3>
</div>
<div class="group">
<h4>Score</h4>
<h3 id="current-score">0</h3>
</div>
<div class="group">
<h4>High Score</h4>
<h3 id="high-score">0</h3>
</div>
</header>
<div class="playing-field">
<div class="hole">
<img alt="an illustration of a mole" src="./img/mole.svg" class="mole" role="button" />
</div>
<div class="hole">
<img alt="an illustration of a mole" src="./img/mole.svg" class="mole" role="button" />
</div>
<div class="hole">
<img alt="an illustration of a mole" src="./img/mole.svg" class="mole" role="button" />
</div>
<div class="hole">
<img alt="an illustration of a mole" src="./img/mole.svg" class="mole" role="button" />
</div>
<div class="hole">
<img alt="an illustration of a mole" src="./img/mole.svg" class="mole" role="button" />
</div>
<div class="hole">
<img alt="an illustration of a mole" src="./img/mole.svg" class="mole" role="button" />
</div>
<div class="hole">
<img alt="an illustration of a mole" src="./img/mole.svg" class="mole" role="button" />
</div>
<div class="hole">
<img alt="an illustration of a mole" src="./img/mole.svg" class="mole" role="button" />
</div>
<div class="hole">
<img alt="an illustration of a mole" src="./img/mole.svg" class="mole" role="button" />
</div>
</div>
<footer>
<button type="button" onclick="handleStopGame()" class="-stop">STOP</button>
<button type="button" onclick="handleStartGame()" class="-start" disabled="true" id="start-button">START</button>
<button type="button" onclick="handleResetGame()" class="-reset">RESET</button>
</footer>
</main>
</body>
</html>