forked from amaice/Jazz-Chordle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
734 lines (706 loc) · 22.2 KB
/
index.html
File metadata and controls
734 lines (706 loc) · 22.2 KB
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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="styles/reset.css" rel="stylesheet"/>
<link href="styles/mainStyle.css" rel="stylesheet"/>
<link rel="icon" href="media/logo.png">
<title>Musicle</title>
<!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> -->
<!-- Tone.js -->
<script src="https://github.com/Tonejs/Tone.js/releases/download/14.7.39/Tone.js"></script>
</head>
<body>
<!--to display the notes/chords actually on the staff https://github.com/0xfe/vexflow/wiki/Using-EasyScore-->
<header>
<h1>Musicle</h1>
</header>
<!-- Info -->
<div id="info" class="info right-icons">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" class="h-6 w-6 mr-2 cursor-pointer dark:stroke-white"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
</div>
<!-- Speaker -->
<div id="speaker" class="right-icons">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" version="1.1">
<g id="surface1">
<path style="fill:none;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(100%,100%,100%);stroke-opacity:1;stroke-miterlimit:4;" d="M 14.290433 50.341767 C 14.290433 48.2288 14.238897 40.846302 14.702719 36.607485 C 14.883094 35.009876 15.437104 34.030697 16.493587 33.785902 L 34.763016 33.785902 C 39.774869 33.528223 49.875879 14.021936 53.857017 13.236015 C 56.098823 12.913917 56.910511 14.640365 56.910511 16.289509 L 56.910511 50.212927 M 14.290433 50.315999 C 14.303317 52.428965 14.303317 59.811464 14.792907 64.05028 C 14.986166 65.647889 15.540175 66.614185 16.596658 66.85898 L 34.866087 66.73014 C 39.890825 66.962051 50.10779 86.403919 54.101812 87.164071 C 56.343618 87.473286 57.142422 85.746838 57.129538 84.084809 L 56.910511 50.174275 " transform="matrix(0.303187,0,0,0.303187,-3.160806,-3.161432)"/>
<path style="fill:none;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(100%,100%,100%);stroke-opacity:1;stroke-miterlimit:4;" d="M 68.245931 26.89853 C 69.792004 30.467382 70.99021 34.255261 71.814783 38.081791 C 72.587819 41.908322 73.000105 45.786388 73.000105 49.728874 C 73.000105 53.86462 72.536283 58.051901 71.660175 62.097458 C 70.732531 66.181668 69.379718 70.17569 67.563082 73.950684 C 67.047724 75.084471 64.883222 75.921927 63.736551 75.136007 C 63.169658 74.723721 62.860443 73.899149 62.808907 73.010157 L 62.808907 72.700942 C 62.808907 72.391727 62.860443 72.082513 62.963515 71.773298 C 64.045766 68.307518 64.883222 64.738666 65.39858 61.002323 C 65.965473 57.3304 66.223152 53.555405 66.223152 49.728874 C 66.223152 46.095603 65.965473 42.578287 65.501651 39.112507 C 65.037829 35.595191 64.316329 32.232482 63.324265 28.921309 C 62.963515 27.671567 63.375801 26.177029 64.200373 25.610136 C 65.347044 24.824216 67.679037 25.661672 68.245931 26.89853 Z M 68.245931 26.89853 " transform="matrix(0.303187,0,0,0.303187,-3.160063,-3.159204)"/>
<path style="fill:none;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(100%,100%,100%);stroke-opacity:1;stroke-miterlimit:4;" d="M 68.245931 26.89853 C 69.792004 30.467382 70.99021 34.255261 71.814783 38.081791 C 72.587819 41.908322 73.000105 45.786388 73.000105 49.728874 C 73.000105 53.86462 72.536283 58.051901 71.660175 62.097458 C 70.732531 66.181668 69.379718 70.17569 67.563082 73.950684 C 67.047724 75.084471 64.883222 75.921927 63.736551 75.136007 C 63.169658 74.723721 62.860443 73.899149 62.808907 73.010157 L 62.808907 72.700942 C 62.808907 72.391727 62.860443 72.082513 62.963515 71.773298 C 64.045766 68.307518 64.883222 64.738666 65.39858 61.002323 C 65.965473 57.3304 66.223152 53.555405 66.223152 49.728874 C 66.223152 46.095603 65.965473 42.578287 65.501651 39.112507 C 65.037829 35.595191 64.316329 32.232482 63.324265 28.921309 C 62.963515 27.671567 63.375801 26.177029 64.200373 25.610136 C 65.347044 24.824216 67.679037 25.661672 68.245931 26.89853 Z M 68.245931 26.89853 " transform="matrix(0.303187,0,0,0.303187,-3.160063,-3.159204)"/>
<path style="fill:none;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(100%,100%,100%);stroke-opacity:1;stroke-miterlimit:4;" d="M 72.548351 14.273288 C 73.630602 13.448716 75.588961 14.067145 76.27181 15.149396 C 79.273768 20.431812 81.592878 26.023443 83.151835 31.821216 C 84.697908 37.670526 85.535364 43.674442 85.535364 49.729895 C 85.535364 55.785347 84.697908 61.789264 83.151835 67.587038 C 81.592878 73.371927 79.273768 79.015094 76.27181 84.245974 C 75.588961 85.379761 73.630602 86.011074 72.548351 85.173618 C 71.504752 84.400581 71.350144 82.854508 71.813966 81.759373 C 73.939817 76.902127 75.537425 71.722783 76.63256 66.28576 C 77.714811 60.900272 78.281705 55.373061 78.281705 49.729895 C 78.281705 44.086729 77.714811 38.495098 76.63256 33.10961 C 75.537425 27.724123 73.939817 22.506127 71.813966 17.687532 C 71.350144 16.553746 71.556287 14.994789 72.548351 14.273288 Z M 72.548351 85.173618 C 73.630602 86.011074 75.588961 85.379761 76.27181 84.29751 C 79.273768 79.015094 81.592878 73.423463 83.151835 67.62569 C 84.697908 61.789264 85.535364 55.785347 85.535364 49.729895 C 85.535364 43.674442 84.697908 37.670526 83.151835 31.872752 C 81.592878 26.074978 79.273768 20.431812 76.27181 15.200932 C 75.588961 14.067145 73.630602 13.435832 72.548351 14.273288 C 71.504752 15.046324 71.350144 16.605281 71.813966 17.687532 C 73.939817 22.544778 75.537425 27.724123 76.63256 33.161146 C 77.714811 38.546634 78.281705 44.086729 78.281705 49.729895 C 78.281705 55.360177 77.714811 60.951808 76.63256 66.337295 C 75.537425 71.722783 73.939817 76.953663 71.813966 81.759373 C 71.350144 82.906044 71.556287 84.452117 72.548351 85.173618 Z M 72.548351 85.173618 " transform="matrix(0.303187,0,0,0.303187,-3.159816,-3.159514)"/>
<path id="mute" class="hidden" style="fill:none;stroke-width:50;stroke-linecap:round;stroke-linejoin:miter;stroke:rgb(100%,100%,100%);stroke-opacity:1;stroke-miterlimit:4;" d="M 320 320 C 1005.9375 1006.145833 288.75 288.75 320 320 Z M 320 320 C -366.145833 -365.9375 351.25 351.25 320 320 Z M 320 320 " transform="matrix(0.0375,0,0,0.0375,0,0)"/>
</g>
</svg>
</div>
<!-- Stats -->
<div id="stats" class="score right-icons">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true" class="h-6 w-6 mr-2 cursor-pointer dark:stroke-white"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"></path></svg>
</div>
<div id="content">
<div id="rule"><hr></div>
<div id="piano_container">
<svg
width="507"
height="121"
id="piano">
<!--
Copyright (c) 2005 Lauri Kaila.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU
Free Documentation License".
Intented to create a keyboard where key widths are
accurately in position.
See http://www.mathpages.com/home/kmath043.htm
for the math.
This keyboard has following properties (x=octave width).
1. All white keys have equal width in front (W=x/7).
2. All black keys have equal width (B=x/12).
3. The narrow part of white keys C, D and E is W - B*2/3
4. The narrow part of white keys F, G, A, and B is W - B*3/4
-->
<!-- White keys Octave 1 -->
<rect
style="fill:#ffffff;stroke:#000000"
x="0.5"
y="0.5"
width="23"
height="120"
class="key C"
id="C3" />
<circle
style="fill: none"
cx="12"
cy="109"
r="8"
id="C3 dot"
class="key C"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="23.5"
y="0.5"
width="23"
height="120"
class="key D"
id="D3" />
<circle
style="fill: none"
cx="35"
cy="109"
r="8"
id="D3 dot"
class="key D"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="46.5"
y="0.5"
width="23"
height="120"
class="key E"
id="E3" />
<circle
style="fill: none"
cx="58"
cy="109"
r="8"
id="E3 dot"
class="key E"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="69.5"
y="0.5"
width="23"
height="120"
class="key F"
id="F3" />
<circle
style="fill: none"
cx="81"
cy="109"
r="8"
id="F3 dot"
class="key F"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="92.5"
y="0.5"
width="23"
height="120"
class="key G"
id="G3" />
<circle
style="fill: none"
cx="104"
cy="109"
r="8"
id="G3 dot"
class="key G"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="115.5"
y="0.5"
width="23"
height="120"
class="key A"
id="A3" />
<circle
style="fill: none"
cx="127"
cy="109"
r="8"
id="A3 dot"
class="key A"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="138.5"
y="0.5"
width="23"
height="120"
class="key B"
id="B3" />
<circle
style="fill: none"
cx="150"
cy="109"
r="8"
id="B3 dot"
class="key B"/>
<!-- Black keys Octave 1 -->
<rect
style="fill:#000000;stroke:#000000"
x="14.83333"
y="0.5"
width="13"
height="80"
class="key Db"
id="Db3" />
<circle
style="fill: none"
cx="21.4333"
cy="73"
r="5"
id="Db3 dot"
class="key Db"/>
<rect
style="fill:#000000;stroke:#000000"
x="42.16666"
y="0.5"
width="13"
height="80"
class="key Eb"
id="Eb3" />
<circle
style="fill: none"
cx="48.766"
cy="73"
r="5"
id="Eb3 dot"
class="key Eb"/>
<rect
style="fill:#000000;stroke:#000000"
x="82.75"
y="0.5"
width="13"
height="80"
class="key Gb"
id="Gb3" />
<circle
style="fill: none"
cx="89.25"
cy="73"
r="5"
id="Gb3 dot"
class="key Gb"/>
<rect
style="fill:#000000;stroke:#000000"
x="108.75"
y="0.5"
width="13"
height="80"
class="key Ab"
id="Ab3" />
<circle
style="fill: none"
cx="115.25"
cy="73"
r="5"
id="Ab3 dot"
class="key Ab"/>
<rect
style="fill:#000000;stroke:#000000"
x="135.25"
y="0.5"
width="13"
height="80"
class="key Bb"
id="Bb3" />
<circle
style="fill: none"
cx="141.75"
cy="73"
r="5"
id="Bb3 dot"
class="key Bb"/>
<!-- White Keys Octave 2 -->
<rect
style="fill:#ffffff;stroke:#000000"
x="161.5"
y="0.5"
width="23"
height="120"
class="key C"
id="C4" />
<circle
style="fill: none"
cx="173"
cy="109"
r="8"
id="C4 dot"
class="key C"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="184.5"
y="0.5"
width="23"
height="120"
class="key D"
id="D4" />
<circle
style="fill: none"
cx="196"
cy="109"
r="8"
id="D4 dot"
class="key D"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="207.5"
y="0.5"
width="23"
height="120"
class="key E"
id="E4" />
<circle
style="fill: none"
cx="219"
cy="109"
r="8"
id="E4 dot"
class="key E"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="230.5"
y="0.5"
width="23"
height="120"
class="key F"
id="F4" />
<circle
style="fill: none"
cx="242"
cy="109"
r="8"
id="F4 dot"
class="key F"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="253.5"
y="0.5"
width="23"
height="120"
class="key G"
id="G4" />
<circle
style="fill: none"
cx="265"
cy="109"
r="8"
id="G4 dot"
class="key G"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="276.5"
y="0.5"
width="23"
height="120"
class="key A"
id="A4" />
<circle
style="fill: none"
cx="288"
cy="109"
r="8"
id="A4 dot"
class="key A"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="299.5"
y="0.5"
width="23"
height="120"
class="key B"
id="B4" />
<circle
style="fill: none"
cx="311"
cy="109"
r="8"
id="B4 dot"
class="key B"/>
<!-- Black Keys Octave 2 -->
<rect
style="fill:#000000;stroke:#000000"
x="175.83333"
y="0.5"
width="13"
height="80"
class="key Db"
id="Db4" />
<circle
style="fill: none"
cx="182.433"
cy="73"
r="5"
id="Db4 dot"
class="key Db"/>
<rect
style="fill:#000000;stroke:#000000"
x="203.16666"
y="0.5"
width="13"
height="80"
class="key Eb"
id="Eb4" />
<circle
style="fill: none"
cx="209.766"
cy="73"
r="5"
id="Eb4 dot"
class="key Eb"/>
<rect
style="fill:#000000;stroke:#000000"
x="243.75"
y="0.5"
width="13"
height="80"
class="key Gb"
id="Gb4" />
<circle
style="fill: none"
cx="250.25"
cy="73"
r="5"
id="Gb4 dot"
class="key Gb"/>
<rect
style="fill:#000000;stroke:#000000"
x="269.75"
y="0.5"
width="13"
height="80"
class="key Ab"
id="Ab4" />
<circle
style="fill: none"
cx="276.25"
cy="73"
r="5"
id="Ab4 dot"
class="key Ab"/>
<rect
style="fill:#000000;stroke:#000000"
x="296.25"
y="0.5"
width="13"
height="80"
class="key Bb"
id="Bb4" />
<circle
style="fill: none"
cx="302.75"
cy="73"
r="5"
id="Bb4 dot"
class="key Bb"/>
<!-- White Keys Octave 3 -->
<rect
style="fill:#ffffff;stroke:#000000"
x="322.5"
y="0.5"
width="23"
height="120"
class="key C"
id="C5" />
<circle
style="fill: none"
cx="334"
cy="109"
r="8"
id="C5 dot"
class="key C"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="345.5"
y="0.5"
width="23"
height="120"
class="key D"
id="D5" />
<circle
style="fill: none"
cx="357"
cy="109"
r="8"
id="D5 dot"
class="key D"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="368.5"
y="0.5"
width="23"
height="120"
class="key E"
id="E5" />
<circle
style="fill: none"
cx="380"
cy="109"
r="8"
id="E5 dot"
class="key E"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="391.5"
y="0.5"
width="23"
height="120"
class="key F"
id="F5" />
<circle
style="fill: none"
cx="403"
cy="109"
r="8"
id="F5 dot"
class="key F"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="414.5"
y="0.5"
width="23"
height="120"
class="key G"
id="G5" />
<circle
style="fill: none"
cx="426"
cy="109"
r="8"
id="G5 dot"
class="key G"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="437.5"
y="0.5"
width="23"
height="120"
class="key A"
id="A5" />
<circle
style="fill: none"
cx="449"
cy="109"
r="8"
id="A5 dot"
class="key A"/>
<rect
style="fill:#ffffff;stroke:#000000"
x="460.5"
y="0.5"
width="23"
height="120"
class="key B"
id="B5" />
<circle
style="fill: none"
cx="472"
cy="109"
r="8"
id="B5 dot"
class="key B"/>
<!-- Black Keys Octave 3 -->
<rect
style="fill:#000000;stroke:#000000"
x="336.83334"
y="0.5"
width="13"
height="80"
class="key Db"
id="Db5" />
<circle
style="fill: none"
cx="343.433"
cy="73"
r="5"
id="Db5 dot"
class="key Db"/>
<rect
style="fill:#000000;stroke:#000000"
x="364.16666"
y="0.5"
width="13"
height="80"
class="key Eb"
id="Eb5" />
<circle
style="fill: none"
cx="370.766"
cy="73"
r="5"
id="Eb5 dot"
class="key Eb"/>
<rect
style="fill:#000000;stroke:#000000"
x="404.75"
y="0.5"
width="13"
height="80"
class="key Gb"
id="Gb5" />
<circle
style="fill: none"
cx="411.25"
cy="73"
r="5"
id="Gb5 dot"
class="key Gb"/>
<rect
style="fill:#000000;stroke:#000000"
x="430.75"
y="0.5"
width="13"
height="80"
class="key Ab"
id="Ab5" />
<circle
style="fill: none"
cx="437.25"
cy="73"
r="5"
id="Ab5 dot"
class="key Ab"/>
<rect
style="fill:#000000;stroke:#000000"
x="457.25"
y="0.5"
width="13"
height="80"
class="key Bb"
id="Bb5" />
<circle
style="fill: none"
cx="463.75"
cy="73"
r="5"
id="Bb5 dot"
class="key Bb"/>
<!-- White Keys Octave 4 -->
<rect
style="fill:#ffffff;stroke:#000000"
x="483.5"
y="0.5"
width="23"
height="120"
class="key C"
id="C6" />
<circle
style="fill: none"
cx="495"
cy="109"
r="8"
id="C6 dot"
class="key C"/>
</svg>
</div>
<div id="buttons", class="buttons">
<button type="button" id="backspace">Backspace</button>
<button type="button" id="flip">Flip</button>
<button type="button" id="submit">Submit</button>
</div>
<div id="guesses">
<div class="gridCol">
<span id="1-1" class="roundedCorner"></span>
<span id="1-2" class="roundedCorner"></span>
<span id="1-3" class="roundedCorner"></span>
<span id="1-4" class="roundedCorner"></span>
<span id="2-1" class="roundedCorner"></span>
<span id="2-2" class="roundedCorner"></span>
<span id="2-3" class="roundedCorner"></span>
<span id="2-4" class="roundedCorner"></span>
<span id="3-1" class="roundedCorner"></span>
<span id="3-2" class="roundedCorner"></span>
<span id="3-3" class="roundedCorner"></span>
<span id="3-4" class="roundedCorner"></span>
<span id="4-1" class="roundedCorner"></span>
<span id="4-2" class="roundedCorner"></span>
<span id="4-3" class="roundedCorner"></span>
<span id="4-4" class="roundedCorner"></span>
<span id="5-1" class="roundedCorner"></span>
<span id="5-2" class="roundedCorner"></span>
<span id="5-3" class="roundedCorner"></span>
<span id="5-4" class="roundedCorner"></span>
</div>
</div>
<div id="solution" style="display:none">
<p id="solution-text"></p>
</div>
<div class="info">
<p>
Inspired by the <a href="https://www.chordle.synthase.cc/">original chordle</a>. Each chord starts between C#3 and C4 and extends a maximum of one octave.
</p>
</div>
</div> <!-- End of content -->
<!-- Score popup -->
<div class="score popup">
<div class="popuptext hide" id="score_popup">
<p id="results"></p>
<p id="score"></p>
</div>
</div>
<!-- How to play popup -->
<div class="info popup" id="info_wrapper">
<div class="popuptext hide" id="info_popup">
<div id="close">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29-4.3 4.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l4.29-4.3 4.29 4.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z" fill="#ffffff" class="color000 svgShape"/>
</svg>
</div>
<h1>How to play</h1>
<p>Guess the chord in 5 tries</p>
<p>The chords can be in any inversion of any major, minor, 7th or augmented key</p>
<p>Use the flip button to change between enharmonics. The chord does <em><strong>not</strong></em> need to be "spelt" correctly</p>
<p>The colour of the keys and tiles will change to show how close your guess was. For example:</p>
<div id="example">
<div class="exCol">
<span class="roundedCorner" style="background: #6aaa64;">C4</span>
<span class="roundedCorner" style="background: #c9b458;">G4</span>
<span class="roundedCorner" style="background: #44A3A3;">E5</span>
<span class="roundedCorner" style="background: #e88787;">F5</span>
</div>
</div>
<p>The note C4 is the correct note in the correct position</p>
<p>The note G4 is in the chord, but not in this position</p>
<p>There is at least one E in the chord, but not in this octave</p>
<p>There are no Fs in the chord</p>
<p>In this case the chord was Cmaj: C4 E4 G4 C5</p>
</div>
</div>
<!-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script> -->
<script src="scripts/piano.js"></script>
<script src="scripts/script.js"></script>
<script src="scripts/main.js"></script>
</body>
</html>