-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (62 loc) · 1.75 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
<!DOCTYPE html>
<html>
<head>
<title>Drum Kit</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div class="container">
<h1>JavaScript Drum Kit</h1>
<div class="kit-container">
<div class="kit-wrap">
<div class="keys" data-key="65">
<kbd>A</kbd>
<span class="sound">Kick</span>
</div>
<div class="keys" data-key="83">
<kbd>S</kbd>
<span class="sound">Snare</span>
</div>
<div class="keys" data-key="68">
<kbd>D</kbd>
<span class="sound">HiHat</span>
</div>
<div class="keys" data-key="70">
<kbd>F</kbd>
<span class="sound">LowHat</span>
</div>
<div class="keys" data-key="71">
<kbd>G</kbd>
<span class="sound">HiTom</span>
</div>
<div class="keys" data-key="72">
<kbd>H</kbd>
<span class="sound">MidTom</span>
</div>
<div class="keys" data-key="74">
<kbd>J</kbd>
<span class="sound">LowTom</span>
</div>
<div class="keys" data-key="75">
<kbd>K</kbd>
<span class="sound">Ride</span>
</div>
<div class="keys" data-key="76">
<kbd>L</kbd>
<span class="sound">Crash</span>
</div>
</div>
</div>
</div>
<audio data-key="65" src="sounds/kick.mp3"></audio>
<audio data-key="83" src="sounds/snare.mp3"></audio>
<audio data-key="68" src="sounds/open-hat.mp3"></audio>
<audio data-key="70" src="sounds/closed-hat.mp3"></audio>
<audio data-key="71" src="sounds/tom-hi.mp3"></audio>
<audio data-key="72" src="sounds/tom-mid.mp3"></audio>
<audio data-key="74" src="sounds/tom-low.mp3"></audio>
<audio data-key="75" src="sounds/ride-bell.mp3"></audio>
<audio data-key="76" src="sounds/crash.mp3"></audio>
<script type="text/javascript" src="js/script.js"></script>
</body>
</html>