-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
278 lines (263 loc) · 19.2 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- meta -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<meta name="theme-color" content="#2196F3">
<meta name="author" content="Tim Nelson">
<meta name="description" content="Lingo Bingo | Interactive Language Learning Game | by: Tim Nelson">
<meta name="url" content="https://tim.2bn.dev/lingo-bingo">
<!-- links -->
<link rel='icon' sizes="192x192" id="favicon" href="assets/svg/en.svg" type="image/x-icon">
<link rel="stylesheet" href="assets/css/style-sm.css" type="text/css">
<link rel="stylesheet" href="assets/css/style-md.css" type="text/css">
<link rel="stylesheet" href="assets/css/style-lg.css" type="text/css">
<link rel="stylesheet" href="assets/css/style-xl.css" type="text/css">
<title>Lingo Bingo</title>
</head>
<body>
<nav>
<!-- modal: game settings -->
<span id="btn-settings" class="emoji" role="img" aria-label="gear">⚙
<span class="tooltip">Game<br>Settings</span>
</span>
<!-- audio level -->
<span id="btn-audio" class="emoji" role="img" aria-label="speaker high volume">🔊</span>
<!-- modal: game information -->
<span id="btn-info" class="emoji hide" role="img" aria-label="red question mark">❓
<span class="tooltip">About<br>Game</span>
</span>
<!-- modal: score board -->
<span id="btn-scoreboard" class="emoji" role="img" aria-label="trophy">🏆
<span class="tooltip">Score<br>Board</span>
</span>
</nav>
<main>
<section id="user">
<!-- grid: User -->
<ul id="user-board" class="board">
<li id="user-b1" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-i1" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-n1" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-g1" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-o1" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-b2" class="card"><div class="inner"><div class="front">L</div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-i2" class="card"><div class="inner"><div class="front">I</div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-n2" class="card"><div class="inner"><div class="front">N</div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-g2" class="card"><div class="inner"><div class="front">G</div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-o2" class="card"><div class="inner"><div class="front">O</div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-b3" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-i3" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-n3" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-g3" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-o3" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-b4" class="card"><div class="inner"><div class="front">B</div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-i4" class="card"><div class="inner"><div class="front">I</div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-n4" class="card"><div class="inner"><div class="front">N</div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-g4" class="card"><div class="inner"><div class="front">G</div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-o4" class="card"><div class="inner"><div class="front">O</div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-b5" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-i5" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-n5" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-g5" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="user-o5" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
</ul>
</section>
<section id="stats">
<!-- button: new game -->
<button id="btn-new" class="button"><span class="bold">NEW GAME</span></button>
<!-- button: lingo bingo -->
<button id="btn-lingobingo" class="button disabled"><span class="bold">LINGO BINGO</span></button>
<!-- timer -->
<div id="timer"><p><small>TIMER</small><br><span id="timer-span" class="bold">-</span></p></div>
<!-- score -->
<div id="score"><p><small>SCORE</small><br><span id="score-span" class="bold">-</span></p></div>
<!-- language flag -->
<div id="flag"><p><img src="assets/svg/en.svg" alt="en flag" class="flag"><br class="ignore"><span id="game-span" class="bold">-</span></p></div>
</section>
<!-- current word -->
<aside id="word"><p id="word-span" class="bold">Click 'New Game'</p></aside>
<section id="ai">
<!-- grid: Goal -->
<ul id="goal-board" class="board">
<li id="goal-b1" class="card"></li>
<li id="goal-i1" class="card"></li>
<li id="goal-n1" class="card"></li>
<li id="goal-g1" class="card"></li>
<li id="goal-o1" class="card"></li>
<li id="goal-b2" class="card"></li>
<li id="goal-i2" class="card"></li>
<li id="goal-n2" class="card"></li>
<li id="goal-g2" class="card"></li>
<li id="goal-o2" class="card"></li>
<li id="goal-b3" class="card"></li>
<li id="goal-i3" class="card"></li>
<li id="goal-n3" class="card"></li>
<li id="goal-g3" class="card"></li>
<li id="goal-o3" class="card"></li>
<li id="goal-b4" class="card"></li>
<li id="goal-i4" class="card"></li>
<li id="goal-n4" class="card"></li>
<li id="goal-g4" class="card"></li>
<li id="goal-o4" class="card"></li>
<li id="goal-b5" class="card"></li>
<li id="goal-i5" class="card"></li>
<li id="goal-n5" class="card"></li>
<li id="goal-g5" class="card"></li>
<li id="goal-o5" class="card"></li>
</ul>
<!-- grid: AI -->
<ul id="ai-board" class="board">
<li id="ai-b1" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-i1" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-n1" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-g1" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-o1" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-b2" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-i2" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-n2" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-g2" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-o2" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-b3" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-i3" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-n3" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-g3" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-o3" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-b4" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-i4" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-n4" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-g4" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-o4" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-b5" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-i5" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-n5" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-g5" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
<li id="ai-o5" class="card"><div class="inner"><div class="front"></div><div class="back"><figure class="emoji"></figure></div></div></li>
</ul>
</section>
</main>
<!-- modal: game settings -->
<aside id="modal-settings" class="modal">
<div class="modal-container">
<div class="modal-header">SETTINGS</div>
<div class="modal-body">
<table>
<tbody>
<tr>
<td>
<label for="language-list"><small>LANGUAGE</small></label><br>
<select name="language-list" id="language-list">
<option value="ar">🇸🇦 Arabic/العربية</option>
<option value="zh">🇨🇳 Chinese-Mandarin/中国大陆</option>
<option value="dk">🇩🇰 Danish/Dansk</option>
<option value="nl">🇳🇱 Dutch/Nederlands</option>
<option value="en" selected>🇬🇧 English</option>
<option value="ph">🇵🇭 Filipino</option>
<option value="fi">🇫🇮 Finnish/Suomalainen</option>
<option value="fr">🇫🇷 French/Français</option>
<option value="de">🇩🇪 German/Deutsch</option>
<option value="gr">🇬🇷 Greek/ελληνικά</option>
<option value="il">🇮🇱 Hebrew/עִברִית</option>
<option value="hi">🇮🇳 Hindi/हिन्दी</option>
<option value="hu">🇭🇺 Hungarian/Magyar</option>
<option value="is">🇮🇸 Icelandic/Íslenska</option>
<option value="id">🇮🇩 Indonesian/bahasa-Indonesia</option>
<option value="ie">🇮🇪 Irish/Gaeilge</option>
<option value="it">🇮🇹 Italian/Italiano</option>
<option value="ja">🇯🇵 Japanese/日本語</option>
<option value="ko">🇰🇷 Korean/한국의</option>
<option value="lv">🇱🇻 Latvian/Latviski</option>
<option value="lt">🇱🇹 Lithuanian/Lietuvių</option>
<option value="my">🇲🇾 Malay/Melayu</option>
<option value="no">🇳🇴 Norwegian/Norsk</option>
<option value="pl">🇵🇱 Polish/Polski</option>
<option value="pt">🇵🇹 Portuguese/Português</option>
<option value="ro">🇷🇴 Romanian/Română</option>
<option value="ru">🇷🇺 Russian/Русский</option>
<option value="rs">🇷🇸 Serbian/Српски</option>
<option value="sk">🇸🇰 Slovak/Slovenský</option>
<option value="es">🇪🇸 Spanish/Español</option>
<option value="sv">🇸🇪 Swedish/Svenska</option>
<option value="th">🇹🇭 Thai/แบบไทย</option>
<option value="tr">🇹🇷 Turkish/Türkçe</option>
<option value="ua">🇺🇦 Ukranian/українська</option>
<option value="vi">🇻🇳 Vietnamese/Tiếng-Việt</option>
</select>
</td>
</tr>
<tr>
<td>
<label for="game-list"><small>GAME</small></label><br>
<select name="game-list" id="game-list">
<option value="Random" selected>Random</option>
<option value="Blackout">Blackout</option>
<option value="Bullseye">Bullseye</option>
<option value="Columns">Columns</option>
<option value="Corners">Corners</option>
<option value="Cross">Cross</option>
<option value="Diagonals">Diagonals</option>
<option value="Diamond">Diamond</option>
<option value="Heart">Heart</option>
<option value="Inside">Inside</option>
<option value="Outside">Outside</option>
<option value="Rows">Rows</option>
<option value="Smiley">Smiley</option>
<option value="X">X</option>
</select>
</td>
</tr>
<tr><td><hr></td></tr>
<tr><td><button id="btn-start">Start Game</button></td></tr>
</tbody>
</table>
</div>
<div class="modal-close">CLOSE</div>
</div>
</aside>
<!-- modal: scoreboard -->
<aside id="modal-scoreboard" class="modal">
<div class="modal-container">
<div class="modal-header">SCORE BOARD</div>
<div id="flag-selection">
<!-- inserts clickable flag for each language to easier scrolling -->
</div>
<div class="modal-body">
<table>
<thead>
<tr>
<th>Game</th>
<th>Won</th>
<th>Lost</th>
<th>Best</th>
<th>Play</th>
</tr>
</thead>
<tbody id="tbody">
<!-- inserts row for each language/game using localStorage -->
</tbody>
</table>
</div>
<div class="modal-close">CLOSE</div>
</div>
</aside>
<!-- modal: No SpeechSynthesis Available -->
<aside id="modal-speech" class="modal">
<div class="modal-container">
<div class="modal-header">WARNING</div>
<div class="modal-body speech-synth">
Unfortunately, your browser does not support Speech Synthesis.
</div>
<div class="modal-close">CLOSE</div>
</div>
</aside>
<!-- scripts -->
<script src="assets/js/browser.js"></script>
<script src="assets/js/speech.js"></script>
<script src="assets/data/library.js"></script>
<script src="assets/js/confetti.js"></script>
<script src="assets/js/script.js"></script>
<script src="assets/data/fetch-csv.js"></script>
</body>
</html>