-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
106 lines (97 loc) · 5.83 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
<!DOCTYPE html>
<html>
<head>
<meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
<title>Cross To F2L</title>
<link id="pagestyle" href="css/style.css" rel="stylesheet" type="text/css">
<link rel="manifest" href="manifest.json">
<meta name="application-name" content="C2F2L">
<link rel="icon" type="image/png" href="favicon.png">
<meta name="viewport" content="user-scalable=no, width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
</head>
<body onLoad="NewScramble();">
<div class="icon" onclick="loadSettings();">
<svg viewBox="0 0 60 55" width="50" height="50">
<use xlink:href="#settings-icon"></use>
</svg>
</div>
<h1 class="title">Cross To F2L</h1>
<h2 class="ritle">A tool to practice cross and transition to F2L</h2>
<span class="custom-dropdown">
<select ID="Level" onchange="this.blur();">
<option VALUE="1">Level 1 – Cross requires 1 move to solve </option>
<option VALUE="2">Level 2 – Cross requires 2 moves to solve </option>
<option VALUE="3">Level 3 – Cross requires 3 moves to solve </option>
<option VALUE="4">Level 4 – Cross requires 4 moves to solve </option>
<option VALUE="5">Level 5 – Cross requires 5 moves to solve </option>
<option VALUE="6">Level 6 – Cross requires 6 moves to solve </option>
<option VALUE="7">Level 7 – Cross requires 7 moves to solve </option>
<option VALUE="8">Level 8 – Cross requires 8 moves to solve </option>
</select>
</span>
<div class="wrap">
<a href="#" class="button" onClick="NewScramble();">Get Scramble</a>
</div>
<div class="outder">
<div class="scramble" ID="Output" STYLE="font-family:Helvetica, Arial; font-size:30pt"></div>
</div>
<div id="settings" class="settings" style="display: none;">
<section class="settingsWindow">
<h3>Logo Color:</h3>
<div aria-label="logo color" class="input-color-container">
<input name="--logo-color" value="#6b596d" class="input-color" type="color" onchange="themeChange(this)">
</div>
<div class="break"></div>
<!-- break -->
<h3>Background Color:</h3>
<div aria-label="background Color" class="input-color-container">
<input name="--bg-color" value="#ecf0f1" class="input-color" type="color" onchange="themeChange(this)">
</div>
<div class="break"></div>
<!-- break -->
<h3>Accent Color:</h3>
<div aria-label="accent color" class="input-color-container">
<input name="--accent-color" value="#AA6DA3" class="input-color" type="color" onchange="themeChange(this)">
</div>
</section>
</div>
<div id="cardContainer"></div>
<svg style="display: none;">
<symbol id="settings-icon" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
<path d="M509.931,223.915c-3.349-25.835-30.251-43.52-56-33.877c-9.643,3.648-21.248-1.771-25.6-11.499
c-5.205-11.605-11.584-22.72-19.008-33.045c-6.613-9.195-5.355-21.227,2.859-28.011c9.813-8.064,15.296-19.989,15.04-32.683
c-0.256-12.907-6.336-24.789-16.683-32.64c-17.024-12.885-35.584-23.616-55.189-31.872c-5.291-2.219-10.837-3.349-16.491-3.349
c-20.437,0-37.675,14.528-41.003,34.539c-1.749,10.517-11.712,17.664-22.933,16.448c-12.459-1.323-25.429-1.323-37.867,0
c-11.179,1.216-21.184-5.931-22.933-16.448c-3.328-20.011-20.565-34.539-41.003-34.539c-5.653,0-11.2,1.131-16.469,3.349
c-19.627,8.256-38.187,18.965-55.211,31.872c-10.325,7.851-16.405,19.733-16.661,32.619c-0.256,12.715,5.227,24.619,15.04,32.725
c8.235,6.763,9.451,18.795,2.859,27.968c-7.424,10.325-13.824,21.44-19.029,33.045c-4.352,9.728-15.104,15.445-25.835,11.413
c-4.693-1.749-9.579-2.645-14.528-2.645c-20.821,0-38.528,15.744-41.237,36.629C0.704,234.496,0,245.312,0,256
c0,10.688,0.704,21.504,2.069,32.085c3.328,25.813,30.208,43.499,56,33.877c9.621-3.648,21.248,1.771,25.6,11.499
c5.205,11.605,11.584,22.72,19.008,33.045c6.613,9.195,5.355,21.227-2.859,28.011c-9.813,8.064-15.296,19.989-15.04,32.683
c0.256,12.907,6.336,24.789,16.683,32.64c17.024,12.885,35.584,23.616,55.189,31.872c5.291,2.219,10.837,3.349,16.491,3.349
c20.437,0,37.675-14.528,41.003-34.539c1.749-10.517,11.733-17.557,22.933-16.448c12.437,1.323,25.408,1.323,37.867,0
c11.221-1.131,21.184,5.931,22.933,16.448c3.328,20.011,20.565,34.517,41.003,34.539c5.653,0,11.2-1.131,16.469-3.349
c19.605-8.256,38.187-18.965,55.189-31.872c10.325-7.851,16.427-19.733,16.683-32.619c0.256-12.715-5.227-24.619-15.04-32.725
c-8.235-6.763-9.451-18.795-2.859-27.968c7.424-10.325,13.824-21.44,19.029-33.045c4.352-9.749,15.125-15.445,25.835-11.413
c4.693,1.771,9.579,2.667,14.528,2.667c20.821,0,38.528-15.744,41.237-36.629C511.296,277.397,512,266.624,512,256
C512,245.376,511.296,234.603,509.931,223.915z M256,341.333c-47.061,0-85.333-38.272-85.333-85.333s38.272-85.333,85.333-85.333
s85.333,38.272,85.333,85.333S303.061,341.333,256,341.333z" />
</symbol>
</svg>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script TYPE="text/javascript" SRC="js.js"></script>
<script TYPE="text/javascript" SRC="Scrambles.js"></script>
<script src="ThemeSwitcher.js"></script>
</body>
<script>
if ('serviceWorker' in navigator) {
console.log("Will the service worker register?");
navigator.serviceWorker.register('service-worker.js')
.then(function(reg) {
console.log("Yes, it did.");
}).catch(function(err) {
console.log("No it didn't. This happened: ", err)
});
}
</script>
</html>