-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (62 loc) · 2.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScript Drum</title>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div class="container">
<!-- <div class="drum__container"> -->
<div class="key" data-key="KeyA">
<kbd class="kbd">A</kbd>
<span class="sound">ClAP</span>
</div>
<div class="key" data-key="KeyS">
<kbd class="kbd">S</kbd>
<span class="sound">HIHAT</span>
</div>
<div class="key" data-key="KeyD">
<kbd class="kbd">D</kbd>
<span class="sound">KICK</span>
</div>
<div class="key" data-key="KeyF">
<kbd class="kbd">F</kbd>
<span class="sound">OPENHAT</span>
</div>
<div class="key" data-key="KeyG">
<kbd class="kbd">G</kbd>
<span class="sound">BOOM</span>
</div>
<div class="key" data-key="KeyH">
<kbd class="kbd">H</kbd>
<span class="sound">RIDE</span>
</div>
<div class="key" data-key="KeyJ">
<kbd class="kbd">J</kbd>
<span class="sound">SNARE</span>
</div>
<div class="key" data-key="KeyK">
<kbd class="kbd">K</kbd>
<span class="sound">TOM</span>
</div>
<div class="key" data-key="KeyL">
<kbd class="kbd">L</kbd>
<span class="sound">TINK</span>
</div>
<!-- </div> -->
</div>
<audio data-key="KeyA" src="sounds/clap.wav"></audio>
<audio data-key="KeyS" src="sounds/hihat.wav"></audio>
<audio data-key="KeyD" src="sounds/kick.wav"></audio>
<audio data-key="KeyF" src="sounds/openhat.wav"></audio>
<audio data-key="KeyG" src="sounds/boom.wav"></audio>
<audio data-key="KeyH" src="sounds/ride.wav"></audio>
<audio data-key="KeyJ" src="sounds/snare.wav"></audio>
<audio data-key="KeyK" src="sounds/tom.wav"></audio>
<audio data-key="KeyL" src="sounds/tink.wav"></audio>
<script src="./index.js"></script>
</body>
</html>