-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
98 lines (90 loc) · 4.14 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
<!DOCTYPE html>
<html>
<head>
<title>Virtual Instruments</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8">
<!-- <meta name="description" content="Using the Grids and Flexbox"> -->
<!-- <meta name="keywords" content="HTML, CSS, Grids,Flexbox, Web Development"> -->
<meta name="author" content="Hardik Chopra">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="icon" type="image/x-icon" href="logo.png">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200&display=swap" rel="stylesheet">
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> -->
</head>
<body>
<header>
<h1>Welcome to Virtual World</h1>
<p>Press the specified keys or click on the piano to play !!</p>
</header>
<section>
<h1 class ="heading">PIANO</h1>
<div id="piano">
<div data-note="66" class="keys white endKey">b</div>
<div data-note="88" class="keys black">a</div>
<div data-note="67" class="keys white">s</div>
<div data-note="86" class="keys black">d</div>
<div data-note="65" class="keys white">f</div>
<div data-note="83" class="keys black">g</div>
<div data-note="68" class="keys white">h</div>
<div data-note="70" class="keys black">j</div>
<div data-note="71" class="keys white">k</div>
<div data-note="72" class="keys white">l</div>
<div data-note="74" class="keys black">;</div>
<div data-note="75" class="keys white">'</div>
<div data-note="76" class="keys black">\</div>
<div data-note="186" class="keys white">z</div>
<div data-note="222" class="keys black">x</div>
<div data-note="220" class="keys white">c</div>
<div data-note="90" class="keys white endKey">v</div>
</div>
<h1 class="heading" id="drumHeading">DRUMS</h1>
<div id="drumSet">
<div data-note="81" class="keys drum">q</div>
<div data-note="87" class="keys drum">w</div>
<div data-note="69" class="keys drum">e</div>
<div data-note="82" class="keys drum">r</div>
<div data-note="84" class="keys drum">t</div>
<div data-note="89" class="keys drum">y</div>
<div data-note="85" class="keys drum">u</div>
<div data-note="73" class="keys drum">i</div>
<div data-note="79" class="keys drum">o</div>
<div data-note="80" class="keys drum">p</div>
</div>
<!-- each audio has a id equal to the datanote of the keys (which will help in accessing them) -->
<audio id="65" src="audios/A.wav"></audio>
<audio id="83" src="audios/S.wav"></audio>
<audio id="68" src="audios/D.wav"></audio>
<audio id="70" src="audios/F.wav"></audio>
<audio id="71" src="audios/G.wav"></audio>
<audio id="72" src="audios/H.wav"></audio>
<audio id="74" src="audios/J.wav"></audio>
<audio id="75" src="audios/K.wav"></audio>
<audio id="76" src="audios/L.wav"></audio>
<audio id="186" src="audios/colon.wav"></audio>
<audio id="222" src="audios/quote.wav"></audio>
<audio id="220" src="audios/slash.wav"></audio>
<audio id="88" src="audios/X.wav"></audio>
<audio id="90" src="audios/Z.wav"></audio>
<audio id="67" src="audios/C.wav"></audio>
<audio id="86" src="audios/V.wav"></audio>
<audio id="66" src="audios/B.wav"></audio>
<!-- ------------------------------------------------------------------>
<audio id="81" src="audios/Q.wav"></audio>
<audio id="87" src="audios/W.wav"></audio>
<audio id="69" src="audios/E.wav"></audio>
<audio id="82" src="audios/R.wav"></audio>
<audio id="84" src="audios/T.wav"></audio>
<audio id="89" src="audios/Y.wav"></audio>
<audio id="85" src="audios/U.wav"></audio>
<audio id="73" src="audios/I.wav"></audio>
<audio id="79" src="audios/O.wav"></audio>
<audio id="80" src="audios/P.wav"></audio>
<p id="note">For better experience rotate your phone.</p>
</section>
<script src="script.js" ></script>
</body>
</html>