-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlearn.html
368 lines (317 loc) · 15.9 KB
/
learn.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Cache-Control" content="public,no-cache, no-store, must-revalidate" />
<meta http-equiv="Cache-Control" content="max-age=0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta property="og:title" content="Guitar Chord Checker - Accurate Chord Recording and Matching">
<meta property="og:description" content="Chords available to users, this guitar learning application is a quick and convenient way to check the accuracy of guitar chords on the fly. Simply select a chord and record a sample, and an analysis of your recording will be outputted back to you. Founded in 2020, Guitar Chord Checker aims to help millions of guitarists refine their skills without any hassle. Its mission is to be an easily accessible tool for the everyday guitarist with just one click of a button">
<meta property="og:image" content="https://chords-checker.herokuapp.com/static/img/logo.png">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Chords available to users, this guitar learning application is a quick and convenient way to check the accuracy of guitar chords on the fly. Simply select a chord and record a sample, and an analysis of your recording will be outputted back to you. Founded in 2020, Guitar Chord Checker aims to help millions of guitarists refine their skills without any hassle. Its mission is to be an easily accessible tool for the everyday guitarist with just one click of a button">
<meta name="author" content="Frontline Strategy Ltd.">
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"/>
--> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
<link rel="stylesheet" href="https://getbootstrap.com/docs/4.3/dist/css/bootstrap.min.css"/>
<link href="../static/css/basic.min.css" rel="stylesheet" type="text/css" />
<link href="../static/css/dropzone.min.css" rel="stylesheet" type="text/css" />
<link href="../static/css/style.css" rel="stylesheet" type="text/css" />
<link rel="icon"
type="image/png"
href="../static/img/logo.ico"/>
<title>Guitar Chord Checker - Accurate Chord Matching</title>
<!-- Bootstrap core CSS -->
<!-- Custom styles for this template -->
</head>
<body class="text-center">
<div class="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column">
<!-- <header class="masthead mb-auto">
<div class="inner">
<div class="row col-12">
<div class="my-2 my-lg-0 masthead-brand text-left col-md-12 col-lg-4 col-sm-12 col-xl-4"><img src="../static/img/logo.png" style="width: 150px; height:auto;" alt=""></div>
<nav class="nav nav-masthead col-lg-8 col-sm-12 col-md-12 col-xl-8">
<a class="nav-link active" href="/">Home</a>
<a class="nav-link" href="about">About</a>
</nav>
</div>
</div>
</header> -->
<header class="masthead mb-auto">
<div class="inner col-12">
<div class="my-2 my-lg-0 masthead-brand text-center col-md-12 col-lg-4 col-sm-12 col-xl-4"><img src="../static/img/logo.png" style="width: 150px; height:auto;" alt=""></div>
<nav class="nav nav-masthead justify-content-center">
<a class="nav-link" href="/">Home</a>
<a class="nav-link active" href="learn">Learn</a>
<a class="nav-link" href="about">About</a>
<a class="nav-link" href="resources">Resources</a>
<a class="nav-link" href="songs">Songs</a>
</nav>
</div>
</header>
<!-- <div aria-live="polite" aria-atomic="true" class="d-flex justify-content-center align-items-center" style="position: absolute;">
<div class="toast" data-delay="3000" data-autohide="false">
<div class="toast-header">
<strong class="mr-auto">ChordChecker</strong>
<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="toast-body">
Save your record and upload it to check your chord!
</div>
</div>
</div> -->
<main role="main" class="inner cover ">
<h2 class="cover-heading mb-4 d-lg-none">Guitar Chord Learning Application</h2>
<h1 class="cover-heading mb-4 d-none d-lg-block ">Guitar Chord Learning Application</h1>
<p class="lead mb-0 mb-lg-4 mb-xl-4">Here are some tutorials on how to play the various chords made by other reputable online sources:</p>
<div id="bigDiv">
<div class="row mb-0 mb-lg-4 mb-xl-4 col-12 d-flex justify-content-center align-items-center" id="myDiv">
<div class="col-1 col d-none d-lg-block"></div>
<button id="c" class="col-2 bt-active btn btn-dark themed-grid-col">C</button>
<div class="col-1 d-none d-lg-block"></div>
<button id="g" class="col-2 btn btn-dark themed-grid-col">G</button>
<div class="col-1 d-none d-lg-block"></div>
<button id="d" class="col-2 btn btn-dark themed-grid-col">D</button>
<div class="col-1 d-none d-lg-block"></div>
<button id="f" class="col-2 btn btn-dark themed-grid-col">F</button>
</div>
<div class="row mb-0 mb-lg-4 mb-xl-4 col-12 d-flex justify-content-center align-items-center" id="myDiv">
<div class="col-1 col d-none d-lg-block"></div>
<button id="a" class="col-2 btn btn-dark themed-grid-col">A</button>
<div class="col-1 d-none d-lg-block"></div>
<button id="am" class="col-2 btn btn-dark themed-grid-col">Am</button>
<div class="col-1 d-none d-lg-block"></div>
<button id="e" class="col-2 btn btn-dark themed-grid-col">E</button>
<div class="col-1 d-none d-lg-block"></div>
<button id="em" class="col-2 btn btn-dark themed-grid-col">Em</button>
</div>
</div>
<div class="row col-12" id="tab_holder">
<!-- <div class="col-6 my-4"></div>
<div class="col-6 my-4">
<div class="msg-dz alert alert-info alert-dismissible displaystyle-leftborder displaystyle-info" role="alert">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<p class="msg-dz-ctn mt-4"></p>
</div>
</div> -->
<div id="c-tab" class="tab">
<div class="ytVid1">
<iframe width="560" height="315" src="https://www.youtube.com/embed/RBYqdBqogo4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="ytVid2">
<iframe width="560" height="315" src="https://www.youtube.com/embed/jAqn4kqAOr8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
<div id="g-tab" class="tab">
<div class="ytVid1">
<iframe width="560" height="315" src="https://www.youtube.com/embed/gEzwpqmt2gc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="ytVid2">
<iframe width="560" height="315" src="https://www.youtube.com/embed/Ysvlra9ESKM" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
<div id="d-tab" class="tab">
<div class="ytVid1">
<iframe width="560" height="315" src="https://www.youtube.com/embed/yh6sPqDEZCY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="ytVid2">
<iframe width="560" height="315" src="https://www.youtube.com/embed/fZwviNZjHUk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
<div id="f-tab" class="tab">
<div class="ytVid1">
<iframe width="560" height="315" src="https://www.youtube.com/embed/ecPzu9sTKbo" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="ytVid2">
<iframe width="560" height="315" src="https://www.youtube.com/embed/kmAVkBGRFjY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
<div id="a-tab" class="tab">
<div class="ytVid1">
<iframe width="560" height="315" src="https://www.youtube.com/embed/VkkOFLouQDs" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="ytVid2">
<iframe width="560" height="315" src="https://www.youtube.com/embed/e7LMysDdUHA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
<div id="am-tab" class="tab">
<div class="ytVid1">
<iframe width="560" height="315" src="https://www.youtube.com/embed/kV_EABwevy4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="ytVid2">
<iframe width="560" height="315" src="https://www.youtube.com/embed/Y_oEu0zpQL4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
<div id="e-tab" class="tab">
<div class="ytVid1">
<iframe width="560" height="315" src="https://www.youtube.com/embed/8H393ryDkuY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="ytVid2">
<iframe width="560" height="315" src="https://www.youtube.com/embed/uoBaqkPDyOE" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
<div id="em-tab" class="tab">
<div class="ytVid1">
<iframe width="560" height="315" src="https://www.youtube.com/embed/Hfm4-yOI6oA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="ytVid2">
<iframe width="560" height="315" src="https://www.youtube.com/embed/wk3mkim2AAU" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</div>
</div>
</main>
<footer class="mastfoot mt-auto">
<div class="inner">
<p>© Avi Kabra</p>
</div>
</footer>
</div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
<script src="https://cdn.rawgit.com/mattdiamond/Recorderjs/08e7abd9/dist/recorder.js"></script>
<script src="{{ url_for('static', filename="js/dropzone.min.js") }}" type="text/javascript" > </script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-174183017-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-174183017-1');
</script>
<!-- Change dev to production version -->
<!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
-->
<script>
//Dropzone.options.myAwesomeDropzone = false;
//Dropzone.autoDiscover = false;
//var myDropzone = new Dropzone("div#dropzone", { url: "/api/file-upload"});
// Mobile specification
$(function() {
let isMobile = window.matchMedia("only screen and (max-width: 760px)").matches;
if (isMobile) {
var lead = document.getElementsByClassName("lead");
lead[0].style.display = "none";
var vid_holder = document.getElementById("tab_holder");
vid_holder.style.width = "100%";
var ytvid1=document.getElementsByClassName("ytVid1");
for (let syt of ytvid1) {
syt.querySelectorAll("iframe")[0].style.align = "center";
syt.querySelectorAll("iframe")[0].style.width = "auto";
}
var ytvid2= document.getElementsByClassName("ytVid2");
for (let i = 0; i < ytvid2.length; i++) {
ytvid2[i].style.display = "none";
}
}
});
// Hide other tables
$("#g-tab").hide();
$("#d-tab").hide();
$("#f-tab").hide();
$("#a-tab").hide();
$("#am-tab").hide();
$("#e-tab").hide();
$("#em-tab").hide();
$("#c").click(function(e){
$("#c-tab").show();
$("#g-tab").hide();
$("#d-tab").hide();
$("#f-tab").hide();
$("#a-tab").hide();
$("#am-tab").hide();
$("#e-tab").hide();
$("#em-tab").hide();
});
$("#g").click(function(e){
$("#c-tab").hide();
$("#g-tab").show();
$("#d-tab").hide();
$("#f-tab").hide();
$("#a-tab").hide();
$("#am-tab").hide();
$("#e-tab").hide();
$("#em-tab").hide();
});
$("#d").click(function(e){
$("#c-tab").hide();
$("#g-tab").hide();
$("#d-tab").show();
$("#f-tab").hide();
$("#a-tab").hide();
$("#am-tab").hide();
$("#e-tab").hide();
$("#em-tab").hide();
});
$("#f").click(function(e){
$("#c-tab").hide();
$("#g-tab").hide();
$("#d-tab").hide();
$("#f-tab").show();
$("#a-tab").hide();
$("#am-tab").hide();
$("#e-tab").hide();
$("#em-tab").hide();
});
$("#a").click(function(e){
$("#c-tab").hide();
$("#g-tab").hide();
$("#d-tab").hide();
$("#f-tab").hide();
$("#a-tab").show();
$("#am-tab").hide();
$("#e-tab").hide();
$("#em-tab").hide();
});
$("#am").click(function(e){
$("#c-tab").hide();
$("#g-tab").hide();
$("#d-tab").hide();
$("#f-tab").hide();
$("#a-tab").hide();
$("#am-tab").show();
$("#e-tab").hide();
$("#em-tab").hide();
});
$("#e").click(function(e){
$("#c-tab").hide();
$("#g-tab").hide();
$("#d-tab").hide();
$("#f-tab").hide();
$("#a-tab").hide();
$("#am-tab").hide();
$("#e-tab").show();
$("#em-tab").hide();
});
$("#em").click(function(e){
$("#c-tab").hide();
$("#g-tab").hide();
$("#d-tab").hide();
$("#f-tab").hide();
$("#a-tab").hide();
$("#am-tab").hide();
$("#e-tab").hide();
$("#em-tab").show();
});
// Get the container element
var btnContainer = document.getElementById("bigDiv");
// Get all buttons with class="btn" inside the container
var btns = btnContainer.getElementsByClassName("btn");
// Loop through the buttons and add the active class to the current/clicked button
for (var i = 0; i < btns.length; i++) {
btns[i].addEventListener("click", function() {
var current = document.getElementsByClassName("bt-active");
// If there's no active class
if (current.length > 0) {
current[0].className = current[0].className.replace(" bt-active", "");
}
// Add the active class to the current/clicked button
this.className += " bt-active";
});
}
</script>
</html>