forked from Dave2ooo/F2LTrainer-Legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
735 lines (660 loc) · 28.8 KB
/
index.html
File metadata and controls
735 lines (660 loc) · 28.8 KB
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
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
<!-- Source https://github.com/Dave2ooo/F2LTrainer -->
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google Tag Manager -->
<!-- <script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != "dataLayer" ? "&l=" + l : "";
j.async = true;
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, "script", "dataLayer", "GTM-P5XPQWK5");
</script> -->
<!-- End Google Tag Manager -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-ENTD55V4SX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-ENTD55V4SX");
</script>
<!-- End Google tag (gtag.js) -->
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Learn and practice all F2L cases you need to know. Improve your solving times by finding better and faster algirithms."
/>
<meta name="keywords" content="cubing,rubiks,cfop,f2l,learning,practicing,training" />
<meta name="author" content="Dave2ooo" />
<!-- Cache for 12 hours -->
<meta http-equiv="Cache-control" content="public, max-age=43200" />
<title>F2L Trainer - Rubiks Cube</title>
<link rel="icon" href="images/full_cube.svg" />
<link rel="stylesheet" href="style.css" />
<!-- for Progressive Web App (PWA) -->
<link rel="manifest" href="manifest.json" />
<!-- Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "F2L Trainer",
"applicationCategory": "EducationalApplication",
"operatingSystem": "Internet Browser"
}
</script>
</head>
<body>
<!-- Service Worker for Progressive Web App (PWA)-->
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("scripts/service-worker.js");
}
</script>
<!-- POPUP-CONTAINER START -->
<!-- Info -->
<!-- Welcome Container -->
<dialog id="welcome-container" class="popup-container">
<!-- <h1>Welcome to my F2L Trainer</h1> -->
<!-- <h1>How to use the F2L Trainer</h1> -->
<h2>How to use the Trainer</h2>
<p>
<!-- Learn and practice all F2L cases you need to know. Improve your knowledge by finding better and faster
algirithms. Use this trainer to practice and reduce your Rubiks Cube solving times. -->
</p>
<div class="div-centering">
<img src="./images/instructions_select_page.png" alt="Select Page Instructions" class="img-instructions" />
</div>
<div class="update-cancel-buttons">
<input type="button" class="btn-overlay" onclick="closeOverlays()" value="To the Trainer" />
</div>
</dialog>
<!-- Info Container -->
<dialog id="info-container" class="popup-container">
<h1>Here some info</h1>
<h2>How to use the F2L Trainer</h2>
<p>1. Press the image of a <b>cube</b> to change their status to</p>
<ul>
<li class="color-transparent">UNLEARNED</li>
<li class="color-yellow">LEARNING</li>
<li class="color-green">FINISHED</li>
</ul>
<p>
2. Press
<img src="./images/edit.svg" alt="Edit" class="img-inline" loading="lazy" />
to select your preferred algorithm.<br />
3. Press <span class="border-inline">Train</span> to switch to train mode.<br />
4. Press
<img src="./images/settings.svg" alt="Setings" class="img-inline" loading="lazy" />
to set your preferences.<br />
5. <b>Scramble</b> your cube according to the displayed scramble.<br />
6. <b>Solve</b> the first two layers fully.
</p>
<!-- If load=lazy and website opened on mobile (chrome): The YouTube video will not be displayed -->
<iframe
id="iframe-video"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
allowfullscreen
></iframe>
<!-- src="https://www.youtube-nocookie.com/embed/EQbZvKssp7s?si=tEuX7PxLo8i5UdiT&start=20" -->
<!-- <img id="thumbnail-button" src="./images/thumbnail.png" alt="Yideo" onclick="insertUrltoIframe()" /> -->
<!-- <button onclick="insertUrltoIframe()">URL</button> -->
<h2>Hotkeys</h2>
<p>Hotkeys only work in <b>Train</b> mode</p>
<ul>
<li>Space - Next Scramble</li>
<li>Right Arrow - Get Hint</li>
<li>C (double press) - Clear all Data</li>
</ul>
<h2>Further Help</h2>
<p>
Feel free to create an issue on
<a href="https://github.com/Dave2ooo/F2LTrainer" target="_blank" rel="noopener noreferrer">Github</a>
if you need <b>help</b>, have ideas for <b>improvement</b> or find any <b>bugs</b>.
</p>
<h2>Acknowledgment</h2>
<p>
Thanks to
<a href="https://github.com/cubing/cubing.js" target="_blank" rel="noopener noreferrer">cubing.js</a> for the
interactive Rubiks cube.
</p>
<div class="update-cancel-buttons">
<form method="dialog">
<button type="button" class="btn-overlay" id="btn-close-info" onclick="closeOverlays()">
Close
<img src="./images/cancel.svg" alt="Close" class="side-img" title="Close" loading="lazy" />
</button>
</form>
</div>
</dialog>
<!-- Edit Algorithm -->
<dialog id="editalg-container" class="popup-container">
<div id="editalg-img-container">
<img id="editalg-img" src="./images/basic_cases/right/F2L1.svg" alt="Image of Case" loading="lazy" />
</div>
<label class="checkbox" for="checkboxIdenticalAlgId">
<input
type="checkbox"
class="checkbox__input"
name="checkboxIdenticalAlg"
id="checkboxIdenticalAlgId"
onchange="syncLeftRightAlgSelection()"
/>
<div class="checkbox__box"></div>
Same alg for left and right (mirrored)
</label>
<!-- <div id="editalg-text">Choose algorithm</div> -->
<div class="switch-container">
<div class="switch">
<input type="radio" id="switch-left-id" name="switch" onchange="switchLeftRight()" />
<label for="switch-left-id">Left</label>
<input type="radio" id="switch-right-id" name="switch" onchange="switchLeftRight()" checked />
<label for="switch-right-id">Right</label>
<div class="indicator"></div>
</div>
</div>
<div id="editalg-list">
<!-- <div class="editalg-listentry">U (R U' R)</div> -->
<!-- <div class="editalg-listentry">R' F R F'</div> -->
<!-- <div class="editalg-listentry">U2 (R U2 R')</div> -->
<!-- <div class="editalg-listentry">y' U f R' f'</div> -->
</div>
<div class="editalg-listentry" onclick="customAlgSelected()">
<input type="text" placeholder="Enter Custom Algorithm" id="editalg-customalg" />
</div>
<div class="update-cancel-buttons">
<button type="button" class="btn-overlay" onclick="updateAlg()">
Confirm
<img src="./images/confirm.svg" alt="Confirm" class="side-img" title="Confirm" loading="lazy" />
</button>
<button type="button" class="btn-overlay" onclick="closeOverlays()">
Cancel <img src="./images/cancel.svg" alt="Close" class="side-img" title="Close" loading="lazy" />
</button>
</div>
</dialog>
<!-- Loading Screen -->
<div id="loading-screen">
<h1>LOADING</h1>
<span class="loader"></span>
</div>
<!-- Train Settings -->
<dialog id="train-settings-container" class="popup-container">
<h2>Export</h2>
<!-- <p>Use this URL to transfer your selected cases to other devices.</p> -->
<input type="text" id="input-export" value="https://f2l-trainer.top" readonly disabled />
<div class="update-cancel-buttons">
<button type="button" class="btn-overlay" onclick="copyUTLtoClipboard()">Copy to clipboard</button>
</div>
<h2>
Train settings
<button type="button" popovertarget="popover-train-settings">?</button>
</h2>
<div popover popover-position="bottom-center" id="popover-train-settings">
Select which cases you want to practice
</div>
<div id="div-algs-to-learn" class="div-checkbox-container-container">
<!-- Checkbox: Unlearned, Learning, Finished -->
<div class="checkbox-container">
<h3>Status</h3>
<label class="checkbox" for="checkboxUnlearnedId">
<input
type="checkbox"
class="checkbox__input"
name="checkboxUnlearned"
id="checkboxUnlearnedId"
onclick="updateSettingsActiveCases()"
/>
<div class="checkbox__box"></div>
Unlearned
</label>
<label class="checkbox checkbox-learning" for="checkboxLearningId">
<input
type="checkbox"
class="checkbox__input"
name="checkboxLearning"
id="checkboxLearningId"
onclick="updateSettingsActiveCases()"
/>
<div class="checkbox__box checkbox__box_learning"></div>
Learning
</label>
<label class="checkbox checkbox-finished" for="checkboxFinishedId">
<input
type="checkbox"
class="checkbox__input"
name="checkboxFinished"
id="checkboxFinishedId"
onclick="updateSettingsActiveCases()"
/>
<div class="checkbox__box checkbox__box_finished"></div>
Finished
</label>
</div>
<!-- Checkbox: Groups -->
<div class="checkbox-container">
<h3>Group</h3>
<label class="checkbox" for="checkboxGroupBasicId">
<input
type="checkbox"
class="checkbox__input"
name="checkboxGroupBasic"
id="checkboxGroupBasicId"
onclick="updateSettingsActiveCases()"
/>
<div class="checkbox__box"></div>
Basic
</label>
<label class="checkbox" for="checkboxGroupBasicBackId">
<input
type="checkbox"
class="checkbox__input"
name="checkboxGroupBasicBack"
id="checkboxGroupBasicBackId"
onclick="updateSettingsActiveCases()"
/>
<div class="checkbox__box"></div>
Basic Back
</label>
<label class="checkbox" for="checkboxGroupAdvancedId">
<input
type="checkbox"
class="checkbox__input"
name="checkboxGroupAdvanced"
id="checkboxGroupAdvancedId"
onclick="updateSettingsActiveCases()"
/>
<div class="checkbox__box"></div>
Advanced
</label>
<label class="checkbox" for="checkboxGroupExpertId">
<input
type="checkbox"
class="checkbox__input"
name="checkboxExpertAdvanced"
id="checkboxGroupExpertId"
onclick="updateSettingsActiveCases()"
/>
<div class="checkbox__box"></div>
Expert
</label>
</div>
</div>
<div id="settings-active-cases-info"></div>
<div class="div-checkbox-container-container">
<div class="checkbox-container">
<h3>
Left / Right Slot
<button type="button" popovertarget="popover-left-right">?</button>
</h3>
<div popover popover-position="bottom-center-right" id="popover-left-right">
Choose if you want to<br />train left or right slot
</div>
<label class="checkbox" for="checkboxLeftId">
<input type="checkbox" class="checkbox__input" name="checkboxLeft" id="checkboxLeftId" />
<div class="checkbox__box"></div>
Left
</label>
<label class="checkbox" for="checkboxRightId">
<input type="checkbox" class="checkbox__input" name="checkboxRight" id="checkboxRightId" />
<div class="checkbox__box"></div>
Right
</label>
</div>
<div class="checkbox-container">
<h3>
AUF
<button type="button" popovertarget="popover-add-auf">?</button>
</h3>
<div popover popover-position="bottom-center" id="popover-add-auf">
Add AUF:<br />Adds a random U move<br />to the end of the scramble <br /><br />
Consider AUF in hint:<br />Hint alg takes AUF<br />into account
</div>
<label class="checkbox" for="checkboxAUFId">
<input
type="checkbox"
class="checkbox__input"
name="checkboxAUF"
id="checkboxAUFId"
onchange="enableDisableCheckboxConsiderAUF()"
/>
<div class="checkbox__box"></div>
Add AUF
</label>
<label class="checkbox" for="checkboxConsiderAUFId">
<input type="checkbox" class="checkbox__input" name="checkboxConsiderAUF" id="checkboxConsiderAUFId" />
<div class="checkbox__box"></div>
Consider AUF<br />in hint
</label>
</div>
</div>
<h2>Hint</h2>
<div class="checkbox-container">
<div class="div-select-hint">
<p>Hint image:</p>
<select id="select-hint-image" class="select-hint">
<option value="none">None</option>
<option value="2d">2D Image</option>
<option value="3d" selected>3D Cube</option>
</select>
</div>
<div class="div-select-hint">
<p>Algorithm:</p>
<select id="select-hint-alg" class="select-hint">
<option value="step-by-step">Reveal step-by-step</option>
<option value="all-at-once">Reveal all at once</option>
<option value="all-time" selected>Show all time</option>
</select>
</div>
<div class="div-select-hint">
<p>Stickering:</p>
<select id="select-stickering" class="select-hint">
<option value="f2l" selected>F2L Stickering</option>
<option value="fully">Fully Stickered</option>
</select>
</div>
<!-- <div class="div-select-hint">
<p>Cross color:</p>
<select id="select-cross-color" class="select-hint">
<option value="white" selected>White</option>
<option value="yellow">Yellow</option>
<option value="red">Red</option>
<option value="orange">Orange</option>
<option value="blue">Blue</option>
<option value="green">Green</option>
<option value="random">Random</option>
</select>
</div> -->
</div>
<h2>Additional</h2>
<div class="checkbox-container">
<label class="checkbox" for="checkboxEnableTimerId">
<input type="checkbox" class="checkbox__input" name="checkboxEnableTimer" id="checkboxEnableTimerId" />
<div class="checkbox__box"></div>
Enable Timer (experimental)
</label>
<label class="checkbox" for="checkboxEnableRecapId">
<input type="checkbox" class="checkbox__input" name="checkboxEnableRecap" id="checkboxEnableRecapId" />
<div class="checkbox__box"></div>
Enable Recap mode
</label>
<button type="button" class="btn-delete btn-overlay" onclick="clearUserData()">Delete saved data</button>
</div>
<!-- Buttons: Update, Cancel Settings -->
<!-- <div class="update-cancel-buttons"> -->
<!-- <button type="button" class="btn-overlay" onclick="updateTrainCases()">Confirm</button>
<button type="button" class="btn-overlay" onclick="closeOverlays()">Cancel</button> -->
<!-- <form method="dialog"> -->
<!-- <button type="button" class="btn-overlay" onclick="updateTrainCases()">Confirm</button>
<button type="button" class="btn-overlay" onclick="closeOverlays()">Cancel</button> -->
<!-- <a type="button" class="btn-overlay" onclick="updateTrainCases()">Confirm</a>
<a type="button" class="btn-overlay" onclick="closeOverlays()">Cancel</a> -->
<!-- </form> -->
<!-- </div> -->
<div class="update-cancel-buttons">
<button type="button" class="btn-overlay" onclick="updateTrainCases()">
Confirm <img src="./images/confirm.svg" alt="Confirm" class="side-img" title="Confirm" loading="lazy" />
</button>
<button type="button" class="btn-overlay" onclick="closeOverlays()">
Cancel <img src="./images/cancel.svg" alt="Close" class="side-img" title="Close" loading="lazy" />
</button>
</div>
</dialog>
<!-- Welcome Train Container -->
<!-- <dialog id="welcome-container-train" class="popup-container">
<h2>How to use the trainer</h2>
<div class="div-centering">
<img
src="./images/instructions_train_page.png"
alt="Train Page Instructions"
class="img-instructions"
loading="lazy"
/>
</div>
<div class="update-cancel-buttons">
<input type="button" class="btn-overlay" onclick="closeOverlays()" value="To the Trainer" />
</div>
</dialog> -->
<!-- Change State Popup -->
<dialog id="popup-change-state" class="popup-container">
<h1>Change learning state to</h1>
<div>
<input class="radio-state" type="radio" id="radio-state-unlearned" name="state" value="unlearned" />
<label class="color-transparent label-state" for="radio-state-unlearned">Unlearned</label>
</div>
<div>
<input class="radio-state" type="radio" id="radio-state-learning" name="state" value="learning" />
<label class="color-yellow label-state" for="radio-state-learning">Learning</label>
</div>
<div>
<input class="radio-state" type="radio" id="radio-state-finished" name="state" value="finished" />
<label class="color-green label-state" for="radio-state-finished">Finished</label>
</div>
<div class="update-cancel-buttons">
<button type="button" class="btn-overlay" onclick="changeStateRadio()">
Confirm <img src="./images/confirm.svg" alt="Confirm" class="side-img" title="Confirm" loading="lazy" />
</button>
<button type="button" class="btn-overlay" onclick="closeOverlays()">
Cancel <img src="./images/cancel.svg" alt="Close" class="side-img" title="Close" loading="lazy" />
</button>
</div>
</dialog>
<!-- Settings Selection Window Popup -->
<!-- <dialog id="select-settings-container" class="popup-container">
<h2>Export Settings</h2>
<p>Use this URL to transfer your selected cases to other devices.</p>
<input type="text" id="input-export" value="https://f2l-trainer.top" readonly disabled />
<div class="update-cancel-buttons">
<button type="button" class="btn-overlay" onclick="copyUTLtoClipboard()">Copy to clipboard</button>
</div>
<div class="checkbox-container">
<h2>Additional</h2>
<button type="button" class="btn-delete btn-overlay" onclick="clearUserData()">Delete saved data</button>
</div>
<div class="update-cancel-buttons">
<button type="button" class="btn-overlay" onclick="closeOverlays()">
Close
<img src="./images/cancel.svg" alt="Close" class="side-img" title="Close" loading="lazy" />
</button>
</div>
</dialog> -->
<!-- Feedback Popup -->
<dialog id="feedback-container" class="popup-container">
<h2>Feedback</h2>
<p>
Send your feedback via this form or create an issue on
<a href="https://github.com/Dave2ooo/F2LTrainer/issues" target="_blank" rel="noopener noreferrer">Github.</a>
</p>
<form method="POST" id="feedback-form">
<!-- Custom Access Key -->
<input type="hidden" name="access_key" value="70f60afc-3ab0-4491-80be-e854832fddb9" />
<!-- Subject of the email -->
<input type="hidden" name="subject" value="F2L Trainer feedback" />
<input type="checkbox" name="botcheck" class="hidden" style="display: none" />
<!-- Captcha check (needs script to be uncommented at bottom of index.html) -->
<!-- <div class="h-captcha" data-captcha="true"></div> -->
<input id="feedback-name-id" class="feedback-text" type="text" name="name" required placeholder="Your Name" />
<input class="feedback-text" type="email" name="email" required placeholder="Your Email" />
<textarea class="feedback-text" name="message" required placeholder="Your Feedback"></textarea>
<div id="feedback-result"></div>
<div class="update-cancel-buttons">
<button type="submit" class="btn-overlay">
Submit
<img src="./images/submit.svg" alt="Send" class="side-img" title="Submit" loading="lazy" />
</button>
<button type="button" class="btn-overlay" onclick="closeOverlays()">
Close
<img src="./images/cancel.svg" alt="Close" class="side-img" title="Close" loading="lazy" />
</button>
</div>
</form>
</dialog>
<!-- POPUP-CONTAINER END -->
<!-- Top bar -->
<div id="side-container">
<div>
<!-- Button Info -->
<button type="button" class="side-button" id="btn-info" onclick="showInfo()" data-tooltip="Info">
<img src="./images/info.svg" alt="Info" class="side-img" />
</button>
<div popover="manual" popover-position="bottom" id="popover-info">Press here to get more info.</div>
<!-- Button Settings Select -->
<div class="side-button btn-settings-select" , onclick="showSettingsTrain()" data-tooltip="Settings">
<img src="./images/settings.svg" alt="Settings" class="side-img" />
</div>
<!-- Button Feedback -->
<div class="side-button btn-settings-select" , onclick="showFeedback()" data-tooltip="Feedback">
<img src="./images/feedback.svg" alt="Feedback" class="side-img" />
</div>
</div>
<div class="container-select-group" data-tooltip="Group Selection dropdown">
<!-- <label for="select-group-id" class="acessibility-label">Choose a Group:</label> -->
<!-- for accesibility -->
<select id="select-group-id" class="select-group" onchange="showSelectedGroup()">
<option value="basic" selected>Basic Cases</option>
<option value="basicBack">Basic Backslot</option>
<option value="advanced">Advanced Cases</option>
<option value="expert">Expert Cases</option>
</select>
</div>
<!-- Button Settings Train -->
<div class="side-button display-none btn-settings-train" , onclick="showSettingsTrain()">
<img src="./images/settings.svg" alt="Settings" class="side-img" title="Settings" />
</div>
<button type="button" id="change-mode" onclick="changeMode()" data-tooltip="Start training">Train</button>
</div>
<!-- All the Cases will be listed here -->
<div id="window-select"></div>
<!-- <div id="overlay" onclick="closeOverlays()"></div> -->
<!-- Train Mode -->
<div class="window-train display-none">
<div class="div-centering">
<div id="scramble-container">
<img
src="./images/arrow_left.svg"
onclick="nextScramble(0)"
alt="previous scramble"
id="btn-next-scramble"
class="btn-next-prev"
title="Previous Scramble"
loading="lazy"
/>
<div id="scramble">no case selected</div>
<img
src="./images/arrow_right.svg"
onclick="nextScramble(1)"
alt="next scramble"
id="btn-next-scramble"
class="btn-next-prev"
title="Next Scramble"
loading="lazy"
/>
</div>
</div>
<div class="div-hint-img" onmousedown="spaceDown()" onmouseup="spaceUp()">
<img id="hint-img" src="./images/basic_cases/right/F2L1.svg" alt="Image of F2L Case" loading="lazy" />
<div id="loading-case" class="loader display-none"></div>
<div id="div-press-me-tain-id" class="div-press-me-train">Press<br />me</div>
</div>
<!-- All atributes and methods can be found here: https://js.cubing.net/cubing/api/classes/twisty.TwistyPlayer.html#timestamp -->
<!-- Example parameters can be found here: https://experiments.cubing.net/cubing.js/twisty/twisty-player-config.html -->
<div class="div-twisty-player">
<twisty-player
puzzle="3x3x3"
experimental-setup-anchor="start"
hint-facelets="none"
back-view="none"
background="none"
experimental-stickering="full"
camera-latitude="25"
camera-longitude="25"
viewer-link="none"
camera-distance="5"
></twisty-player>
<img
src="./images/refresh.svg"
onmousedown="resetTwistyPlayerView()"
alt="Reset View"
class="btn-reset-player-view display-none"
loading="lazy"
/>
<div
id="div-press-me-twisty-id"
class="div-press-me-train"
onclick="(function() {hidePressMeTextTwisty(); nextScramble(1)})()"
>
Press<br />me
</div>
</div>
<div id="timer">00:00</div>
<div id="hint-container" onclick="showHintAlg()">
<div id="hint-placeholder">Press to show hint</div>
<div id="hint-alg"></div>
<!-- TwistyAlgViewer is inserted here -->
</div>
<div class="div-btn-change-state-alg">
<button type="button" class="btn-change-state-alg" onclick="showSetStateMenu()">Change State</button>
<button type="button" class="btn-change-state-alg" id="btn-change-alg-id" onclick="editCurrentAlg()">
Change Alg
</button>
</div>
<div id="training-active-cases-info" onclick="showSettingsTrain()" data-tooltip="Open Settings"></div>
<button id="btn-show-hide-debug-info" onclick="showHideDebugInfo()">> Hide details</button>
<div id="debug-info"></div>
<div id="recap-info"></div>
</div>
<!-- Scripts -->
<!-- Basic -->
<script src="./scripts/scrambles/basic_scrambles.js"></script>
<script src="./scripts/algorithms/basic_algorithms.js"></script>
<!-- Basic Back -->
<script src="./scripts/scrambles/basic_scrambles_back.js"></script>
<script src="./scripts/algorithms/basic_algorithms_back.js"></script>
<!-- Advanced -->
<script src="./scripts/scrambles/advanced_scrambles.js"></script>
<script src="./scripts/algorithms/advanced_algorithms.js"></script>
<!-- Expert -->
<script src="./scripts/scrambles/expert_scrambles.js"></script>
<script src="./scripts/algorithms/expert_algorithms.js"></script>
<!-- Other -->
<script src="./scripts/user_saved.js"></script>
<script src="./scripts/groups.js"></script>
<script src="./scripts/string_manipulation.js"></script>
<script src="./scripts/main.js" defer></script>
<script src="./scripts/left_case_loader.js" defer></script>
<script src="./scripts/clear_feedback_form.js" defer></script>
<script src="./scripts/train_case.js" defer></script>
<!-- cubing.js -->
<!-- <script src="https://cdn.cubing.net/js/cubing/twisty" type="module" defer></script> -->
<!-- <script type="module">
import { TwistyAlgViewer } from "https://cdn.cubing.net/js/cubing/twisty";
const ELEM_TWISTY_PLAYER = document.querySelector("twisty-player");
const ELEM_HINT_CONTAINER = document.getElementById("hint-container");
ELEM_HINT_CONTAINER.appendChild(new TwistyAlgViewer({ twistyPlayer: ELEM_TWISTY_PLAYER }));
</script> -->
<!-- web3forms (Feedback function) Required only if you are using hCaptcha or Advanced File Upload. -->
<!-- <script src="https://web3forms.com/client/script.js" async defer></script> -->
<!-- Google Tag Manager (noscript: only useful if user has no Javascript installed) -->
<!-- <noscript
><iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-P5XPQWK5"
height="0"
width="0"
style="display: none; visibility: hidden"
></iframe
></noscript> -->
<!-- End Google Tag Manager (noscript) -->
</body>
</html>