forked from kennytm/pndopt
-
Notifications
You must be signed in to change notification settings - Fork 9
/
large.html
349 lines (336 loc) · 16 KB
/
large.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=680, user-scalable=yes">
<meta name="description" content="Puzzle & Dragons board optimizer.">
<meta name="language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>padopt</title>
<script src="ext/jquery-1.9.1.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/basic.css">
<link rel="stylesheet" type="text/css" href="css/throbber.css">
<link rel="stylesheet" type="text/css" href="css/border-flash.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-slider.min.css">
<link rel="stylesheet" type="text/css" href="css/perfect-scrollbar.min.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<link rel="icon" type="image/png" href="favicon.png">
</head>
<body>
<script type="text/javascript">
var ROWS = 6; var COLS = 7;
</script>
<div id="contentHolder">
<!-- PAD CANVAS -->
<canvas id="path" width="444" height="380"></canvas>
<div id="grid7x6" oncontextmenu="return false;">
<div id="o00" class="row1"></div>
<div id="o01" class="row1"></div>
<div id="o02" class="row1"></div>
<div id="o03" class="row1"></div>
<div id="o04" class="row1"></div>
<div id="o05" class="row1"></div>
<div id="o06" class="row1"></div>
<div id="o10" class="row2"></div>
<div id="o11" class="row2"></div>
<div id="o12" class="row2"></div>
<div id="o13" class="row2"></div>
<div id="o14" class="row2"></div>
<div id="o15" class="row2"></div>
<div id="o16" class="row2"></div>
<div id="o20" class="row3"></div>
<div id="o21" class="row3"></div>
<div id="o22" class="row3"></div>
<div id="o23" class="row3"></div>
<div id="o24" class="row3"></div>
<div id="o25" class="row3"></div>
<div id="o26" class="row3"></div>
<div id="o30" class="row4"></div>
<div id="o31" class="row4"></div>
<div id="o32" class="row4"></div>
<div id="o33" class="row4"></div>
<div id="o34" class="row4"></div>
<div id="o35" class="row4"></div>
<div id="o36" class="row4"></div>
<div id="o40" class="row5"></div>
<div id="o41" class="row5"></div>
<div id="o42" class="row5"></div>
<div id="o43" class="row5"></div>
<div id="o44" class="row5"></div>
<div id="o45" class="row5"></div>
<div id="o46" class="row5"></div>
<div id="o50" class="row6"></div>
<div id="o51" class="row6"></div>
<div id="o52" class="row6"></div>
<div id="o53" class="row6"></div>
<div id="o54" class="row6"></div>
<div id="o55" class="row6"></div>
<div id="o56" class="row6"></div>
</div>
<!-- SIDEBAR PROFILE -->
<div id="profile7x6">
<table>
<tr class="center-text">
<th></th>
<th>N</th>
<th>Mass</th>
<th>Row</th>
<th>TPA</th>
</tr>
<tr>
<td class="e0" title="Fire"></td>
<td><input id="e0-normal" value="1"/></td>
<td><input id="e0-mass" value="3"/></td>
<td><input id="e0-row" value="0"/></td>
<td><input id="e0-tpa" value="0"/></td>
</tr>
<tr>
<td class="e1" title="Water"></td>
<td><input id="e1-normal" value="1"/></td>
<td><input id="e1-mass" value="3"/></td>
<td><input id="e1-row" value="0"/></td>
<td><input id="e1-tpa" value="0"/></td>
</tr>
<tr>
<td class="e2" title="Wood"></td>
<td><input id="e2-normal" value="1"/></td>
<td><input id="e2-mass" value="3"/></td>
<td><input id="e2-row" value="0"/></td>
<td><input id="e2-tpa" value="0"/></td>
</tr>
<tr>
<td class="e3" title="Light"></td>
<td><input id="e3-normal" value="1"/></td>
<td><input id="e3-mass" value="3"/></td>
<td><input id="e3-row" value="0"/></td>
<td><input id="e3-tpa" value="0"/></td>
</tr>
<tr>
<td class="e4" title="Dark"></td>
<td><input id="e4-normal" value="1"/></td>
<td><input id="e4-mass" value="3"/></td>
<td><input id="e4-row" value="0"/></td>
<td><input id="e4-tpa" value="0"/></td>
</tr>
<tr>
<td class="e5" title="Heal"></td>
<td><input id="e5-normal" value="0.3"/></td>
<td><input id="e5-mass" value="0.3"/></td>
<td><input id="e5-row" value="0"/></td>
<td><input id="e5-tpa" value="0"/></td>
</tr>
<tr>
<td class="e6" title="Junk"></td>
<td><input id="e6-normal" value="0.1"/></td>
<td><input id="e6-mass" value="0.1"/></td>
<td><input id="e6-row" value="0"/></td>
<td><input id="e6-tpa" value="0"/></td>
</tr>
<tr class="center-text">
<th></th>
<th><a data-toggle="tooltip" title="Default"><i class="glyphicon glyphicon-question-sign"></i></a></th>
<th><a data-toggle="tooltip" title="Mass"><i class="glyphicon glyphicon-question-sign"></i></a></th>
<th><a data-toggle="tooltip" title="Row Awakens"><i class="glyphicon glyphicon-question-sign"></i></a></th>
<th><a data-toggle="tooltip" title="TPA Weight"><i class="glyphicon glyphicon-question-sign"></i></a></th>
</tr>
</table>
<p>
<br>
Profile:<br>
<select class="btn btn-default" id="profile-selector">
<option value="
0.1,0.1,0,0,
0.1,0.1,0,0,
0.1,0.1,0,0,
0.1,0.1,0,0,
0.1,0.1,0,0,
1,1,0,0,
0.1,0.1,0,0,
-1">Recovery</option>
<option value="
0,0,0,0,
4.5,4.5,1,1.5,
1.4,1.4,0,.45,
2,2,0,0,
3.3,3.3,0,0,
0.3,0.3,0,0,
0.1,0.1,0,0,
0">UmiYama</option>
<option value="
1,1,0,0,
1,1,0,0,
1,1,0,0,
1,1,0,0,
0,0,0,0,
0.3,0.3,0,0,
0.1,0.1,0,0,
1">Kirin</option>
<option value="
1,1,0,2.5,
1,1,0,0,
1,0,0,0,
1,1,0,2.5,
0,1,0,0,
0.3,0.3,0,0,
0.1,0.1,0,0,
1">LKali</option>
<option value="
1,1,0,0,
1,1,0,0,
1,1,0,0,
1,0,0,0,
0,1,0,0,
0.3,1,0,0,
0.1,0.1,0,0,
1">DKali</option>
<option value="
1,1,0,0,
1,1,0,0,
0,0,0,0,
0,0,0,0,
1,1,0,0,
0.3,0.3,0,0,
0.1,0.1,0,0,
4">Haku</option>
<option value="
1,1,0,0,
1,1,0,0,
1,1,0,0,
1,1,0,0,
1,1,0,0,
1,0.3,0,0,
0.1,0.1,0,0,
5">Ra / RaDra</option>
<option value="
1,1,0,0,
1,1,0,0,
1,1,0,0,
1,1,0,0,
1,1,0,0,
0.3,0.3,0,0,
0.1,0.1,0,0,
6">Combo Lead</option>
</select>
<br>
<br>
<label for="max-length">Max path length:</label>
<input id="max-length" value="25" size="3"/><br /><br />
<label for="num-paths">Path Number Scaling</label>
<input type="text" value="100" id="num-path-value" class="fast">
<br>
<input type="text" id="num-paths" class="span2" value="" data-slider-min="10" data-slider-max="400" data-slider-step="10" data-slider-value="100" data-slider-orientation="horizontal" data-slider-selection="after"data-slider-tooltip="hide">
<em style="display: block; margin-top: 4px;"><span style="color: rgb(93,167,102)" class="glyphicon glyphicon-arrow-up"></span> larger: longer computation, better solutions</em>
</p>
<label>Path Type:</type><br />
<input type="radio" name="overlap" id="nooverlap" value="rounded" checked>
<label for="nooverlap">No Overlap</label></p>
<input type="radio" name="overlap" id="traditional" value="traditional">
<label for="traditional">Traditional</label>
<!-- CONTROLS -->
</div>
<div id="controls7x6">
<input type="checkbox" id="allow-8"/>
<label for="allow-8">Allow 8-direction movement</label><br />
<input class="btn btn-primary" type="button" value="Solve" id="solve"/>
</div>
<div id="extra-controls7x6">
<input class="btn btn-default" type="button" value="Drop matches" id="drop"/>
<input class="btn btn-default" type="button" value="Final state" id="final"/>
<input class="btn btn-default" type="button" value="Clear" id="clear"/>
<br>
<input class="btn btn-default" type="button" value="Randomize" id="randomize"/>
<select class="btn btn-default" id="randomization-type">
<option value="0,1,2,3,4,5">Random Type</option>
<option value="0,4">Ronia</option>
<option value="1,4">Bonia</option>
<option value="2,4">Gonia</option>
<option value="0,1,5">Urd</option>
<option value="1,2,5">Skuld</option>
<option value="0,2,5">Verdandi</option>
<option value="0,1,2">3-color</option>
<option value="0,1,2,5">3 + Heal</option>
<option value="0,1,2,3,4">5-color</option>
<option value="0,1,2,3,4,5">5 + Heal</option>
<option value="0,1,2,3,4,5,6">All</option>
</select>
<input class="btn btn-default" type="button" value="Import" id="import"/>
<br>
<input class="btn btn-default" type="button" value="Change orbs" id="change"/>
<select class="btn btn-default" onchange="location = this.options[this.selectedIndex].value;">
<option value="small.html">5x4</option>
<option value="index.html">6x5</option>
<option value="large.html" selected>7x6</option>
</select>
<input class="btn btn-default" type="button" value="Lengthen Path" id="pathincrease"/>
<br>
</div>
<div id="hand"></div>
<div id="import-popup" class="import-popup7x6">
<div id="import-legend">
<span class="e0"></span> = 0 / r<br />
<span class="e1"></span> = 1 / b<br />
<span class="e2"></span> = 2 / g<br />
<span class="e3"></span> = 3 / y<br />
<span class="e4"></span> = 4 / p<br />
<span class="e5"></span> = 5 / h<br />
<span class="e6"></span> = 6 / j<br />
<span class="eX"></span> = . / x<br />
</div>
<textarea id="import-textarea" class="import-textarea7x6" maxlength="30" spellcheck="false"></textarea>
<div id="import-control" class="import-control7x6">
<input type="button" value="Cancel" id="import-cancel"/>
<input type="button" value="Import" id="import-import"/>
</div>
</div>
<div id="change-popup" oncontextmenu="return false;">
<span class="e0"></span> → <span class="e0 change-target"></span><br />
<span class="e1"></span> → <span class="e1 change-target"></span><br />
<span class="e2"></span> → <span class="e2 change-target"></span><br />
<span class="e3"></span> → <span class="e3 change-target"></span><br />
<span class="e4"></span> → <span class="e4 change-target"></span><br />
<span class="e5"></span> → <span class="e5 change-target"></span><br />
<span class="e6"></span> → <span class="e6 change-target"></span><br />
<span class="eX"></span> → <span class="eX change-target"></span>
<div id="change-control">
<input type="button" value="Cancel" class="btn btn-danger" id="change-cancel"/>
<input type="button" value="Change" class="btn btn-success" id="change-change"/>
</div>
</div>
<!-- SOLVER AREA -->
<div class="container-fluid" style="">
<div class="row">
<div class="row">
<div class="col-md-8">
</div>
<div class="col-md-4">
<div id="solutions">
<div class="loading-throbber">
<span id="status">...</span>
<div class="sliderOMG">
<div class="line"></div>
<div class="break dot1"></div>
<div class="break dot2"></div>
<div class="break dot3"></div>
</div>
</div>
<ol></ol>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- SCRIPTS -->
<script src="ext/perfect-scrollbar.jquery.min.js"></script>
<script src="ext/bootstrap-slider.min.js"></script>
<script src="ext/easel.js"></script>
<script src="ext/optimizer.js"></script>
<script src="ext/main.js"></script>
</body>
</html>