-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
139 lines (127 loc) · 5.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- include jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js">
</script>
<!-- include Bootstrap -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous">
</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- include custom CSS -->
<link rel="stylesheet" href="css/style.css">
<title>Sokoban</title>
</head>
<body>
<h4 class="header">sokoban</h4>
<div style="text-align: center;">❧</div>
<div id="soko"></div>
<div id="sokoscore"></div>
<!-- accordion panel -->
<div style="width: 350px; margin-left: auto; margin-right: auto; margin-top: 35px;">
<div style="text-align: center;">
[<a data-toggle="collapse" data-parent="#accordion"
href="#sokosequence" style="color: #000 !important;">show move sequence</a>]
[<a data-toggle="collapse" data-parent="#accordion"
href="#sokosequenceinput" style="color: #000 !important;">input move sequence</a>]
</div>
<div style="text-align: center;">
[<a data-toggle="collapse" data-parent="#accordion"
href="#sokolevelinput" style="color: #000 !important;">input level</a>]
[<a data-toggle="collapse" data-parent="#accordion"
href="#options" style="color: #000 !important;">controls</a>]
</div>
<div class="panel-group" id="accordion">
<!-- move sequence input -->
<div class="panel" style="background: rgba(0,0,0,0.0); border: 0px;">
<div id="sokosequence" class="panel-collapse collapse"></div>
</div>
<!-- move sequence input -->
<div class="panel" style="background: rgba(0,0,0,0.0); border: 0px;">
<div id="sokosequenceinput" class="panel-collapse collapse">
<form onsubmit="sequenceInput(document.getElementById('seqinput').value); return false;">
<textarea data-toggle="tooltip" data-placement="right"
title="example (case insensitive): uudrlurrrlld"
style="resize: vertical; height: 60px; width: 100%;" id="seqinput"></textarea>
<div style="float: right; margin-top: 3px;">
<input type="submit">
<input type="reset">
</div>
</form>
</div>
</div>
<!-- raw level input -->
<div class="panel" style="background: rgba(0,0,0,0.0); border: 0px;">
<div id="sokolevelinput" class="panel-collapse collapse">
<form onsubmit="levelInput(); return false;">
<textarea style="resize: vertical; height: 160px; width: 100%;" id="levelinput"></textarea>
<div style="float: right; margin-top: 3px;">
<input type="submit">
<input type="reset">
</div>
</form>
<div style="float: left; margin-top: 3px; font-size: 11px;">
[<a target="_blank" href="http://sokobano.de/wiki/index.php?title=Level_format">format info</a>]
<span id="sokolevelerror"></span>
</div>
</div>
</div>
<!-- help -->
<div class="panel" style="background: rgba(0,0,0,0.0); border: 0px;">
<div id="options" class="panel-collapse collapse" style="font-size: 12px;">
<table class="opts">
<tr>
<th class="ralign">action</th>
<th>key(s)</th>
</tr>
<tr>
<td class="ralign">fixed movement</td>
<td>arrow keys</td>
</tr>
<tr>
<td class="ralign">continuous movement</td>
<td>w, a, s, d</td>
</tr>
<tr>
<td class="ralign">toggle continuous movement behavior</td>
<td>q</td>
</tr>
<tr>
<td class="ralign">undo previous action</td>
<td>z</td>
</tr>
<tr>
<td class="ralign">reset level</td>
<td>r</td>
</tr>
<tr>
<td class="ralign">previous/next level</td>
<td>, and .</td>
</tr>
<tr>
<td class="ralign">save position (overwrites previously saved position)</td>
<td>v</td>
</tr>
<tr>
<td class="ralign">load saved position (overwrites current position)</td>
<td>b</td>
</tr>
<tr>
<td class="ralign">move to square</td>
<td>mouse click</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<script src="levels/original.js"></script>
<script src="js/sokoban.js"></script>
<script src="js/sokosolver.js"></script>
<script src="js/main.js"></script>
</body>
</html>