-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
426 lines (375 loc) · 24.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Mark Broersen2</title>
<link rel="stylesheet" href="public/css/main.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body class="text-gray-900 antialiased leading-tight">
<nav>
<div class="relative bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6">
<div class="flex justify-between items-center border-b-2 border-gray-100 py-6 md:justify-start md:space-x-10">
<div class="lg:w-0 lg:flex-1">
<a href="#" class="flex">
<svg viewBox="0 0 600 600" class="h-8 w-auto sm:h-10" xmlns="http://www.w3.org/2000/svg">
<use xlink:href="#jeloquent-icon"></use>
</svg>
</a>
</div>
<div class="-mr-2 -my-2 md:hidden">
<button onclick="toggleMobileMenu()" type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out">
<!-- Heroicon name: menu -->
<svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
</div>
<nav class="hidden md:flex space-x-10">
<div class="relative">
<!-- Item active: "text-gray-900", Item inactive: "text-gray-500" -->
<!-- <button type="button" class="text-gray-500 group inline-flex items-center space-x-2 text-base leading-6 font-medium hover:text-gray-900 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150">-->
<!-- <span>Solutions</span>-->
<!-- <!–-->
<!-- Heroicon name: chevron-down-->
<!-- Item active: "text-gray-600", Item inactive: "text-gray-400"-->
<!-- –>-->
<!-- <svg class="text-gray-400 h-5 w-5 group-hover:text-gray-500 group-focus:text-gray-500 transition ease-in-out duration-150" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">-->
<!-- <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />-->
<!-- </svg>-->
<!-- </button>-->
<!--
'Solutions' flyout menu, show/hide based on flyout menu state.
Entering: "transition ease-out duration-200"
From: "opacity-0 translate-y-1"
To: "opacity-100 translate-y-0"
Leaving: "transition ease-in duration-150"
From: "opacity-100 translate-y-0"
To: "opacity-0 translate-y-1"
-->
<div class="absolute -ml-4 mt-3 transform px-2 w-screen max-w-md sm:px-0 lg:ml-0 lg:left-1/2 lg:-translate-x-1/2 invisible">
<div class="rounded-lg shadow-lg">
<div class="rounded-lg shadow-xs overflow-hidden">
<div class="z-20 relative grid gap-6 bg-white px-5 py-6 sm:gap-8 sm:p-8">
<a href="#" class="-m-3 p-3 flex items-start space-x-4 rounded-lg hover:bg-gray-50 transition ease-in-out duration-150">
<!-- Heroicon name: chart-bar -->
<svg class="flex-shrink-0 h-6 w-6 text-indigo-600" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
</svg>
<div class="space-y-1">
<p class="text-base leading-6 font-medium text-gray-900">
test
</p>
<p class="text-sm leading-5 text-gray-500">
test
</p>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
<a href="#" onclick="showJeloquent()" class="text-base leading-6 font-medium text-gray-500 hover:text-gray-900 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150">
Jeloquent
</a>
<a href="#" onclick="showSudoku()" class="text-base leading-6 font-medium text-gray-500 hover:text-gray-900 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150">
Sudoku
</a>
<a href="#" onclick="showChess()" class="text-base leading-6 font-medium text-gray-500 hover:text-gray-900 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150">
Chess
</a>
</nav>
<div class="hidden md:flex items-center justify-end space-x-8 md:flex-1 lg:w-0">
<a href="https://github.com/mbroersen/jeloquent/wiki" class="whitespace-no-wrap text-base leading-6 font-medium text-gray-500 hover:text-gray-900 focus:outline-none focus:text-gray-900">
Learn more
</a>
<span class="inline-flex rounded-md shadow-sm">
<a href="https://github.com/mbroersen/jeloquent/wiki/Quick-Setup" class="whitespace-no-wrap inline-flex items-center justify-center px-4 py-2 border border-transparent text-base leading-6 font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-500 focus:outline-none focus:border-indigo-700 focus:shadow-outline-indigo active:bg-indigo-700 transition ease-in-out duration-150">
Get started
</a>
</span>
</div>
</div>
</div>
<nav id="mobile-menu" class="sm:hidden hidden">
<div class="px-2 pt-2 pb-4 sm:flex sm:p-0 text-gray-800 rounded-md shadow">
<a href="#" onclick="showJeloquent()" class="block px-2 py-1 font-semibold rounded hover:text-white hover:bg-gray-800">
Jeloquent
</a>
<a href="#" onclick="showSudoku()" class="block px-2 py-1 font-semibold rounded hover:text-white hover:bg-gray-800">
Sudoku
</a>
</div>
</nav>
<!--
Mobile menu, show/hide based on mobile menu state.
Entering: "duration-200 ease-out"
From: "opacity-0 scale-95"
To: "opacity-100 scale-100"
Leaving: "duration-100 ease-in"
From: "opacity-100 scale-100"
To: "opacity-0 scale-95"
-->
</div>
</nav>
<header class="bg-white shadow">
<div class="mx-auto py-6 px-4 sm:px-6 lg:px-8">
<h1 id="title-container" class="text-3xl font-bold leading-tight text-gray-900">
Jeloquent
</h1>
</div>
</header>
<main id="sudoku" class="hidden">
<div class="flex justify-center w-full bg-gray-200 min-h-400">
<div class="max-w-sm rounded overflow-hidden shadow-lg">
<div id="sudoku-container"></div>
<div class="px-6 py-4">
<div class="font-bold text-xl mb-2">Sudoku</div>
<p class="text-gray-700 text-base">
Javascript sudoku game generator.
</p>
</div>
<div class="px-6 pt-4 pb-2">
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">generate</span>
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#travel</span>
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#winter</span>
</div>
</div>
</div>
</main>
<main id="chess" class="hidden" >
<div id="chess-app" style="font-size: 28px"></div>
</main>
<main id="jeloquent" class="visible">
<!-- <div class="max-w-screen-sm mx-auto px-4 sm:px-6 lg:px-8 py-6 " >-->
<!-- <div class="lg:text-center ">-->
<!-- <h3 class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl sm:leading-10">Get started</h3>-->
<!-- <div class="inline-flex rounded-md shadow bg-gray-100 p-4 rounded-md">-->
<!-- <div class="overflow-y-auto w-full font-mono">-->
<!-- npm i jeloquent-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<div class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8 bg-white">
<div class="max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="lg:text-center">
<p class="text-base leading-6 text-indigo-600 font-semibold tracking-wide uppercase">Main Goals</p>
<h3 class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl sm:leading-10">
Easy access to your models and there relations.
</h3>
<p class="mt-4 max-w-2xl text-xl leading-7 text-gray-500 lg:mx-auto">
Jeloquent is an orm that uses a memory store to manage the data sets for the models and his relations.
</p>
</div>
<iframe src="https://codesandbox.io/embed/shy-rgb-681hz?fontsize=14&hidenavigation=1&theme=dark"
style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;"
title="shy-rgb-681hz"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
></iframe>
<div class="mt-10">
<ul class="md:grid md:grid-cols-2 md:gap-x-8 md:gap-y-10">
<li>
<div class="flex">
<div class="flex-shrink-0">
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-indigo-500 text-white">
<!-- Heroicon name: globe-alt -->
<svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9" />
</svg>
</div>
</div>
<div class="ml-4">
<h4 class="text-lg leading-6 font-medium text-gray-900">Laravel Eloquent Relation Names</h4>
<p class="mt-2 text-base leading-6 text-gray-500">
HasMany, BelongsTo, HasOne. Use the relations you as laravel developer has come accustomed to.
</p>
</div>
</div>
</li>
<li class="mt-10 md:mt-0">
<div class="flex">
<div class="flex-shrink-0">
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-indigo-500 text-white">
<!-- Heroicon name: scale -->
<svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 6l3 1m0 0l-3 9a5.002 5.002 0 006.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 006.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3" />
</svg>
</div>
</div>
<div class="ml-4">
<h4 class="text-lg leading-6 font-medium text-gray-900">Return Collections</h4>
<p class="mt-2 text-base leading-6 text-gray-500">
Combines the power of vanilla javascript array and laravel collections.
</p>
</div>
</div>
</li>
<li class="mt-10 md:mt-0">
<div class="flex">
<div class="flex-shrink-0">
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-indigo-500 text-white">
<!-- Heroicon name: lightning-bolt -->
<svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
</div>
</div>
<div class="ml-4">
<h4 class="text-lg leading-6 font-medium text-gray-900">Quick and easy setup</h4>
<p class="mt-2 text-base leading-6 text-gray-500">
Setup models by extending Jeloquents model class.
</p>
</div>
</div>
</li>
<li class="mt-10 md:mt-0">
<div class="flex">
<div class="flex-shrink-0">
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-indigo-500 text-white">
<!-- Heroicon name: annotation -->
<svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z" />
</svg>
</div>
</div>
<div class="ml-4">
<h4 class="text-lg leading-6 font-medium text-gray-900">Lightweight and for modern browsers</h4>
<p class="mt-2 text-base leading-6 text-gray-500">
We build for modern browsers to keep the package fast en lightweight, keeping all the features.
</p>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</main>
<section>
<div class="bg-gray-50">
<div class="max-w-screen-xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8 lg:flex lg:items-center lg:justify-between">
<h2 class="text-3xl leading-9 font-extrabold tracking-tight text-gray-900 sm:text-4xl sm:leading-10">
Ready to dive in?
<br>
<span class="text-indigo-600">Try Jeloquent today.</span>
</h2>
<div class="mt-8 flex lg:flex-shrink-0 lg:mt-0">
<div class="inline-flex rounded-md shadow">
<a href="https://github.com/mbroersen/jeloquent/wiki/Quick-Setup" class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base leading-6 font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-500 focus:outline-none focus:shadow-outline transition duration-150 ease-in-out">
Get started
</a>
</div>
<div class="ml-3 inline-flex rounded-md shadow">
<a href="https://github.com/mbroersen/jeloquent/wiki" class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base leading-6 font-medium rounded-md text-indigo-600 bg-white hover:text-indigo-500 focus:outline-none focus:shadow-outline transition duration-150 ease-in-out">
Learn more
</a>
</div>
</div>
</div>
</div>
</section>
<footer>
<div class="flex justify-center border-t-2">
<a href="https://github.com/mbroersen/jeloquent" class="text-gray-700 hover:text-gray-800 m-2">
<svg viewBox="0 0 600 600" style="width:24px; height:24px" xmlns="http://www.w3.org/2000/svg">
<use xlink:href="#jeloquent-icon"></use>
</svg>
</a>
<a href="https://github.com/mbroersen" class="text-gray-700 hover:text-gray-800 m-2">
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
<use xlink:href="#github-icon"></use>
</svg>
</a>
</div>
</footer>
<svg style="height: 0; width: 0;">
<defs>
<symbol id="jeloquent-icon">
<title>Jeloquent Logo</title>
<g>
<title>Jeloquent - package</title>
<rect stroke="#000000" id="svg_1" height="166" width="220" y="110.45313" x="41.5" stroke-width="7" fill="#ffffff"/>
<line stroke-linecap="null" stroke-linejoin="null" id="svg_2" y2="139.45313" x2="261.5" y1="139.45313" x1="41.5" stroke-width="6" stroke="#000000" fill="none"/>
<text font-weight="bold" xml:space="preserve" text-anchor="start" font-family="Arvo, sans-serif" font-size="12" id="svg_16" y="129.45313" x="57.5" fill-opacity="null" stroke-opacity="null" stroke-width="0" stroke="#ce7975" fill="#000000">Jeloquent</text>
</g>
<g>
<title>Js - javascript</title>
<rect stroke="#000000" id="svg_5" height="166" width="220" y="322.45313" x="190" stroke-width="7" fill="#ffffff"/>
<line stroke-linecap="null" stroke-linejoin="null" id="svg_6" y2="352.45313" x2="408.5" y1="352.45313" x1="188.5" stroke-width="5.5" stroke="#000000" fill="none"/>
<text font-weight="bold" xml:space="preserve" text-anchor="start" font-family="Arvo, sans-serif" font-size="12" id="svg_18" y="341.45313" x="202.5" fill-opacity="null" stroke-opacity="null" stroke-width="0" stroke="#ce7975" fill="#000000">Js</text>
</g>
<g>
<title>Orm - memory store</title>
<rect stroke="#000000" id="svg_9" height="166" width="220" y="110.45313" x="325.5" stroke-width="7" fill="#ffffff"/>
<line stroke-linecap="null" stroke-linejoin="null" id="svg_10" y2="140.45313" x2="545.5" y1="140.45313" x1="325.5" stroke-width="5.5" stroke="#000000" fill="none"/>
<text style="cursor: move;" font-weight="bold" xml:space="preserve" text-anchor="start" font-family="Arvo, sans-serif" font-size="12" id="svg_17" y="129.45313" x="341.5" fill-opacity="null" stroke-opacity="null" stroke-width="0" stroke="#ce7975" fill="#000000">Orm</text>
</g>
<g>
<line stroke-linecap="null" stroke-linejoin="null" id="svg_13" y2="205.45313" x2="323.50862" y1="205.45313" x1="265.5" fill-opacity="null" stroke-opacity="null" stroke-width="5.5" stroke="#ce7975" fill="none"/>
</g>
<g>
<line stroke="#ce7975" stroke-linecap="null" stroke-linejoin="null" id="svg_22" y2="415.5" x2="420" y1="390" x1="420" stroke-width="5.5" fill="none"/>
<ellipse stroke="#ce7975" ry="7.5" rx="7.5" id="svg_23" cy="288" cx="472" fill-opacity="null" stroke-width="5.5" fill="none"/>
<line stroke-linecap="null" stroke-linejoin="null" id="svg_14" y2="402" x2="472.5" y1="402" x1="414" fill-opacity="null" stroke-opacity="null" stroke-width="5.5" stroke="#ce7975" fill="none"/>
<line stroke="#ce7975" stroke-linecap="null" stroke-linejoin="null" id="svg_15" y2="404" x2="471.5" y1="297" x1="471.5" fill-opacity="null" stroke-opacity="null" stroke-width="5.5" fill="none"/>
</g>
<g>
<line stroke="#ce7975" stroke-linecap="null" stroke-linejoin="null" id="svg_20" y2="415.5" x2="179.5" y1="390" x1="179.5" stroke-width="5.5" fill="none"/>
<ellipse stroke="#ce7975" ry="7.5" rx="7.5" id="svg_19" cy="287.95313" cx="111" fill-opacity="null" stroke-width="5.5" fill="none"/>
<line stroke-linecap="null" stroke-linejoin="null" id="svg_12" y2="402.45313" x2="186" y1="402.45313" x1="111" stroke-width="5.5" stroke="#ce7975" fill="none"/>
<line stroke="#ce7975" stroke-linecap="null" stroke-linejoin="null" id="svg_11" y2="403.54433" x2="111.5" y1="297.45313" x1="111.5" stroke-width="5.5" fill="none"/>
</g><!-- insert all paths and shapes for first svg here -->
</symbol>
<symbol id="github-icon">
<path fill="currentColor" d="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z"
/>
</symbol>
</defs>
</svg>
<script src="public/js/sudoku.js"></script>
<script src="public/js/chess.js"></script>
<script>
function toggleMobileMenu() {
let m = document.querySelector('#mobile-menu');
if (m.classList.contains('hidden')) {
m.classList.remove('hidden');
return;
}
m.classList.add('hidden');
}
function showJeloquent() {
let m = document.querySelector('main.visible');
let t = document.querySelector('#title-container');
m.classList.remove('visible');
m.classList.add('hidden');
t.innerHTML = 'Jeloquent';
document.querySelector('#jeloquent').classList.remove('hidden');
document.querySelector('#jeloquent').classList.add('visible');
}
function showChess() {
Chess.GameController.createGame();
Chess.GameController.showBoard(1);
document.querySelector('#chess').classList.remove('hidden');
document.querySelector('#chess').classList.add('visible');
}
function showSudoku() {
let m = document.querySelector('main.visible');
let t = document.querySelector('#title-container');
m.classList.remove('visible');
m.classList.add('hidden');
t.innerHTML = 'Sudoku';
document.querySelector('#sudoku').classList.remove('hidden');
document.querySelector('#sudoku').classList.add('visible');
Sudoku.GenerateView.showLoader();
setTimeout(() => {
Sudoku.GameGenerator.newGame();
Sudoku.GenerateView.removeLoader();
Sudoku.GenerateView.createView();
}, 1000);
}
</script>
</body>
</html>