-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
169 lines (140 loc) · 4.77 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
<html>
<head>
<title>3BLD parity scrambler</title>
<style>
html { font-family: Sans-Serif }
button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
select {
overflow-y: auto;
}
#amount {
width:50px;
}
#timer {
font-family: Arial;
font-size: 30px;
color: white;
}
#statistics {
font-size: 20px;
}
p.scramble {
vertical-align: middle;
text-align: center;
}
p.algdisp {
}
.column_left {
float: left;
width: 30%;
}
.column_middle {
text-align: center;
float: left;
width: 40%;
}
.column_right {
text-align: center;
float: left;
width: 30%;
}
.algsetpicker{
width:70%;
}
a:link {
color: cornflowerblue
}
a:visited {
color: darkslateblue
}
#loader {
position: absolute;
left: 50%;
top: 50%;
z-index: 1;
width: 150px;
height: 150px;
margin: -75px 0 0 -75px;
border: 16px solid #f3f3f3;
border-radius: 50%;
border-top: 16px solid yellow;
border-right: 16px solid orange;
border-bottom: 16px solid green;
border-left: 16px solid red;
width: 120px;
height: 120px;
-webkit-animation: spin 2s linear infinite;
animation: spin 2s linear infinite;
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Add animation to "page content" */
.animate-bottom {
position: relative;
-webkit-animation-name: animatebottom;
-webkit-animation-duration: 1s;
animation-name: animatebottom;
animation-duration: 1s
}
@-webkit-keyframes animatebottom {
from { bottom:-100px; opacity:0 }
to { bottom:0px; opacity:1 }
}
@keyframes animatebottom {
from{ bottom:-100px; opacity:0 }
to{ bottom:0; opacity:1 }
}
#page {
display: none;
}
</style>
</head>
<body>
<div id="loader"></div>
<div style="display:none;" id="page" class="animate-bottom">
Number of Scrambles:
<input type="number" id="amount" step="10" onchange="myStorage.setItem('amount', this.value);" min="1">
<br><br>
<select id="mode" size=5>
<option value="forceParity" selected="selected">Force Parity</option>
<option value="indicate">Indicate Parity</option>
<option value="forceNoParity">Force No Parity</option>
<option value="cornersOnlyUFUR">Corners Only, UF-UR swap</option>
<option value="edgesOnlyUFRUBR">Edges Only UFR-UBR swap</option>
</select>
<br><br>
<button onclick="displayScrambles()" id="generate">Generate</button>
<br><br>
<textarea id="scrambles" cols=80 rows="20" onclick="selectScrambles()" readonly="readonly"></textarea>
<script src="js/alg_jison.js"></script>
<script src="js/alg.js"></script>
<script src="js/cube.js"></script>
<script src="js/solve.js"></script>
<script src="js/rubiks_cube.js"></script>
<script src="js/scramble_333_edit.js"></script>
<script src="js/parity_scrambler.js"></script>
<h2>How to import scrambles into cstimer</h2>
<ol>
<li>Go to <a href="https://www.cstimer.net/">https://www.cstimer.net/</a></li>
<li>Press alt+i</li>
<li>Paste in the scrambles</li>
<li>Press OK</li>
</ol>
</div>
</body>
</html>