-
Notifications
You must be signed in to change notification settings - Fork 30
/
index.html
223 lines (171 loc) · 11.4 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
<!DOCTYPE html>
<html>
<head>
<title>Alg 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 across <span style="font-family: Consolas, monospace;">M</span> <input id="randomizeMMirror" type="checkbox">Randomize<br>
<input id="mirrorAllAlgsAcrossS" type="checkbox">Mirror across <span style="font-family: Consolas, monospace;">S</span> <input id="randomizeSMirror" type="checkbox">Randomize<br>
<input id="autoCorrectRotation" type="checkbox">Auto-fix algorithm rotation<br>
Line style <select id="lines">
<option value="none"> None </option>
<option selected value="thin-black"> Thin black </option>
<option value="thick-black"> Thick black </option>
<option value="thin-gray"> Thin gray </option>
<option value="thick-gray"> Thick gray </option>
</select> <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>
This feature works with the Giiker Cube i3S and i3SE versions. Rubik's Connect, Gan i and GoCube smart cubes will not work with this site.<br><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 <button id="addSelected">Add currently selected algs</button><br>
<textarea id="userDefinedAlgs" cols=50 rows=50 style="display:none" onfocus="listener.stop_listening();" onblur="listener.listen();" placeholder="Place one alg per line. Lines starting with # will be ignored"></textarea>
<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>
<a href="scramblingNote.html">Note on preorientation settings</a>
<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>
For all of the algs in this trainer in spreadsheet form, <a href="https://drive.google.com/drive/folders/1bK3wUbRcqYZX8IGkp7Lk0V8HLk-KSK6N">click here</a>
<br><br>
ZBLL Algorithms from Jabari Nuruddin's <a href ="https://drive.google.com/file/d/0B5wWQGM9R38gMG9SSi1Jc1VHdk0/view?usp=sharing">PDF</a>
<br>
ZBLS Algorithms from Chad Battens <a href="https://docs.google.com/spreadsheets/d/1s8Q2VM2c1eV3oLIxFfM4exvABO0AcCeMCUdMiYKnzC0/edit#gid=0">Spreadsheet</a> with additional algs added and generated by me.
<br>
Ribbon Algorithms by Justin Taylor: <a href="https://drive.google.com/file/d/15pjMnEGbF3hkn_YBq2ZeNxIF3GajyoiU/view">TOLS</a>, <a href="https://drive.google.com/file/d/148i4z9K--45G_-RH0f5ayC5Za8cPMyy5/view">TTLL</a>
<br>
One Look Wednesdays: Daniel Rose-Levine's <a href="https://www.youtube.com/watch?v=F7X8qLCBvUQ">Youtube series</a>
<br>
Other algorithms from <a href="http://algdb.net/">algdb</a> unless stated otherwise.
<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>
<div id="visual-cube-container">
<img src="https://www.cubing.net/api/visualcube/?fmt=svg&size=300&view=plan&bg=black&alg=x2" id="visualcube" title="Click to switch between flat and 3D view"/>
</div>
<p style="font-size: small;">Click the above cube to switch between flat, 3D view and hidden</p>
<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>
<h4> View/Edit Keyboard Controls <a href="controls.html">here</a>. </h4>
<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>
This project is open source! Feel free to view and modify the source code at <a href="https://github.com/tao-yu/Alg-Trainer">the Github repository</a> subject to the MIT licence. Pull requests are welcomed, though it may be wise to message me about any changes you wish to make before sending such requests.
<br><br>
<a href="1LLL.html">Full 1LLL trainer</a>
</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/alg_list.js"></script>
<script src="js/keymaps.js"></script>
<script src="js/RubiksCube.js"></script>
</body>
</html>