-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
153 lines (150 loc) · 7.21 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
<!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, minimum-scale=1.0">
<title>Hear Here</title>
<link rel="stylesheet" href="style.css">
<script src="fetchFromFreeSound.js"></script>
</head>
<body>
<div class="app">
<header class="header row space-around">
<button class="btn btn--header" type="button" name="instructions" id="instructionsButton"><i name="instructions" class="fa-solid fa-info"></i></button>
<img class="logo" src="Assets/Default Assets (to be deleted)/HearHere.png" alt="Hear Here logo">
<button class="btn btn--header" type="button" name="stats" id="statsButton"><i name="stats" class="fa-solid fa-chart-simple"></i></button>
</header>
<main>
<div class="hidden modal--container" id="error">
<div class="modal--content">
<button class="btn btn--x" name="error">X</button>
<h2 class="info">Error</h2>
<p class="info">Something went wrong. Try reloading the page.</p>
</div>
</div>
<div class="hidden modal--container" id="instructions">
<div class="modal--content">
<button class="btn btn--x" name="instructions">X</button>
<h2 class="info">How to play</h2>
<p class="info">Welcome to HearHere, the game that lets you travel the world through your ears! Can you guess which country a mysterious sound recording comes from? Let's find out!</p>
<ol>
<li>You're presented with two flags and a mysterious field recording.</li>
<li>Make a guess right away for a chance to win 5 points. Or sacrifice a point to listen to another recording.</li>
<li>You can listen to up to 5 recordings before making a guess.</li>
</ol>
</div>
</div>
<div class="hidden modal--container" id="stats">
<div class="modal--content">
<button class="btn btn--x" name="stats">X</button>
<h2 class="info">Stats</h2>
<p class="info">Here's how you're faring on your auditory journey of the world.</p>
<ul class="stack-sm">
<li id="gamesPlayed" class="">Games played:</li>
<li class="gameStats" id="5stars">
<div class="stats--ListItem">
5 <i class="fa-solid fa-star"></i>
<div class="bar--container">
<div class="bar">
</div>
</div>
</div>
</li>
<li class="gameStats" id="4stars">
<div class="stats--ListItem">
4 <i class="fa-solid fa-star"></i>
<div class="bar--container">
<div class="bar">
</div>
</div>
</div>
</li>
<li class="gameStats" id="3stars">
<div class="stats--ListItem">
3 <i class="fa-solid fa-star"></i>
<div class="bar--container">
<div class="bar">
</div>
</div>
</div>
</li>
<li class="gameStats" id="2stars">
<div class="stats--ListItem">
2 <i class="fa-solid fa-star"></i>
<div class="bar--container">
<div class="bar">
</div>
</div>
</div>
</li>
<li class="gameStats" id="1stars">
<div class="stats--ListItem">
1 <i class="fa-solid fa-star"></i>
<div class="bar--container">
<div class="bar">
</div>
</div>
</div>
</li>
<li class="gameStats" id="0stars">
<div class="stats--ListItem">
0<i class="fa-regular fa-star"></i>
<div class="bar--container">
<div class="bar bar__fail">
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
<h2 class="h2listen centre">Listen to the sounds:</h2>
<div class="pop-up-window absolute on-top centre-absolute centre-vertical hidden" id="loadingScreen">
<div class="waves-container">
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
</div>
</div>
<div id="figureAudio" class="figure--Audio row flex-down justify-center">
<div id="audioContainer" class="audio-container centre row flex-down align-center stack-sm"></div>
<p id="noAudio" class="hide centre">No more audio. Make a guess!</p>
</div>
<container class="container--pass centre stack-md">
<button id="btnPass" class="centre centre-sm btn btn--pass">Next sound</button>
<div id="stars" class="full-width row justify-center stars"><i class="fa-solid fa-star"></i><i class="fa-solid fa-star"></i><i class="fa-solid fa-star"></i><i class="fa-solid fa-star"></i><i class="fa-solid fa-star"></i></div>
</container>
<container class="container--flags row space-around align-center">
<figure class="column">
<a><img class="flag" id="" src="" alt="Flag of X"></a>
<figcaption id="countryNameOne">Afghanistan</figcaption>
</figure>
<figure class="column">
<a><img class="flag" id="" src="" alt="Flag of Y"></a>
<figcaption id="countryNameTwo">Albania</figcaption>
</figure>
</container>
<p class="centre no-top-margin"> Press flags to guess country!</p>
<div class="hidden pop-up-window absolute on-top centre-absolute centre-vertical" id="correctAnswerPopup">
<p>Well done! You chose the correct country.</p>
<button class="btn btn--newround new-round" type="button">New round</button>
</div>
<div class="hidden pop-up-window absolute on-top centre-absolute centre-vertical" id="incorrectAnswerPopup">
<p>You chose the wrong country :(</p>
<button class="btn btn--newround new-round" type="button">New round</button>
</div>
</main>
</div>
<script type="module" src="fetchFromFreeSound.js" async defer></script>
<script type="module" src="secret.js" async defer></script>
<script type="module" src="curatedCountries.js" async defer></script>
<script src="https://kit.fontawesome.com/de362ee74f.js" crossorigin="anonymous"></script>
</body>