-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (60 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Crete+Round:400,700&display=swap">
<link rel="stylesheet" href="style.css">
<title>Keyboard Drumkit</title>
</head>
<body>
<main class="main-container">
<div class="keys" id="clap" data-key="65">
<h1>A</h1>
<p>Clap</p>
</div>
<div class="keys" id="hihat" data-key="83">
<h1>S</h1>
<p>Hihat</p>
</div>
<div class="keys" id="kick" data-key="68">
<h1>D</h1>
<p>Kick</p>
</div>
<div class="keys" id="openhat" data-key="70">
<h1>F</h1>
<p>Openhat</p>
</div>
<div class="keys" id="boom" data-key="71">
<h1>G</h1>
<p>Boom</p>
</div>
<div class="keys" id="ride" data-key="72">
<h1>H</h1>
<p>Ride</p>
</div>
<div class="keys" id="snare" data-key="74">
<h1>J</h1>
<p>Snare</p>
</div>
<div class="keys" id="tom" data-key="75">
<h1>K</h1>
<p>Tom</p>
</div>
<div class="keys" id="tink" data-key="76">
<h1>L</h1>
<p>Tink</p>
</div>
</main>
<audio data-key="65" src="sounds/clap.wav"></audio>
<audio data-key="83" src="sounds/hihat.wav"></audio>
<audio data-key="68" src="sounds/kick.wav"></audio>
<audio data-key="70" src="sounds/openhat.wav"></audio>
<audio data-key="71" src="sounds/boom.wav"></audio>
<audio data-key="72" src="sounds/ride.wav"></audio>
<audio data-key="74" src="sounds/snare.wav"></audio>
<audio data-key="75" src="sounds/tom.wav"></audio>
<audio data-key="76" src="sounds/tink.wav"></audio>
<script src="script.js"></script>
</body>
</html>