-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
268 lines (265 loc) · 12.3 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
<html>
<head>
<title>Wordle Clone</title>
<meta name="theme-color" content="#000">
<meta name="description" content="A clone of the popular Wordle game">
<meta name="robots" content="index, follow">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">
<meta charset="utf-8">
<link rel="stylesheet" href="index.css">
<link href="https://coteh.github.io/wordle-clone" rel="canonical">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="manifest" href="manifest.json">
<link rel="apple-touch-icon" href="icon152.png">
<script
src="https://js.sentry-cdn.com/ff7ad2773fc84f6694b683181248006a.min.js"
crossorigin="anonymous"
></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mobile-detect/1.4.5/mobile-detect.min.js"></script>
<script src="vendor/feather.min.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3QNNES1C4Y"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag("js", new Date());
gtag("config", "G-3QNNES1C4Y");
</script>
</head>
<body>
<div class="game-wrapper">
<nav id="top" class="top-menu">
<span class="space"></span>
<span class="title">
Wordle Clone
</span>
<span class="space"></span>
<div class="icon-bar">
<a class="help-link link-icon" href="#">
<i data-feather="help-circle"></i>
</a>
<a class="settings-link link-icon" href="#">
<i data-feather="settings"></i>
</a>
</div>
</nav>
<div class="game pane">
<div class="space"></div>
<div id="middle" class="wordle-rows"></div>
<div class="space"></div>
<div id="bottom" class="keyboard-view"></div>
<noscript>
<div class="pane-overlay">
<h3>Please enable JavaScript to play this game.</h3>
</div>
</noscript>
</div>
<div class="settings pane" style="display:none">
<h1>Settings</h1>
<button class="close"><i data-feather="x"></i></button>
<div class="space"></div>
<div class="settings-item-group">
<div class="settings-item setting theme-switch">
<div class="settings-item-column">
<span>Theme</span>
</div>
<div class="settings-item-column">
<span class="toggle">Dark</span>
</div>
</div>
<div class="settings-item setting keyboard-switch">
<div class="settings-item-column">
<span>On-Screen Keyboard</span>
</div>
<div class="settings-item-column">
<span class="toggle">QWERTY</span>
</div>
</div>
<div class="settings-item setting hard-mode">
<div class="settings-item-column">
<span>Hard Mode</span>
</div>
<div class="settings-item-column">
<div class="knob">
<div class="knob-inside">
</div>
</div>
</div>
</div>
<div class="settings-item setting high-contrast">
<div class="settings-item-column">
<span>High Contrast</span>
</div>
<div class="settings-item-column">
<div class="knob">
<div class="knob-inside">
</div>
</div>
</div>
</div>
</div>
<span class="space"></span>
<div class="settings-item-group">
<div class="settings-item">
<a href="https://github.com/Coteh/wordle-clone/releases" target="_blank">
<span class="version-number">v1.3.5</span>
</a>
</div>
<div class="settings-item">
<span class="day-number"></span>
</div>
</div>
<div class="space"></div>
<div class="footer">
<span>
© 2022-2024 <a class="author-link" href="https://www.jamescote.ca/" target="_blank">James Cote</a>
</span><br/>
<span class="snow-theme-credits">
Snow effect from <a href="https://embed.im/snow/" target="_blank">embed.im</a>
</span>
</div>
<div class="space"></div>
</div>
</div>
<div class="notification-area"></div>
<div class="overlay-back"></div>
<div id="landscape-overlay" style="display:none">
<div class="overlay-content">
<p>Please turn your device to play the game.</p>
<img src="images/rotate-device.png" alt="Rotate device">
</div>
</div>
<template id="dialog">
<div class="dialog">
<button class="close"><i data-feather="x"></i></button>
<div class="dialog-content">
</div>
</div>
</template>
<template id="notification">
<div class="notification">
<div class="notification-content">
<span class="notification-message"></span>
</div>
</div>
</template>
<template id="win-dialog-content">
<span>You win!</span>
<button class="button share-button">
<i data-feather="share-2"></i>
<span>Share</span>
</button>
<button class="button clipboard-button" style="display:none">
<i data-feather="clipboard"></i>
<span>Copy to Clipboard</span>
</button>
<div class="next-wordle">
Next Wordle:
<span class="countdown">20:00:00</span>
</div>
</template>
<template id="lose-dialog-content">
<span>You lose!</span>
<span>The word was <b id="word"></b></span>
<span>Try again next time!</span>
<button class="button share-button">
<i data-feather="share-2"></i>
<span>Share</span>
</button>
<button class="button clipboard-button" style="display:none">
<i data-feather="clipboard"></i>
<span>Copy to Clipboard</span>
</button>
<div class="next-wordle">
Next Wordle:
<span class="countdown">20:00:00</span>
</div>
</template>
<template id="how-to-play">
<div class="how-to-play">
<div class="how-to-play-content">
<h2>How to play</h2>
<span class="text">Guess a five-letter word in six tries.</span>
<hr/>
<div class="meaning">
<div class="sample">
<div class="box correct"><span class="box-letter">c</span></div>
<div class="box standard"><span class="box-letter">l</span></div>
<div class="box standard"><span class="box-letter">o</span></div>
<div class="box standard"><span class="box-letter">n</span></div>
<div class="box standard"><span class="box-letter">e</span></div>
</div>
<span class="text">The letter C is in the correct place.</span>
</div>
<div class="meaning">
<div class="sample">
<div class="box standard"><span class="box-letter">s</span></div>
<div class="box within"><span class="box-letter">p</span></div>
<div class="box standard"><span class="box-letter">i</span></div>
<div class="box standard"><span class="box-letter">c</span></div>
<div class="box standard"><span class="box-letter">e</span></div>
</div>
<span class="text">The letter P is in the word but in the wrong place.</span>
</div>
<div class="meaning">
<div class="sample">
<div class="box standard"><span class="box-letter">h</span></div>
<div class="box standard"><span class="box-letter">e</span></div>
<div class="box standard"><span class="box-letter">a</span></div>
<div class="box incorrect"><span class="box-letter">r</span></div>
<div class="box standard"><span class="box-letter">t</span></div>
</div>
<span class="text">The letter R is not in the word in any place.</span>
</div>
<span class="text">Good luck!</span>
</div>
</div>
</template>
<template id="error-dialog-content">
<span>
The following error occurred:
</span>
<span class="error-text"></span>
<span>
Please refresh the page and try again later.<br/>
If this persists, please reach out to me on <a href="https://github.com/Coteh/wordle-clone/issues/new?assignees=&labels=&template=bug_report.md" target="_blank">GitHub</a> or <a href="mailto:[email protected]" target="_blank">email</a> with more information and I'll take a look.
</span>
</template>
<script src="src/consts.js"></script>
<script src="src/render.js"></script>
<script src="src/datetime.js"></script>
<script src="src/game.js"></script>
<script src="src/storage/index.js"></script>
<script src="src/storage/browser.js"></script>
<script charset="UTF-8" src="src/share/index.js"></script>
<script src="src/share/browser.js"></script>
<script src="src/preferences.js"></script>
<script src="src/index.js"></script>
<script src="vendor/snow.js" defer></script>
<script>
if (typeof feather !== "undefined") {
feather.replace();
} else {
document.querySelector("[data-feather='help-circle']").innerText = "?";
document.querySelector("[data-feather='settings']").innerText = "⚙";
document.querySelector(".settings [data-feather='x']").innerText = "X";
}
if (typeof Sentry !== "undefined") {
Sentry.onLoad(() => {
Sentry.init({
release: "[email protected]",
beforeSend(event) {
if (event.request.url.includes("localhost") || event.request.url.includes("127.0.0.1")) {
return null;
}
return event;
}
});
});
}
gtag("event", "game_open", {
"version": "1.3.5",
});
</script>
</body>
</html>