-
Notifications
You must be signed in to change notification settings - Fork 1
/
suguru.html
60 lines (60 loc) · 2.89 KB
/
suguru.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
<!DOCTYPE html>
<html>
<head>
<title>Suguru</title>
<meta charset="UTF-8">
<script type="text/javascript" src="diff1.js"></script>
<script type="text/javascript" src="diff2.js"></script>
<script type="text/javascript" src="diff3.js"></script>
<script type="text/javascript" src="diff4.js"></script>
<script type="text/javascript" src="diff5.js"></script>
<script type="text/javascript" src="diff6.js"></script>
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript" src="suguru.js"></script>
<script type="text/javascript" src="algorithm.js"></script>
<script type="text/javascript" src="cookies.js"></script>
<script type="text/javascript" src="themeswitch.js"></script>
<link id="theme" type="text/css" rel="stylesheet" href="suguru.light.css" />
</head>
<body onload="restoreTheme(); onLoad(); resetLevel();" onkeydown="checkShiftDown(event)" onkeyup="checkShiftUp(event)">
<div id="container">
<table id="controls"><tbody>
<tr>
<td style="display:flex;justify-content:space-between;">
<form id="levelForm" onsubmit="loadLevelUI(); return false;">
Select: <select id="difficulty">
<option value="1">Beginner</option>
<option value="2">Easy</option>
<option value="3">Medium</option>
<option value="4">Hard</option>
<option value="5">Very hard</option>
<option value="6">Bruh</option>
</select>
<input type="number" id="levelNumber" min="1" max="1000" style="width: 5.1em" value="1">
<button type="submit" id="loadButton">Load level</button>
<button type="button" id="resetButton" onclick="resetLevel()">Reset level</button>
<button type="button" id="nextButton" onclick="nextLevel()">Next level</button>
</form>
</td>
<td><label><input type="radio" name="theme" value="light" onchange="switchTheme(this)" selected> Light</label></td>
</tr>
<tr><td style="display:flex;justify-content:space-between;">
<button type="button" id="autoButton" onclick="solve(500, -1)">Auto Solve Level</button>
<button type="button" id="autoAllButton" onclick="solve(500, 2000)">Auto Solve All</button>
<button type="button" id="rapidAutoButton" onclick="rapidSolve()" onmouseover="rapidSolveOver(this)" onmouseout="rapidSolveOut(this)">Rapid Auto Solve</button>
<button type="button" id="stopButton" onclick="stop()" disabled>Cancel Auto Solve</button>
</td><td>
<label><input type="radio" name="theme" value="dark" onchange="switchTheme(this)"> Dark</label>
</td></tr>
<tr><td>
<span id="wintext" style="display:none;">Puzzle solved!</span>
<span id="autofail" style="display:none;">Unable to Auto Solve<span id="autoerror" style="display:none;">: error occured</span></span>
<span id="autosolved" style="display:none;">Auto Solve complete</span>
</td></tr>
</tbody></table>
<p></p>
<table id="suguru"></table>
</div>
</body>
</html>