-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
247 lines (229 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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="theme-color" content="rgb(23, 23, 23)">
<title>Rubik's Cube Timer</title>
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> -->
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/dark.css">
<link rel="stylesheet" href="/css/highContrastDark.css">
<link rel="stylesheet" href="/css/light.css">
<link rel="stylesheet" href="/css/highContrastLight.css">
<script src="/js/variables.js" defer></script>
<script src="/js/functions/functions.js" defer></script>
<script src="/js/functions/timer.js" defer></script>
<script src="/js/eventListener/keyEvents/enter.js" defer></script>
<script src="/js/eventListener/keyEvents/softleft.js" defer></script>
<script src="/js/eventListener/keyEvents/softright.js" defer></script>
<script src="/js/eventListener/keyEvents/key.js" defer></script>
<script src="/js/eventListener/keyEvents/navigate.js" defer></script>
<script src="/js/eventListener/other events/eventListeners.js" defer></script>
<script src="/js/script.js" defer></script>
<script src="localforage.min.js"></script>
<script src="/js/kaiads.v5.min.js"></script>
</head>
<body onload="getScramble(); getStoredData(); letItSnow();" class="dark">
<canvas id="snow-canvas"></canvas>
<div id="loadScreen"
style="height: 100%; width: 100%; display: block; background-color: white; position: fixed; top: 0; left: 0; z-index: 1000000; text-align: center;">
<img src="/img/logo.png" style="height: 40px; width: 120px; margin: 20px 20px 0px 20px">
<img src="/img/icon.png" alt="App Logo" style="height: 170px; width: 170px;">
<br>
<progress id="progress" value="0" style="margin: 0px 0px 60px 10px"></progress>
</div>
<div id="wholeSite">
<!-- <div class="ad" id='ad-container1'></div> -->
<!-- <div class="ad adtop">Ad here</div>
<div class="ad adbottom">Ad here</div> -->
<div class='scramble dark'>
<p style="font-size: 15px; margin: 0px 0 -10px 0;"><span id="sessionname">Session 1</span> - <span
id="puzzleTypename">3x3</span>
</p>
<p tabindex="1" style="margin-bottom: 2px;" class="dark" id="scramble">scramble...</p>
</div>
<span id="timerBox" title="" data-average="Ao5: -
Ao12: -">
<p id="hours" style="display: none;">0</p>
<p class="seperation" style="display: none;">:</p>
<p id="minutes" style="display: none;">0</p>
<p class="seperation" style="display: none;">:</p>
<p id="seconds">0</p>
<p class="seperation">.</p>
<p id="milliseconds">0</p>
</span>
<!-- <div id="timerBox">
<span id="timer">
<h1 id="minutes"></h1>
<h1 class="point"></h1>
<h1 id="tenseconds"></h1>
<h1 id="seconds">0</h1>
<h1 class="point">.</h1>
<h1 id="first">0</h1>
</span>
<span id="averages">
<p id="ao5">Ao5: -</p>
<p id="ao12">Ao12: -</p>
</span>
</div> -->
<input id="comment" placeholder="Comment">
</div>
<div id="editTime" class="dark">
<div id="editInfos">
<div tabindex="1" id="editTimeTime" class="editTimeItems ">Time: undefined</div>
<div tabindex="1" class="editTimeItems" style="display: flex; justify-content: space-between;" id="editTimeStatus">
<label tabindex="1" for="statusChange">Status:</label>
<select id="statusChange" name="statusChange" tabindex="1">
<option value="OK">OK</option>
<option value="DNF">DNF</option>
<option value="+2">+2</option>
</select>
</div>
<div tabindex="1" id="editTimeScramble" class="editTimeItems ">Scramble: undefined</div>
<div>
<label for="comment">Comment:</label>
<input tabindex="1" type="text" name="comment" class="editTimeItems" id="editTimeComment" value="lololol">
</div>
</div>
</div>
<div id="session" class="dark">
<div style="position: relative;top: 5px; display: flex; justify-content: center;">
<div>
<button id="dropDownButton" onclick="openDropdown()" class="dropdown-item dark"><span
id="sessionnameatbutton">Session 1</span><i class="material-icons" id="expandArrow"
style="float: right; position: absolute; right: -2px; top: 1px">
expand_more
</i></button>
<div id="myDropdown" class="dropdown-content dark">
<input id="newsessioninput" class="dropdown-item dark" placeholder="Add session">
</div>
</div>
<button id="resetSession" class="dark"><span style="font-size: 20px;" class="material-icons">
restart_alt
</span></button>
</div>
<table id="ao">
<tr>
<th class="dark"></th>
<th class="dark">Current</th>
<th class="dark">Best</th>
</tr>
<!-- <tr>
<td class="dark">Single</td>
<td class="dark" id="singlecurrent">-</td>
<td class="dark" id="singlebest">-</td>
</tr> -->
<tr>
<td class="dark">Ao5</td>
<td class="dark" id="ao5current">-</td>
<td class="dark" id="ao5best">-</td>
</tr>
<tr>
<td class="dark">Ao12</td>
<td class="dark" id="ao12current">-</td>
<td class="dark" id="ao12best">-</td>
</tr>
</table>
<table id="timestable"></table>
<div class="ad" id='ad-container2'></div>
</div>
<div id="settings" class="dark">
<h1 style="border-bottom: 2px #888 solid;">Settings</h1>
<input class="setting dark show" tabindex="0" type="text" id="search" placeholder="Search">
<div tabindex='1' data-help="What type of puzzle you want a scramble for." class="setting nos show dark" id="puzzleTypeDiv">
<label for="puzzleType">Puzzle Type:</label>
<select name="puzzleType" id="puzzleType">
<option value="3x3">3x3x3</option>
<option value="2x2">2x2x2</option>
<option value="4x4">4x4x4</option>
<option value="5x5">5x5x5</option>
<option value="6x6">6x6x6</option>
<option value="7x7">7x7x7</option>
</select>
</div>
<div tabindex='1' class=" divider show">
<div class="title">Style</div>
<div class="line"></div>
<!-- <span class="material-icons" id="style">
expand_less
</span> -->
</div>
<div tabindex='1' data-help="Customize the font of the timer." class="setting nos show dark style" id="timerFontDiv">
<label for="timerFont">Timer Font:</label>
<select name="timerFont" id="timerFont">
<option value="Arial">Arial</option>
<option value="Orbitron">Orbitron</option>
<option value="Digital7" selected>Digital 7</option>
</select>
</div>
<div tabindex='1' data-help="Customize the font size of the timer." class="setting nos show dark style" id="timerSizeDiv">
<label for="timerSize">Timer Size:</label>
<input type="number" min="10" max="35" name="timerSize" id="timerSize" value="30">
</div>
<div tabindex='1' data-help="Customize the font size of the scramble. Auto: Automaitcally setes the font size to make the scrabmel fit" class="setting nos show dark style" id="scrambleSizeDiv">
<label for="scrambleSize">Scramble Size:</label>
<select name="scrambleSize" id="scrambleSize">
<option value="auto">Auto</option>
<option value="user-defined">User Defined</option>
</select>
</div>
<div tabindex='1' data-help="Customize the font size of the scramble" class="setting hide dark style" id="scrambleSizeInputDiv">
<label for="scrambleSizeInput">Size:</label>
<input type="number" min="10" max="25" name="scrambleSizeInput" id="scrambleSizeInput" value="16"
class="dark">
</div>
<div tabindex='1' data-help="Dark/Light mode" class="setting nos show dark style" id="darkModeDiv">
<label>Dark Mode</label>
<label class="switch">
<input type="checkbox" id="darkMode" checked>
<span class="slider"></span>
</label>
</div>
<div tabindex='1' data-help="High Contrast Dark/Light mode" class="setting nos show dark style" id="highContrastModeDiv">
<label>High Contrast</label>
<label class="switch">
<input type="checkbox" id="highContrastMode">
<span class="slider"></span>
</label>
</div>
<div tabindex='1' class="divider show">
<div class="title">Season</div>
<div class="line"></div>
<!-- <span class="material-icons" id="style">
expand_less
</span> -->
</div>
<div tabindex='1' data-help="Add snow when its winter season" class="setting nos show dark season" id="addPartDiv">
<label>Add Particles</label>
<label class="switch">
<input type="checkbox" id="addPart" checked>
<span class="slider"></span>
</label>
</div>
<!-- <input class="setting now show " type="file" name="importTime" id="importTime"> -->
<div id="credits">
<h2>Credits</h2>
Scramble Generator: <a class="setting show" href="https://codepen.io/ET23/pen/ExdrNz"
target="_blank">https://codepen.io/ET23/pen/ExdrNz</a>
<!-- <br>
Snow Flakes: <a href="https://codepen.io/ns_bob/pen/BoMqqR">https://codepen.io/ns_bob/pen/BoMqqR</a> -->
</div>
</div>
<div class="kui-toast">
<p class="kui-pri"></p>
</div>
<div id="options" class="dark">
<button class="option-button dark" id="delete">Delete</button>
<button class="option-button dark" id="rename">Rename</button>
</div>
<button id="showAd1" style="position: absolute; opacity: 0;"></button>
<button id="showAd2" style="position: absolute; opacity: 0;"></button>
<footer id="softkeys" class="dark" style="opacity: 0;">
<div id="softLeft">
<span class="material-icons"
style="font-size: 21px; position: relative; top: 2.5px; left: 2px">settings</span>
</div>
<div id="softMiddle">Session</div>
<div id="softRight"><span class="material-icons"
style="font-size: 21px; color: red;position: relative; top: 2.5px; right: 2px">logout</span></div>
</footer>
</body>
</html>