-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (48 loc) · 2.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Whack-a-mole | inspired by Ania Kubow's video">
<!-- google fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Smooch+Sans&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="./images/mole-icon32px.png" type="image/x-icon">
<title>Whack-a-mole</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main>
<button id="soundOff" sound-off="false" aria-label="sound-toggle"></button>
<section class="info">
<h1 class="newGame-desktop">Whack<br>a<br>mole</h1>
<h1 class="newGame-mobile">Whack-a-mole</h1>
<h2>Score: <span id="score">0</span></h2>
<h2>Time left: <span id="time-left">60</span></h2>
<button class="newGame newGame-desktop" id="newGame-button-desktop">Play new game</button>
</section>
<section>
<div class="grid">
<div class="square" id="1"></div>
<div class="square" id="2"></div>
<div class="square" id="3"></div>
<div class="square" id="4"></div>
<div class="square" id="5"></div>
<div class="square" id="6"></div>
<div class="square" id="7"></div>
<div class="square" id="8"></div>
<div class="square" id="9"></div>
</div>
<div hidden class="game-over">
<div class="end">GAME OVER!</div>
<!-- ignoring singular here -->
<div class="end-score">You got <span id="result"></span> moles.</div>
<div class="says-Martin"><span id="saysMartin"></span></div>
</div>
</section>
<button class="newGame newGame-mobile" id="newGame-button-mobile">Play new game</button>
</main>
<script src="app.js"></script>
</body>
</html>