-
Notifications
You must be signed in to change notification settings - Fork 0
/
hoh-lightsoutsolver.html
86 lines (81 loc) · 2.34 KB
/
hoh-lightsoutsolver.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
<!DOCTYPE html>
<html>
<head>
<script src="js/lightsout.js"></script>
<script src="js/lightsout_puzzle.js"></script>>
<script src="js/hohtools_shortcuts.js"></script>
<style type="text/css">
th:not(.useless), td {
border: 1px grey solid;
}
th.useless {
border-top: 0px solid #FFFFFF;
border-left: 0px solid #FFFFFF;
}
table {
border-collapse: collapse;
}
.row-title[title] {
text-decoration: underline;
text-decoration-style: dotted;
}
#source-code, #tip {
font-size: 75%;
}
.light {
font-weight: lighter;
font-style: italic;
}
.main-title {
display: inline;
}
p.main-title {
font-size: 85%;
}
#solution_info {
text-align: center;
}
input[type=checkbox]
{
/* Double-sized Checkboxes */
-ms-transform: scale(2); /* IE */
-moz-transform: scale(2); /* FF */
-webkit-transform: scale(2); /* Safari and Chrome */
-o-transform: scale(2); /* Opera */
transform: scale(2);
margin: 10px;
}
input[type=checkbox].solution_tile
{
opacity: .75;
filter: alpha(opacity=75); /* IE<9 */
cursor: not-allowed;
}
</style>
</head>
<body>
<h3 class="main-title">Heroes of Hammerwatch - Lights Out Solver</h3> <p class="main-title light">(See also : <a href="hohtools.html">More Tools</a> @ <span class="light">Double-Esc</span>)</p>
<p>
<label><input type="radio" id="s3" name="size" value="3" checked="checked">3x3</label>
<label><input type="radio" id="s5" name="size" value="5">5x5</label>
<button onclick="resetBoard();">Reset (Alt+R)</button>
<button onclick="randomBoard();">Random</button>
</p>
<table>
<tr>
<th>Puzzle</th>
<th>Solution</th>
</tr>
<tr>
<td><div id="board"></div></td>
<td><div id="board_solution"></div></td>
</tr>
</table>
<p id="tip">
You may want to use the <span class="light">Tab</span>, <span class="light">Space Bar/Enter</span> and <span class="light">Arrow</span>/<span class="light">WASD</span> keys to navigate and use this page.
</p>
<p id="source-code">
See <a href="https://github.com/TheMadSword/themadsword.github.io">here</a> for source code. Last update for B104.
</p>
</body>
</html>