-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·149 lines (117 loc) · 4.25 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE html>
<html lang="en" >
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MVW4KYN6W8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-MVW4KYN6W8');
</script>
<meta charset="UTF-8">
<title>Sweet Piano</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!--
Inspired by Wes Bos' JS Drum Kit - from Javascript30 (www.javascript30.com)
Also special thanks to freesound.org and neatonk ( https://www.freesound.org/people/neatonk/ ) for the sound pack!
-->
<div class="instructions">Press the mentioned Keys on your keyboard to play. Also, can play from the Numeric Keypad, of an External USB Keyboard.</div>
<div class="keys">
<div class="container">
<div class="black-keys">
<div data-key="0" class="bkey" id="Fs3">
<bbd>0</bbd>
</div>
<div data-key="1" class="bkey" id="Gs3">
<bbd>1</bbd>
</div>
<div data-key="2" class="bkey" id="As3">
<bbd>2</bbd>
</div>
<div data-key="3" class="bkey" id="Cs4">
<bbd>3</bbd>
</div>
<div data-key="4" class="bkey" id="Ds4">
<bbd>4</bbd>
</div>
<div data-key="5" class="bkey" id="Fs4">
<bbd>5</bbd>
</div>
<div data-key="6" class="bkey" id="Gs4">
<bbd>6</bbd>
</div>
<div data-key="7" class="bkey" id="As4">
<bbd>7</bbd>
</div>
</div>
<div class="white-keys">
<div data-key="8" class="wkey">
<kbd>8</kbd>
</div>
<div data-key="9" class="wkey">
<kbd>9</kbd>
</div>
<div data-key="." class="wkey">
<kbd>.</kbd>
</div>
<div data-key="Enter" class="wkey">
<kbd>Enter</kbd>
</div>
<div data-key="+" class="wkey">
<kbd>+ =</kbd>
</div>
<div data-key="-" class="wkey">
<kbd>-</kbd>
</div>
<div data-key="*" class="wkey">
<kbd>* ,</kbd>
</div>
<div data-key="/" class="wkey">
<kbd>/</kbd>
</div>
<div data-key="ArrowUp" class="wkey">
<kbd>Up Arrow</kbd>
</div>
<div data-key="ArrowLeft" class="wkey">
<kbd>Left Arrow</kbd>
</div>
<div data-key="ArrowDown" class="wkey">
<kbd>Down Arrow</kbd>
</div>
<div data-key="ArrowRight" class="wkey">
<kbd>Right Arrow</kbd>
</div>
</div>
</div>
</div>
<audio preload="auto" data-key="8" src="sounds/f3.mp3"></audio>
<audio preload="auto" data-key="9" src="sounds/g3.mp3"></audio>
<audio preload="auto" data-key="0" src="sounds/fs3.mp3"></audio>
<audio preload="auto" data-key="." src="sounds/a3.mp3"></audio>
<audio preload="auto" data-key="1" src="sounds/gs3.mp3"></audio>
<audio preload="auto" data-key="Enter" src="sounds/b3.mp3"></audio>
<audio preload="auto" data-key="+" src="sounds/c4.mp3"></audio>
<audio preload="auto" data-key="=" src="sounds/c4.mp3"></audio>
<audio preload="auto" data-key="2" src="sounds/as3.mp3"></audio>
<audio preload="auto" data-key="-" src="sounds/d4.mp3"></audio>
<audio preload="auto" data-key="3" src="sounds/cs4.mp3"></audio>
<audio preload="auto" data-key="*" src="sounds/e4.mp3"></audio>
<audio preload="auto" data-key="," src="sounds/e4.mp3"></audio>
<audio preload="auto" data-key="4" src="sounds/ds4.mp3"></audio>
<audio preload="auto" data-key="ArrowUp" src="sounds/f4.mp3"></audio>
<audio id="111" preload="auto" data-key="/" src="sounds/g4.mp3"></audio>
<audio preload="auto" data-key="5" src="sounds/fs4.mp3"></audio>
<audio preload="auto" data-key="6" src="sounds/gs4.mp3"></audio>
<audio preload="auto" data-key="ArrowLeft" src="sounds/a4.mp3"></audio>
<audio preload="auto" data-key="7" src="sounds/as4.mp3"></audio>
<audio preload="auto" data-key="ArrowDown" src="sounds/b4.mp3"></audio>
<audio preload="auto" data-key="ArrowRight" src="sounds/c5.mp3"></audio>
<script src="./script.js"></script>
<!--
<script src="./jquery-3.5.1.min.js"></script>
-->
</body>
</html>