-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
157 lines (144 loc) · 6.63 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
150
151
152
153
154
155
156
157
<!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">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
<link href="https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/240/apple/325/musical-keyboard_1f3b9.png" rel="icon">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" crossorigin="anonymous"></script>
<script src="script.js" defer></script>
<title>Hear Harmony</title>
</head>
<body class="d-flex flex-column min-vh-100" data-title="train-page">
<!--Navigation bar-->
<nav class="navbar navbar-expand-md navbar-dark p-2">
<div class="container-fluid">
<!--Nav Brand-->
<a class="navbar-brand fs-4" href="index.html">Hear Harmony</a>
<button aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler" data-bs-target="#navbar" data-bs-toggle="collapse" type="button">
<span class="navbar-toggler-icon"></span>
</button>
<!--Nav items-->
<div class="collapse navbar-collapse" id="navbar">
<ul class="navbar-nav me-auto">
<li class="nav-item"><a class="nav-link" href="index.html">Train</a></li>
<li class="nav-item"><a class="nav-link" href="about.html">About</a></li>
<li class="nav-item"><a class="nav-link" href="contact.html">Contact</a></li>
</ul>
<!--Dark mode switch-->
<form class="ms-auto py-2">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="dark-switch" value="no">
<label class="form-check-label" id="dark-label" for="dark-switch">Dark mode</label>
</div>
</form>
</div>
</div>
</nav>
<!--Main content-->
<main>
<!--Buttons-->
<div class="buttons container mx-auto mt-4 p-0">
<div class="row gx-4">
<div class="btn-group-vertical col-4">
<!--Play Reference Button-->
<div class="col-12">
<button type="button" class="btn btn-primary col-12 p-1" id="reference">Reference<br> </button>
</div>
<!--Select reference note-->
<div class="col-12">
<select class="form-select col-12 p-1" id="reference-select" aria-label="Default select example">
<option disabled selected="selected">Select reference</option>
</select>
</div>
</div>
<div class="btn-group-vertical col-4">
<!--Play Random Button-->
<div class="col-12">
<button type="button" class="btn btn-success col-12 p-1" id="random">Play<br> </button>
</div>
<!--Choose how many random notes-->
<div class="col-12">
<select class="col-12 form-select p-1" id="num-of-random" aria-label="Default select example">
<option disabled selected="selected">How many notes?</option>
</select>
</div>
</div>
<div class="btn-group-vertical col-4">
<!--Shuffle Button-->
<div class="col-12"><button type="button" class="btn btn-warning col-12 p-1" id="shuffle">Shuffle<br> </button></div>
<!--Show Answer Button-->
<div class="col-12"><button type="button" class="btn btn-warning col-12 disabled p-1" id="answer">Answers</button></div>
</div>
</div>
</div>
<!--Feedback area. Text is generated in JS-->
<div class="feedback p-1 mx-auto mt-4">
<p class="my-0" id="feedback1"></p>
<p class="my-2" id="feedback2"></p>
</div>
<div class="piano mt-4">
<!--First octave-->
<div id="C3-key" class="key white mb-4"></div>
<div id="Db3-key" class="key black mb-4"></div>
<div id="D3-key" class="key white mb-4"></div>
<div id="Eb3-key" class="key black mb-4"></div>
<div id="E3-key" class="key white mb-4"></div>
<div id="F3-key" class="key white mb-4"></div>
<div id="Gb3-key" class="key black mb-4"></div>
<div id="G3-key" class="key white mb-4"></div>
<div id="Ab3-key" class="key black mb-4"></div>
<div id="A3-key" class="key white mb-4"></div>
<div id="Bb3-key" class="key black mb-4"></div>
<div id="B3-key" class="key white mb-4"></div>
<!--Second octave-->
<div id="C4-key" class="key white mb-4"></div>
<div id="Db4-key" class="key black mb-4"></div>
<div id="D4-key" class="key white mb-4"></div>
<div id="Eb4-key" class="key black mb-4"></div>
<div id="E4-key" class="key white mb-4"></div>
<div id="F4-key" class="key white mb-4"></div>
<div id="Gb4-key" class="key black mb-4"></div>
<div id="G4-key" class="key white mb-4"></div>
<div id="Ab4-key" class="key black mb-4"></div>
<div id="A4-key" class="key white mb-4"></div>
<div id="Bb4-key" class="key black mb-4"></div>
<div id="B4-key" class="key white mb-4"></div>
<div id="C5-key" class="key white mb-4"></div>
<div id="scroll"><i>- scroll -</i></div>
</div>
<!--Toggle options-->
<div class="container toggles p-1 ms-0 my-4">
<!--Prefer sharp spelling-->
<form>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="sharp-switch" value="no">
<label class="form-check-label" for="sharp-switch">Prefer sharp spelling</label>
</div>
</form>
<!--Static reference note-->
<form>
<div class="form-check form-switch py-2">
<input class="form-check-input" type="checkbox" id="static-ref-switch" value="no">
<label class="form-check-label" for="static-ref-switch">Static reference note</label>
</div>
</form>
<!--Random number of random notes-->
<form>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="random-num-of-random" value="no">
<label class="form-check-label" for="random-num-of-random">Random number of random notes</label>
</div>
</form>
</div>
</main>
<!--Footer-->
<footer class="text-center mt-auto">
<div class="container p-3">
All rights reserved © keyxcode
</div>
</footer>
</body>
</html>