forked from tao-yu/Alg-Trainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
1LLL.html
194 lines (148 loc) · 8.93 KB
/
1LLL.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
<!DOCTYPE html>
<html>
<head>
<title>Full 1LLL Trainer</title>
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="loader"></div>
<div style="display:none;" id="page" class="animate-bottom">
<p id="scramble" class=scramble>Scramble</p>
<hr>
<div class=column_left>
<select id="algsetpicker" size=18 class=algsetpicker>
</select>
<div id="cboxes"></div>
<br>Leave all checkboxes unchecked to test on the full algset.
<br>
<h2>Settings</h2>
<form action="javascript:void(0);">
<input id="useVirtual" type="checkbox">Use Virtual Cube<br>
<input id="hideTimer" type="checkbox">Hide timer<br>
<input id="showScramble" type="checkbox">Show Scramble<br>
<input id="realScrambles" type="checkbox">Use Real Scrambles<br>
<input id="randAUF" type="checkbox">Random AUF<br>
<input id="prescramble" type="checkbox" checked="true">Scramble subsequent steps (requires real scrambles to be checked)<br>
<input id="goInOrder" type="checkbox">Go in order<br>
<input id="goToNextCase" type="checkbox">Don't show alg after stopping timer (press the left arrow key to view previous case)<br>
<input id="mirrorAllAlgs" type="checkbox">Mirror all algs across the M slice<br>
Virtual cube size: <select id="cubeType">
<option value="3x3" default>3x3</option>
<option value="2x2">2x2</option>
</select><br><br>
<button id="connectGiiker">Connect Giiker Cube</button><br>
When a giiker cube is connected, all moves made on the giiker will be reflected on the virtual cube. The giiker cube should be held with white on top and green in front.
<br><br>
<input id="userDefined" type="checkbox">Use user defined algset<br>
<textarea id="userDefinedAlgs" cols=50 rows=50 style="display:none" onfocus="listener.stop_listening();" onblur="listener.listen();" placeholder="Place one alg per line"></textarea>
<br><br>
Preorientation: <br>
<input id="fullCN" type="checkbox"> Full colour neutrality<br>
or<br>
Starting from WCA orientation: <br>
First do one
<input type="text" id="colourneutrality1" value="" onfocus="listener.stop_listening();" onblur="listener.listen();" size="1">
rotation<br>
then do a random number of
<input type="text" id="colourneutrality2" value="" onfocus="listener.stop_listening();" onblur="listener.listen();" size="1">
rotations, <br>
and finally do a random number of
<input type="text" id="colourneutrality3" value="" onfocus="listener.stop_listening();" onblur="listener.listen();" size="1">
rotations.<br>
<br><br><br>
<input id="useCustomColourScheme" type="checkbox"><label for="useCustomColourScheme"> Use custom colour scheme:</label><br>
Enter colour names, or RGB values as #RRGGBB.<br>
<table>
<tr>
<td><label for="customColourU">U:</label></td>
<td><input type="text" id="customColourU" value="" onfocus="listener.stop_listening();" onblur="listener.listen();" size="8"> </td>
</tr>
<tr>
<td><label for="customColourD">D:</label></td>
<td><input type="text" id="customColourD" value="" onfocus="listener.stop_listening();" onblur="listener.listen();" size="8"> </td>
</tr>
<tr>
<td><label for="customColourF">F:</label></td>
<td><input type="text" id="customColourF" value="" onfocus="listener.stop_listening();" onblur="listener.listen();" size="8"> </td>
</tr>
<tr>
<td><label for="customColourB">B:</label></td>
<td><input type="text" id="customColourB" value="" onfocus="listener.stop_listening();" onblur="listener.listen();" size="8"> </td>
</tr>
<tr>
<td><label for="customColourR">R:</label></td>
<td><input type="text" id="customColourR" value="" onfocus="listener.stop_listening();" onblur="listener.listen();" size="8"> </td>
</tr>
<tr>
<td><label for="customColourL">L:</label></td>
<td><input type="text" id="customColourL" value="" onfocus="listener.stop_listening();" onblur="listener.listen();" size="8"> </td>
</tr>
</table>
<button id="resetCustomColourScheme" type="button">Reset</button>
</form>
<h2>Algorithm Credits</h2>
Algorithms kindly provided by Jack Love:
<br>
<a href="https://drive.google.com/file/d/1TkCEyg4TJRM_4KJv1lPDctvSiSAtUNMm/view">Spreadsheet</a>
<br>
<a href="https://drive.google.com/file/d/1-kf9bSQwUEMFOkyuCuLZj9XNQLzkuk_L/view">pdf</a>
<br><br>
</div>
<div class=column_middle>
<div id="simcube">
<canvas id="cube" width="250" height="300" ></canvas>
</div>
<div id="timer_div">
<p id="timer">0.00</p>
</div>
<div id="algdisplayer">
<p id="algdisp" class=algdisp>Solution</p>
</div>
<div id="controls">
<button onclick="nextScramble()">Next Scramble</button>
<button onclick="displayAlgorithmForPreviousTest()">Show Solution</button>
</div>
</div>
<div class=column_right>
<img src="https://www.cubing.net/api/visualcube/?fmt=svg&size=300&view=plan&bg=black&alg=x2" id="visualcube"/>
<div style="overflow-y: scroll; height:150px;">
<p id="timeList" style="text-align: left"> </p>
</div>
<p id="statistics"> </p>
<div style="text-align: left">
<button id="deleteLast">Delete last solve</button>
<button id="clearTimes">Clear all</button>
<br><br>
<table id="algsetStatistics">
</table>
<h2>Instructions</h2>
<b>Enter/Tab/Space</b>: New scramble.<br>
<b>Space</b>: Stop timer and show algorithm.<br>
<b>Left and right arrow keys</b>: View previously tested algs. <br>
<b>Backspace</b>: Show algorithm without starting timer.
<h3>Virtual cube controls</h3>
Space: Stop timer, show algorithm and reset case.<br>
Timer will automatically stop if the cube is solved.<br>
Esc: Reset case without showing algorithm.<br>
Keyboard Controls: See <a href="controls.html">here</a>.
<br><br>
<a href="https://discord.gg/K7tpCJs">Join my Discord server!</a>
<br><br>
Please report bugs by filing an issue <a href="https://github.com/tao-yu/Alg-Trainer/issues">here</a>, or by messaging me on discord, Speedsolving.com or Reddit.
<br><br>
Note: Some adblockers (ublock origin, for example) may cause this site to stop working. If you are experiencing problems, try whitelisting this site on your adblocker. I will look into why this is happening.
</div>
</div>
</div>
<script src="js/giiker.js"></script>
<script src="js/cube.js"></script>
<script src="js/solve.js"></script>
<script src="js/alg_jison.js"></script>
<script src="js/alg.js"></script>
<script src="js/controls.js"></script>
<script src="js/oneLookLastLayer.js"></script>
<script src="js/RubiksCube.js"></script>
</body>
</html>