-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathmobile.html
230 lines (184 loc) · 9.69 KB
/
mobile.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
<!DOCTYPE html>
<html>
<head>
<title>Alg Trainer Mobile (beta)</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="mobile.css">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
</head>
<body>
<div id="loader"></div>
<div id="left_popup">
<div class=column_left>
<select id="algsetpicker" 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 <br>
<input id="goInOrder" type="checkbox">Go in order<br>
<input id="goToNextCase" type="checkbox">Don't show alg after stopping timer <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>
<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>
</div>
</div>
<div id="right_popup">
<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>
</div>
</div>
</div>
<div style="display:none;" id="page" class="animate-bottom">
<div id="flexbox">
<div class="sidebar_buttons">
<button id="left_popup_button" class="sidebar_button">Settings</button>
<p></p>
<button id="right_popup_button" class="sidebar_button">Times</button>
</div>
<div class="on_screen_controls">
<button id="onscreenLeft" class="big_button arrow_button"><</button>
<button class="big_button flex-item" onclick="displayAlgorithmForPreviousTest()">Solution</button>
<button class="big_button flex-item" onclick="nextScramble()">Next</button>
<button id="onscreenRight" class="big_button arrow_button">></button>
</div>
<p id="scramble" class=scramble>Scramble</p>
<hr>
<div id="touchStartArea">
<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>
</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>