-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
303 lines (302 loc) · 19 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="data/styles-main.css" />
<!-- <link rel="stylesheet" href="styles.css" /> -->
<link rel="icon" href="https://em-content.zobj.net/thumbs/320/twitter/322/castle_1f3f0.png">
<title>Várdle</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="mapTemplate" type="image/svg+xml"></div>
<div id="page" class="flex w-full h-full justify-center items-center bg-white">
<div id="mainContent" class="flex w-full h-full max-w-lg relative">
<header id="mainHeader" class="border-b-2 px-3 border-gray-200 justify-center items-center flex flex-shrink w-full">
<a id="about-button" class="mr-3 text-xl" lnt="about">
<span class="undefined">
<img alt="❓" src="https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/2753.png" class="generalImg">
</span>
</a>
<h1 class="text-4xl font-bold uppercase tracking-wide text-center my-1 flex-auto">
<span class="inline-flex flex-row justify-center items-center">
<span class="text-3xl mr-2 undefined">
<img alt="♜" src="https://em-content.zobj.net/thumbs/320/twitter/322/castle_1f3f0.png" class="inline-block generalImg"><!--<img alt="🔍" src="https://em-content.zobj.net/thumbs/240/google/350/magnifying-glass-tilted-left_1f50d.png" class="inline-block">-->
</span>Várd<span class="text-green-600">l</span>e</span>
</h1>
<a id="stats-button" class="ml-3 text-xl" lnt="stats">
<span class="undefined">
<img alt="📈" src="https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/1f4c8.png" class="generalImg">
</span>
</a>
<a id="settings-button" class="ml-3 text-xl" lnt="settings">
<span class="undefined">
<img alt="⚙️" src="https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/2699.png" class="generalImg">
</span>
</a>
</header>
<div id="midContent" class="flex">
<div id="mainImage" class="flex justify-center items-center" style="height: 210px"></div>
<div id="coatofarms" class="flex justify-center items-center"></div>
<div id="game" class="block w-full min-w-full relative flex-col max-w-lg">
<div id="guesses" class="grid grid-cols-7 gap-1 text-center lines"></div>
<div id="guessInput"></div>
</div>
</div>
<footer class="flex justify-center w-full items-center flex-col">
<div class="flex justify-center flex-row items-center w-full promo-text pb-3" style="line-height: 1em;flex-flow: wrap;">
<span class="flex items-center justify-center pr-1">
<img alt="❤️" src="https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/2764.png" class="generalImg">
</span>
<span class="font-bold">VÁRD<span class="text-green-600">L</span>E</span>? -
<a class="underline pl-1 p-1" href="https://worldle.teuteuf.fr" target="_blank" rel="noopener noreferrer"><div ln="try" class="w-max"></div></a>
</div>
</footer>
</div>
</div>
</body>
<template id="loaded-coatofarms"></template>
<template id="tmpl-county-suggestions">
<ul role="listbox"></ul>
</template>
<template id="tmpl-county-suggestion-piece">
<li role="option"></li>
</template>
<template id="tmpl-guess-analisys">
<div class="flex items-center justify-center border-2 h-8 col-span-3 transition-all rounded">
<p class="text-ellipsis uppercase"></p>
</div>
<div class="flex items-center justify-center border-2 h-8 col-span-2 transition-all rounded"></div>
<div class="flex items-center justify-center border-2 h-8 col-span-1 transition-all rounded">
<span class="undefined"><img alt="" src="" class="generalImg"></span>
</div>
<div class="flex items-center justify-center border-2 h-8 col-span-1 transition-all animate-pop rounded"></div>
</template>
<template id="tmpl-guessinput">
<div class="my-2 flex flex-col justify-center">
<div class="flex flex-col">
<div role="combobox" aria-haspopup="listbox" aria-owns="react-auto-1" aria-expanded="false" class="border-2 rounded flex-auto relative">
<input id="input1" type="text" autocomplete="off" aria-autocomplete="list" aria-controls="react-auto-1" class="w-full p-1" placeholder="" lnph="ph1" value="">
<div id="react-auto-1" role="listbox" class="undefined rounded absolute bottom-full w-full bg-gray-300 mb-1 divide-x-2 max-h-52 overflow-auto"></div>
</div>
<button class="rounded font-bold p-1 flex items-center justify-center border-2 uppercase my-0.5" onclick="handleGuess()">
<span class="flex items-center justify-center undefined">
<img alt="♜" src="https://em-content.zobj.net/thumbs/320/twitter/322/castle_1f3f0.png" class="inline-block generalImg">
</span>
<span ln="g" class="ml-1"></span>
</button>
</div>
</div>
</template>
<template id="tmpl-giveup">
<button id="giveup-button" class="font-bold border-2 p-1 rounded mt-4 uppercase my-2" type="button" style="align-self: center;" onclick="finishedRounds[Round] = 'lost';updateRounds(Round, Round);endOfGuessing(false)">
<span ln="giveup"><img alt="🤷♂️" src="https://em-content.zobj.net/thumbs/240/twitter/351/person-shrugging_1f937.png" class="inline-block generalImg"></span>
</button>
</template>
<template id="tmpl-finish">
<div class="my-2" id="finished">
<p class="justify-center text-center mt-4" id="finishStatictic"></p>
<div class="flex justify-center border-gray-200 border-2 rounded p-1 mb-4 mt-4" id="wonImg" style="display: grid;grid-auto-flow: column;grid-template-columns: minmax(0, .5fr) minmax(0, 1fr) minmax(0, .5fr);">
<span id="prev-round" class="flex items-center">
<svg height="70" width="70">
<rect class="fill-green-600" width="70" height="70" ry="5"></rect>
<path style="fill:#eee" d="M 61.989834,34.233908 C 61.989187,32.826497 60.848417,31.685727 59.441006,31.68508 H 18.394131 L 30.935147,16.049924 C 31.764149,14.911385 31.513179,13.316371 30.3746,12.487423 29.236061,11.658421 27.641048,11.90939 26.8121,13.047969 L 8.3726479,35.198189 26.8121,57.348414 c 0.828947,1.13858 2.42396,1.38955 3.5625,0.56055 1.138579,-0.82895 1.389549,-2.42396 0.560547,-3.5625 L 18.394131,38.182085 h 41.046875 c 1.407411,-6.47e-4 2.548181,-1.141417 2.548828,-2.548828 0.03868,-3.239547 0.05129,1.56053 0,-1.399349 z"></path>
</svg>
</span>
<span id="finish-text" class="uppercase justify-center font-bold flex items-center" style="overflow: hidden;"><img alt="👑" src="https://www.szentkoronaorszaga.hu/hun/kepek/newspost_images/korona_httnelkul.png" class="inline-block" width="65em"></span>
<span id="next-round" class="flex items-center" style="flex-direction: column;align-items: end;">
<svg height="70" width="70">
<rect class="fill-green-600" width="70" height="70" ry="5"></rect>
<path style="fill:#eee" d="m 8.4065508,34.233908 c 6.47e-4,-1.407411 1.141417,-2.548181 2.5488282,-2.548828 H 52.002254 L 39.461238,16.049924 c -0.829002,-1.138539 -0.578032,-2.733553 0.560547,-3.562501 1.138539,-0.829002 2.733552,-0.578033 3.5625,0.560546 l 18.439452,22.15022 -18.439452,22.150225 c -0.828947,1.13858 -2.42396,1.38955 -3.5625,0.56055 -1.138579,-0.82895 -1.389549,-2.42396 -0.560547,-3.5625 L 52.002254,38.182085 H 10.955379 c -1.4074112,-6.47e-4 -2.5481812,-1.141417 -2.5488282,-2.548828 -0.03868,-3.239547 -0.05129,1.56053 0,-1.399349 z"></path>
</svg>
</span>
</div>
<div class="flex flex-wrap gap-2 justify-center">
<a id="showMap" maparea-id="mapArea" class="underline text-center">
<span ln="map"><img alt="👀" src="https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/1f440.png" class="inline-block generalImg pr-1"></span>
</a>
<span ln="or"></span>
<a class="underline text-center" href="" target="_blank" rel="noopener noreferrer">
<span ln="wiki"><img alt="📚" src="https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/1f4da.png" class="inline-block generalImg pr-1"></span>
</a>
</div>
<div id="mapArea" class="grid justify-center border-gray-200 border-2 transition-all mb-4 mt-4"></div>
</div>
</template>
<template id="tmpl-guessline">
<div class="col-span-7 h-8 bg-gray-200 rounded"></div>
</template>
<template id="tmpl-togglecolor">
<div id="toggleColoured" class="flex rounded absolute">
<button role="toggle" id="toggleColoureButton" class="rounded"><img alt="🎨" src="https://em-content.zobj.net/thumbs/240/whatsapp/352/artist-palette_1f3a8.png" width="30px"></button>
</div>
</template>
<template id="tmpl-togglelabels">
<div id="toggleLabels" class="flex rounded absolute">
<button role="toggle" id="toggleLabelsButton" class="rounded"><img alt="💬" src="https://em-content.zobj.net/source/au-kddi/194/speech-balloon_1f4ac.png" width="30px"></button>
</div>
</template>
<template id="tmpl-togglecities">
<div id="toggleCities" class="flex rounded absolute">
<button role="toggle" id="toggleCitiesButton" class="rounded"><img alt="🏙️" src="https://em-content.zobj.net/source/twitter/348/cityscape_1f3d9-fe0f.png" width="30px"></button>
</div>
</template>
<template id="tmpl-zoom-button">
<div class="flex absolute rounded">
<button style="width:20px" class="rounded flex font-bold justify-center ghost">
<span style="transform: translate(0%, -2px);"></span>
</button>
</div>
</template>
<template id="tmpl-cancel-rotation">
<button class="rounded p-1 border-2 uppercase mb-2" type="button" id="cancel-rot"><span ln="norot" class="font-bold"><img alt="🌀" src="https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/1f300.png" class="inline-block generalImg valign"></span></button>
</template>
<template id="tmpl-about">
<div id="aboutPage" class="flex w-full h-full max-w-lg relative h-full flex-col">
<div class="flex flex-col gap-2 text-justify border-b-2 border-gray-200 mb-3 my-2 p-1">
<div id="about1" class="ml-3">
<span ln="guessthe"></span><span class="font-bold">VÁRD<span class="text-green-600">L</span>E</span><span ln="inguesses"></span>
</div>
<div id="about2" class="ml-3" ln="vardle"></div>
<div id="about3" class="ml-3" ln="yourguess"></div>
<div id="about3" class="ml-3 mb-2" ln="eachguess"></div>
</div>
<div class="my-2 mt-4 p-1 ml-3" style="flex-grow: 1;">
<h3 class="text-lg font-bold mb-3" ln="variants"></h3>
<div class="p-1 text-green-600">
<ul>
<li><a href="?map=modern" ln="modern"></a></li>
<li><a href="?map=bp" ln="districts"></a></li>
<li><a href="?map=wurstspaetzle" ln="germany"></a></li>
<li><a href="?map=baguettecroissant" ln="france"></a></li>
<li><a href="?map=ciorbaiahnie" ln="romania"></a></li>
<li><a href="?map=pizzapasta" ln="italy"></a></li>
<li><a href="?map=polishedmap" ln="poland"></a></li>
<li><a href="?map=world" ln="world"></a></li>
</ul>
</div>
</div>
<footer class="flex justify-center w-full pb-3">
<a class="flex items-center gap-1" ln="srccode" title="Vardle - GitHub Repo" href="https://github.com/OregSamSas/vardle">
<svg width="16" height="16">
<path style="fill:var(--text)" d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"></path>
</svg>
</a>
</footer>
</div>
</template>
<template id="tmpl-header">
<header id="" class="border-b-2 px-3 border-gray-200 justify-center items-center flex flex-shrink w-full">
<h2 class="text-2xl font-bold uppercase tracking-wide text-center my-1 flex-auto" ln=""></h2>
<a id="cancel" lnt="close">
<span class="undefined">
<img alt="❌" src="https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/274c.png" class="generalImg">
</span>
</a>
</header>
</template>
<template id="tmpl-stats">
<div id="statsPage" class="flex w-full h-full max-w-lg relative">
<div id="nostats-cont" class="flex flex-col gap-2 text-justify border-b-2 border-gray-200 mb-3 my-2 p-1">
<div id="nostats" class="ml-3 my-2" ln="nostats"></div>
</div>
<div id="overall-stats" class="my-2 flex flex-col gap-2">
<div id="" class="">
<h2 class="text-center font bold my-2" ln="overall"></h2>
<div class="my-1 flex justify-center">
<span ln="played" class="text-xl">
<img alt="🎮" src="https://em-content.zobj.net/source/facebook/355/video-game_1f3ae.png" class="inline-block stat-img pr-1" style="vertical-align: middle;">
<span class="font-bold mx-2 text-4xl">0</span>
</span>
</div>
<div class="my-1 flex justify-center">
<span ln="won" class="text-xl">
<img alt="🏆" src="https://em-content.zobj.net/source/huawei/375/trophy_1f3c6.png" class="inline-block stat-img pr-1" style="vertical-align: middle;">
<span class="font-bold mx-2 text-4xl">0</span>
</span>
</div>
<div class="my-1 flex justify-center">
<span ln="rating" class="text-xl">
<img alt="📊" src="https://em-content.zobj.net/source/twitter/376/bar-chart_1f4ca.png" class="inline-block stat-img pr-1" style="vertical-align: middle;">
<span class="font-bold mx-2 text-4xl">0%</span>
</span>
</div>
<div class="my-1 flex justify-center">
<span ln="totalguess" class="text-xl">
<img alt="🎲" src="https://em-content.zobj.net/source/whatsapp/396/game-die_1f3b2.png" class="inline-block stat-img pr-1" style="vertical-align: middle;">
<span class="font-bold mx-2 text-4xl">0</span>
</span>
</div>
</div>
</div>
<div id="guess-dist" style="flex-grow: 1;">
<h2 class="font-bold text-center my-2" ln="guess-dist"></h2>
<div ln="untilwon" class="italic text-center text-sm text-gray-500"></div>
<ul class="mx-2 mr-8"></ul>
</div>
<footer class="flex justify-center w-full pb-3">
<a class="flex items-center gap-1" ln="clearstats" onclick="deleteStats()" href="">
<img alt="🔄" src="https://em-content.zobj.net/thumbs/240/htc/37/anticlockwise-downwards-and-upwards-open-circle-arrows_1f504.png" class="generalImg" style="filter: brightness(var(--brightness));">
</a>
</footer>
</div>
</template>
<template id="tmpl-settings">
<div id="settingsPage" class="flex w-full h-full max-w-lg relative">
<div class="my-2 flex">
<div class="flex flex-col p-1 gap-2"></div>
</div>
<div class="my-1 flex flex-col gap-2 ml-3" style="flex-grow: 1;">
<header class="my-1">
<h3 class="text-lg font-bold" ln="settings1"></h3>
<div class="text-sm italic text-gray-500" ln="settings2"></div>
</header>
<div class="flex flex-col p-1 gap-2"></div>
</div>
<footer class="flex justify-center w-full pb-3">
<a class="flex items-center gap-1" ln="default" lnt="clearinfo" onclick="clearLocalStorage()" href="">
<img alt="🔄" src="https://em-content.zobj.net/thumbs/240/htc/37/anticlockwise-downwards-and-upwards-open-circle-arrows_1f504.png" class="generalImg" style="filter: brightness(var(--brightness));">
</a>
</footer>
</div>
</template>
<template id="tmpl-setting-select">
<div class="flex p-1">
<select id="setting-" class="h-8 w-16 p-1">
<option value="" ln=""></option>
</select>
<label class="flex-1 ml-3 flex items-center" for="setting-"></label>
</div>
</template>
<template id="tmpl-setting-number">
<div class="flex p-1">
<input type="number" id="setting-" class="h-8 w-16 p-1">
<label class="flex-1 ml-3" for="setting-"></label>
</div>
</template>
<template id="tmpl-setting-checkbox">
<div class="flex p-1">
<input type="checkbox" id="setting-" class="p-1">
<label class="flex-1 ml-3" for="setting-"></label>
</div>
</template>
<template id="tmpl-showmap">
<button id="showmap-button" class="font-bold border-2 p-1 rounded absolute uppercase my-2" type="button">
<span ln="showmap"><img alt="🗺️" src="https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/72x72/1f5fa.png" class="inline-block generalImg"></span>
</button>
</template>
<script src="src/main/javascript/popups.js"></script>
<script src="src/main/javascript/utilities.js"></script>
<script src="src/main/javascript/translate.js"></script>
<script src="src/main/javascript/data.js"></script>
<script src="src/main/javascript/handleSVG.js"></script>
<script src="src/main/javascript/guesses.js"></script>
<script src="src/main/javascript/suggestions.js"></script>
<script src="src/main/javascript/events.js"></script>
<script src="src/main/javascript/main-image.js"></script>
<script src="src/main/javascript/map.js"></script>
<script src="src/main/javascript/themes.js"></script>
<script src="src/main/javascript/urlhandling.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/confetti.browser.min.js"></script>
<script src="main.js"></script>
</html>