-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (44 loc) · 1.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Drum Game 🥁</title>
<link rel="stylesheet" href="vendor/tachyons.min.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
.box {
background-color: #cdecff;
outline: 2px solid #96ccff;
}
.box.tick {
background-color: #19a974;
}
.box.isActive {
background-color: #ff80cc;
}
.box.mistake.tick {
background-color: #ff4136;
}
</style>
</head>
<body>
<section class="game sans-serif ml2">
<h1 class="f4">Drum Game 🥁</h1>
<div class="board ma3">
<div class="pattern-canvas">Loading...</div>
</div>
<div class="finished" style="display: none">
<h2 class="woo-hoo">Woo-hoo, you finished the game, congrats!</h2>
<a href="." class="btn primary-btn start-btn">Play again</a>
</div>
<p class="f6 mt4 w6">
<strong>How to play:</strong> Listen to the drum loop attentively, then
click on the boxes until their pattern matches the loop sequence. For
best results, plug-in your headphones 🎧
</p>
</section>
<script src="audio.js"></script>
<script src="game.js"></script>
<script src="app.js"></script>
</body>
</html>