-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
463 lines (458 loc) · 17.5 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
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
<!DOCTYPE html>
<html>
<head>
<title>ERG Wordle</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="canonical" href="https://wordle.bennynguyen.dev/" />
<link rel="stylesheet" type="text/css" href="styles/index.css" />
<link
rel="stylesheet"
type="text/css"
href="styles/light.css"
id="themeStyle"
/>
<script src="scripts/index.js"></script>
<script src="scripts/responsive.js"></script>
<script src="scripts/console_noti.js"></script>
<script src="scripts/theme.js"></script>
<link rel="icon" href="lib/icon.png" />
<link rel="apple-touch-icon" href="/lib/ios-icon.png" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="theme-color" content="#ffffff" />
<meta
name="description"
content="Challenge your word-solving skills and see if you can crack the 5-letter word in just 6 tries. Test your vocabulary and logic to unravel the hidden word."
/>
<meta
name="keywords"
content="wordle, wordle game, wordle online, wordle solver, wordle generator, wordle words, wordle tips, wordle strategies, wordle cheats, play wordle, wordle multiplayer, wordle challenge, wordle high score, wordle daily, wordle vocabulary, wordle practice, wordle fun, wordle competition, wordle word list, wordle word suggestions, wordle guessing, wordle clues, wordle hints, wordle algorithm, wordle patterns, wordle mastery, wordle addiction, wordle enthusiasts, wordle community, wordle for beginners, wordle pro, wordle experts, wordle experts, wordle fanatics, wordle champions, wordle wordplay, wordle linguistic skills, wordle brain teaser, wordle mind game."
/>
<meta property="og:title" content="ERG Wordle" />
<meta
property="og:description"
content="Challenge your word-solving skills and see if you can crack the 5-letter word in just 6 tries. Test your vocabulary and logic to unravel the hidden word."
/>
<meta
property="og:image"
content="https://wordle.bennynguyen.dev/lib/wordle-showcase.png"
/>
<meta property="og:url" content="https://wordle.bennynguyen.dev" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@pdteggman" />
<meta name="twitter:title" content="ERG Wordle" />
<meta
name="twitter:description"
content="Challenge your word-solving skills and see if you can crack the 5-letter word in just 6 tries. Test your vocabulary and logic to unravel the hidden word."
/>
<meta
name="twitter:image"
content="https://wordle.bennynguyen.dev/lib/wordle-showcase.png"
/>
</head>
<body>
<div id="main">
<div class="mainpage">
<header>
<img
src="lib/ERG-brand-black.png"
alt="A game of Egg Recreates Game"
/>
<h1>Wordle</h1>
</header>
<table id="mainLayout">
<tr>
<h2 id="fault" class="hide" style="color: red">
Not in word list!
</h2>
</tr>
<tr>
<td class="othercolumn">
<div id="leftCol">
<div class="toggle">
<p>Toggle theme</p>
<button onclick="toggleTheme(); unfocus()">
<img src="lib/sun.svg" id="themeIcon" />
</button>
<br />
</div>
<div id="myinfo">
<h2>Find me at</h2>
<div class="social">
<a
class="oneline"
href="https://github.com/pdt1806"
target="_blank"
onclick="unfocus()"
>
<img src="lib/social/github.svg" alt="GitHub" />
<p>pdt1806</p>
</a>
<a
class="oneline"
href="https://instagram.com/benny_ng08"
target="_blank"
onclick="unfocus()"
>
<img src="lib/social/instagram.svg" alt="Instagram" />
<p>benny_ng08</p>
</a>
<a
class="oneline"
href="https://facebook.com/pdteggman"
target="_blank"
onclick="unfocus()"
>
<img src="lib/social/facebook.svg" alt="Facebook" />
<p>Phúc Đầu Trứng</p>
</a>
<a
class="oneline"
href="https://x.com/pdteggman"
target="_blank"
onclick="unfocus()"
>
<img src="lib/social/x.svg" alt="X" />
<p>pdteggman</p>
</a>
<a
class="oneline"
href="https://discord.com/users/458550515614351360"
target="_blank"
onclick="unfocus()"
>
<img src="lib/social/discord.svg" alt="Discord" />
<p>pdteggman</p>
</a>
</div>
</div>
<div id="donation">
<a
href="https://github.com/sponsors/pdt1806"
target="_blank"
onclick="unfocus()"
><img
src="/lib/github-sponsors.png"
alt="GitHub Sponsors"
height="50px"
style="margin-bottom: 10px"
/></a>
<a
href="https://www.buymeacoffee.com/pdteggman"
target="_blank"
onclick="unfocus()"
><img
src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=☕&slug=pdteggman&button_colour=FFDD00&font_colour=000000&font_family=Inter&outline_colour=000000&coffee_colour=ffffff"
alt="Buy me a coffee"
/></a>
<p>since this website is ad-free :33</p>
</div>
<a
class="oneline"
href="https://bennynguyen.dev/"
target="_blank"
onclick="unfocus()"
><p>More about me and my other works</p>
<img src="lib/redirect.png" alt="Redirect" class="redirect"
/></a>
</div>
</td>
<td id="maingame">
<table id="game">
<tr id="row0">
<td>
<div id="box0" class="none box"><p></p></div>
</td>
<td>
<div id="box1" class="none box"><p></p></div>
</td>
<td>
<div id="box2" class="none box"><p></p></div>
</td>
<td>
<div id="box3" class="none box"><p></p></div>
</td>
<td>
<div id="box4" class="none box"><p></p></div>
</td>
</tr>
<tr id="row1">
<td>
<div id="box5" class="none box"><p></p></div>
</td>
<td>
<div id="box6" class="none box"><p></p></div>
</td>
<td>
<div id="box7" class="none box"><p></p></div>
</td>
<td>
<div id="box8" class="none box"><p></p></div>
</td>
<td>
<div id="box9" class="none box"><p></p></div>
</td>
</tr>
<tr id="row2">
<td>
<div id="box10" class="none box"><p></p></div>
</td>
<td>
<div id="box11" class="none box"><p></p></div>
</td>
<td>
<div id="box12" class="none box"><p></p></div>
</td>
<td>
<div id="box13" class="none box"><p></p></div>
</td>
<td>
<div id="box14" class="none box"><p></p></div>
</td>
</tr>
<tr id="row3">
<td>
<div id="box15" class="none box"><p></p></div>
</td>
<td>
<div id="box16" class="none box"><p></p></div>
</td>
<td>
<div id="box17" class="none box"><p></p></div>
</td>
<td>
<div id="box18" class="none box"><p></p></div>
</td>
<td>
<div id="box19" class="none box"><p></p></div>
</td>
</tr>
<tr id="row4">
<td>
<div id="box20" class="none box"><p></p></div>
</td>
<td>
<div id="box21" class="none box"><p></p></div>
</td>
<td>
<div id="box22" class="none box"><p></p></div>
</td>
<td>
<div id="box23" class="none box"><p></p></div>
</td>
<td>
<div id="box24" class="none box"><p></p></div>
</td>
</tr>
<tr id="row5">
<td>
<div id="box25" class="none box"><p></p></div>
</td>
<td>
<div id="box26" class="none box"><p></p></div>
</td>
<td>
<div id="box27" class="none box"><p></p></div>
</td>
<td>
<div id="box28" class="none box"><p></p></div>
</td>
<td>
<div id="box29" class="none box"><p></p></div>
</td>
</tr>
</table>
<table id="keyboard">
<tr>
<td>
<div id="keyQ" class="light-grey key" onclick="letter('Q')">
<p>Q</p>
</div>
</td>
<td>
<div id="keyW" class="light-grey key" onclick="letter('W')">
<p>W</p>
</div>
</td>
<td>
<div id="keyE" class="light-grey key" onclick="letter('E')">
<p>E</p>
</div>
</td>
<td>
<div id="keyR" class="light-grey key" onclick="letter('R')">
<p>R</p>
</div>
</td>
<td>
<div id="keyT" class="light-grey key" onclick="letter('T')">
<p>T</p>
</div>
</td>
<td>
<div id="keyY" class="light-grey key" onclick="letter('Y')">
<p>Y</p>
</div>
</td>
<td>
<div id="keyU" class="light-grey key" onclick="letter('U')">
<p>U</p>
</div>
</td>
<td>
<div id="keyI" class="light-grey key" onclick="letter('I')">
<p>I</p>
</div>
</td>
<td>
<div id="keyO" class="light-grey key" onclick="letter('O')">
<p>O</p>
</div>
</td>
<td>
<div id="keyP" class="light-grey key" onclick="letter('P')">
<p>P</p>
</div>
</td>
</tr>
<tr>
<td>
<div id="keyA" class="light-grey key" onclick="letter('A')">
<p>A</p>
</div>
</td>
<td>
<div id="keyS" class="light-grey key" onclick="letter('S')">
<p>S</p>
</div>
</td>
<td>
<div id="keyD" class="light-grey key" onclick="letter('D')">
<p>D</p>
</div>
</td>
<td>
<div id="keyF" class="light-grey key" onclick="letter('F')">
<p>F</p>
</div>
</td>
<td>
<div id="keyG" class="light-grey key" onclick="letter('G')">
<p>G</p>
</div>
</td>
<td>
<div id="keyH" class="light-grey key" onclick="letter('H')">
<p>H</p>
</div>
</td>
<td>
<div id="keyJ" class="light-grey key" onclick="letter('J')">
<p>J</p>
</div>
</td>
<td>
<div id="keyK" class="light-grey key" onclick="letter('K')">
<p>K</p>
</div>
</td>
<td>
<div id="keyL" class="light-grey key" onclick="letter('L')">
<p>L</p>
</div>
</td>
</tr>
<tr>
<td>
<div
id="key"
class="light-grey keyBig"
onclick="backspace()"
>
<img src="lib/keyboard/backspace.png" />
</div>
</td>
<td>
<div id="keyZ" class="light-grey key" onclick="letter('Z')">
<p>Z</p>
</div>
</td>
<td>
<div id="keyX" class="light-grey key" onclick="letter('X')">
<p>X</p>
</div>
</td>
<td>
<div id="keyC" class="light-grey key" onclick="letter('C')">
<p>C</p>
</div>
</td>
<td>
<div id="keyV" class="light-grey key" onclick="letter('V')">
<p>V</p>
</div>
</td>
<td>
<div id="keyB" class="light-grey key" onclick="letter('B')">
<p>B</p>
</div>
</td>
<td>
<div id="keyN" class="light-grey key" onclick="letter('N')">
<p>N</p>
</div>
</td>
<td>
<div id="keyM" class="light-grey key" onclick="letter('M')">
<p>M</p>
</div>
</td>
<td>
<div
id="keyEnter"
class="light-grey keyBig"
onclick="enter()"
>
<img src="lib/keyboard/enter.png" />
</div>
</td>
</tr>
</table>
<button onclick="reset()" id="restart">Play again</button>
</td>
<td class="othercolumn">
<h2>What makes ERG Wordle different from the original?</h2>
<ul>
<li>
The word is picked randomly, and is different everytime you
play.
</li>
<li>
There are unlimited sessions, you can play as many times as
you want.
</li>
<li>
It counts the time you take to guess the word, and shows it
when you win.
</li>
<li>
This game is light-weight (with no ads), so it loads really
fast.
</li>
</ul>
<br />
</td>
</tr>
</table>
</div>
<div id="black-overlay" class="hide" onclick="dispose()"></div>
</div>
<div id="result" class="hide">
<h1></h1>
<p id="resultTop"></p>
<p id="time"></p>
<p id="resultBottom"></p>
<button onclick="reset()">Play again</button>
</div>
</body>
</html>