-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
82 lines (78 loc) · 3.35 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Equalizer Game</title>
<link rel="stylesheet" href="bootstrap.min.css" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="navbar navbar-expand-sm navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="/">Equalizer Game</a>
</div>
</nav>
<div class="container">
<div class="audio-source">
Audio: <strong id="uiAudioSourceTitle" class="ui-audio-title"></strong>
</div>
<div>
<audio id="equalizedAudioPlayer" controls loop>
<p>Your browser doesn't support HTML5 audio, the game won't work =(</p>
</audio>
<button class="btn btn-outline-info btn-sm d-block" onclick="handleClickButtonChangeAudio()">
Change Audio
</button>
<div id="audioSelectionContainer" class="d-none">
<p>
Upload an audio file:
<input id="audioFileSelector" type="file" accept="audio/*" />
</p>
<p>
Or choose from the library:
<div id="uiLibraryContainer"></div>
</p>
<button class="btn btn-secondary" onclick="audioSelectionContainer.classList.add('d-none')">Cancel</button>
</div>
</div>
<button
class="btn btn-primary"
id="buttonListenOriginal"
onclick="handleClickListenOriginal()"
>
Listen to the original
</button>
<button
class="btn btn-success"
id="buttonListenEq"
onclick="handleClickListenEQVersion()"
>
Listen to the EQ-version
</button>
<div class="quiz-options">
<p id="quizUIMessage">Can you tell which equalizer is being applied?</p>
<div style="display: inline-block">
<div class="option-message"></div>
<object class="svg-equalizer" data="equalizer.svg" type="image/svg+xml"></object>
</div>
<div style="display: inline-block">
<div class="option-message"></div>
<object class="svg-equalizer" data="equalizer.svg" type="image/svg+xml"></object>
</div>
<div style="display: inline-block">
<div class="option-message"></div>
<object class="svg-equalizer" data="equalizer.svg" type="image/svg+xml"></object>
</div>
<div style="display: inline-block">
<div class="option-message"></div>
<object class="svg-equalizer" data="equalizer.svg" type="image/svg+xml"></object>
</div>
</div>
<button id="buttonNewGame" class="btn btn-success btn-lg d-none" onclick="newGame()">
Give me another</button>
<div id="uiScoreTracker"></div>
</div>
<script src="main.js"></script>
</body>
</html>