-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (102 loc) · 3.87 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<script defer src="index.js"></script>
<title>Drum Kit</title>
</head>
<body>
<div class="wrapper">
<div class="container">
<div class="key-container">
<div class="key" data-key="65">
<kbd class="key__alphabet">A</kbd>
<span class="key__name">Clap</span>
</div>
<div class="key" data-key="83">
<kbd class="key__alphabet">S</kbd>
<span class="key__name">Hithat</span>
</div>
<div class="key" data-key="68">
<kbd class="key__alphabet">D</kbd>
<span class="key__name">Kick</span>
</div>
<div class="key" data-key="70">
<kbd class="key__alphabet">F</kbd>
<span class="key__name">Openhat</span>
</div>
<div class="key" data-key="71">
<kbd class="key__alphabet">G</kbd>
<span class="key__name">Boom</span>
</div>
<div class="key" data-key="72">
<kbd class="key__alphabet">H</kbd>
<span class="key__name">Ride</span>
</div>
<div class="key" data-key="74">
<kbd class="key__alphabet">J</kbd>
<span class="key__name">Snare</span>
</div>
<div class="key" data-key="75">
<kbd class="key__alphabet">K</kbd>
<span class="key__name">Tom</span>
</div>
<div class="key" data-key="76">
<kbd class="key__alphabet">L</kbd>
<span class="key__name">Tink</span>
</div>
</div>
<p class="instruction">
Press a key or click on a box to play a sound!
</p>
<audio
class="key-audio"
data-key="65"
src="./assets/sounds/clap.wav"
></audio>
<audio
class="key-audio"
data-key="83"
src="./assets/sounds/hihat.wav"
></audio>
<audio
class="key-audio"
data-key="68"
src="./assets/sounds/kick.wav"
></audio>
<audio
class="key-audio"
data-key="70"
src="./assets/sounds/openhat.wav"
></audio>
<audio
class="key-audio"
data-key="71"
src="./assets/sounds/boom.mp3"
></audio>
<audio
class="key-audio"
data-key="72"
src="./assets/sounds/ride.wav"
></audio>
<audio
class="key-audio"
data-key="74"
src="./assets/sounds/snare.wav"
></audio>
<audio
class="key-audio"
data-key="75"
src="./assets/sounds/tom.wav"
></audio>
<audio
class="key-audio"
data-key="76"
src="./assets/sounds/tink.wav"
></audio>
</div>
</div>
</body>
</html>