-
Notifications
You must be signed in to change notification settings - Fork 0
/
22.html
93 lines (90 loc) · 5.09 KB
/
22.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
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="js/postscript.js"></script>
<script src="js/visualizer.js"></script>
<script type="text/javascript">
(function ($) {
$(function () {
var updater = function () {
var visualizer = new Visualizer($('#canvas')[0], "22", ["....###2...9......25","..###.#...##.......2",".#3.7#..9#..#.#...#.",".8.6#....#..#.#.....","2....1..#....4..#...","##...####....###.##.","0#..........#.#.....",".##.#.##..##..##....","01.##.........#.....","#..##......5#..#....","#....#.#...##..8###.","...#.##7..9.....4###","..####.#.##..###....","..#58.##.#.#.#.#....","#..#....#.####......","...#...1.#..8.2..#..","#..#.###.#....#.#...","....##.......###..#.","##.......#..###..##.","..###..#9#26.#..#0.."], ["....###..1..........",".6###.#...##.25.....",".#...#2..#..#.#...#.","...2#98..#..#.#.....","...3..9.#.......#..2","##...####.7..###.##.",".#..........#8#.....","0##.#.##..##..##....","...##5......9.#.4...","#..##....7..#..#....","#....#.#...##...###.","...#.##.......4..###",".1####.#.##..###....",".0#..5##.#.#.#8#..2.","#.9#...1#.####......","...#.....#26.....#..","#..#.###.#....#.#...","....##.......###..#.","##......8#..###..##.","..###..#.#...#..#.0."], [[4, 13, 0],[11, 7, 2],[15, 14, 3],[19, 17, 2],[2, 8, 0],[2, 6, 1],[6, 0, 1],[3, 3, 0],[3, 1, 1],[3, 2, 0],[4, 1, 3],[3, 0, 3],[0, 0, 2],[4, 0, 3],[0, 3, 0],[0, 0, 1],[0, 1, 1],[4, 6, 3],[4, 5, 2],[2, 6, 1],[4, 7, 3],[1, 7, 2],[1, 9, 3],[4, 9, 1],[10, 9, 2],[10, 10, 3],[8, 10, 2],[10, 15, 0],[8, 13, 1],[10, 13, 2],[9, 13, 2],[9, 14, 1],[0, 7, 1],[4, 6, 3],[4, 7, 0],[2, 6, 1],[4, 0, 3],[4, 1, 0],[0, 0, 1],[3, 1, 1],[3, 0, 2],[4, 1, 3],[2, 2, 2],[3, 3, 0],[2, 3, 1],[3, 2, 2],[7, 3, 3],[15, 7, 3],[0, 11, 0],[0, 9, 1],[0, 10, 0],[1, 9, 3],[0, 7, 2],[0, 8, 1],[3, 8, 0],[0, 18, 0],[0, 9, 1],[0, 10, 0],[1, 9, 3],[0, 7, 2],[3, 5, 2],[0, 8, 1],[3, 8, 0],[4, 6, 3],[2, 8, 0],[2, 6, 1],[2, 7, 0],[3, 1, 1],[4, 1, 2],[4, 3, 1],[4, 2, 2],[7, 3, 3],[4, 6, 3],[4, 5, 2],[3, 6, 1],[4, 7, 3],[0, 7, 2],[0, 8, 1],[3, 8, 0],[19, 10, 3],[13, 4, 1],[13, 3, 2],[16, 4, 3],[8, 1, 1],[8, 0, 2],[17, 1, 3],[8, 2, 1],[11, 2, 0],[11, 0, 1],[13, 0, 2],[8, 1, 1],[15, 12, 1],[17, 12, 0],[17, 6, 1],[19, 6, 0],[19, 5, 3],[18, 5, 2],[18, 8, 0],[19, 8, 3],[18, 2, 2],[15, 8, 1],[17, 8, 0],[17, 6, 1],[19, 6, 0],[19, 5, 3],[18, 5, 0],[18, 2, 3],[19, 11, 3],[9, 11, 3],[8, 11, 0],[10, 15, 0],[8, 5, 2],[10, 13, 3],[8, 13, 0],[9, 13, 3],[11, 10, 2],[11, 13, 3],[7, 13, 0],[7, 12, 1],[15, 11, 2],[11, 16, 1],[15, 16, 0],[14, 16, 2],[14, 19, 3],[12, 19, 0],[19, 19, 3],[12, 16, 2],[12, 19, 1],[1, 19, 0],[4, 0, 2],[4, 2, 1],[6, 2, 2],[6, 11, 3],[2, 11, 0],[2, 10, 1],[2, 4, 0],[2, 2, 1],[6, 2, 2],[6, 10, 3],[6, 9, 2],[2, 10, 1],[6, 11, 3],[2, 11, 0],[2, 10, 1],[6, 10, 2],[6, 11, 3],[2, 11, 0],[2, 10, 1],[4, 10, 2],[4, 15, 3],[0, 15, 2],[0, 18, 1],[1, 18, 0],[13, 14, 1],[15, 14, 2],[15, 16, 3],[15, 11, 2],[11, 16, 1],[15, 16, 0],[14, 16, 0],[12, 18, 0],[12, 16, 3],[11, 16, 0],[11, 14, 3],[11, 15, 0],[9, 14, 1],[11, 9, 3],[11, 10, 0],[4, 9, 1],[11, 7, 2],[11, 8, 3],[6, 8, 2],[6, 11, 3],[2, 11, 0],[2, 10, 1],[4, 10, 0],[4, 9, 1],[14, 14, 2],[19, 19, 3],[14, 19, 0],[15, 19, 0],[15, 18, 3],[1, 12, 3],[0, 12, 2],[0, 18, 1],[1, 18, 0],[1, 14, 3],[10, 9, 2],[10, 10, 1],[6, 13, 1],[11, 10, 2],[11, 13, 3],[11, 12, 2],[11, 14, 3],[11, 13, 2],[9, 14, 1],[15, 11, 2],[11, 16, 1],[15, 16, 0],[14, 16, 2],[14, 19, 3],[14, 14, 2],[12, 19, 1],[14, 19, 0],[11, 9, 3],[4, 9, 2],[0, 19, 0],[4, 15, 3],[0, 15, 2],[0, 14, 2],[0, 18, 1],[1, 18, 0],[1, 16, 1],[3, 16, 0],[3, 15, 3],[2, 15, 2],[2, 17, 1],[4, 17, 2],[13, 19, 1],[12, 18, 2],[14, 14, 2],[12, 19, 1],[19, 19, 3],[14, 19, 0],[15, 19, 0],[15, 18, 3],[13, 19, 1],[1, 15, 0],[1, 14, 3],[0, 19, 0],[0, 15, 1],[4, 15, 0],[4, 9, 1],[11, 9, 2],[11, 14, 3],[11, 13, 2],[9, 14, 1],[15, 11, 2],[11, 16, 1],[15, 16, 0],[14, 16, 2],[14, 19, 3],[14, 14, 2],[12, 19, 1],[14, 19, 0],[19, 19, 3],[14, 14, 2],[14, 19, 1],[14, 18, 3],[13, 4, 1],[14, 7, 0],[16, 4, 3],[14, 4, 2],[15, 4, 2],[15, 8, 1],[17, 8, 2],[17, 12, 3],[15, 12, 2],[13, 18, 0],[15, 16, 3],[13, 16, 2],[14, 16, 0],[14, 14, 3],[19, 19, 0],[13, 19, 1],[19, 17, 2],[0, 14, 1]]);
visualizer.doit();
};
updater();
});
})(jQuery);
</script>
<style type="text/css">
body {
font-family: Arial, Sans-Serif;
}
h3 {
font-size: 12pt;
padding-left: 0.5em;
}
#canvas {
border: 1px solid black;
}
/* td.properties {
padding-left: 1em;
} */
#coord {
position: fixed;
top: 2px;
left: 2px;
font-familiy: Helvetica;
font-size: 10pt;
background: #fef3a1;
border-style: solid;
border-width: 1px;
border-color: #bba824;
padding: 2px 2px 2px 2px;
z-index: 1;
opacity: 0.9;
}
#steps {
align: left;
}
</style>
</head>
<body>
<table>
<tr>
<td colspan="3">
<canvas id="canvas" width="960" height="960" sytle="align: center">
</canvas>
</td>
</tr>
<tr>
<td>
<h3>seed:</h3>
</td>
<td id="seed">
</td>
<td>
</td>
</tr>
<tr>
<td class="properties">
<h3>steps:</h3>
</td>
<td id="steps">
</td>
<td>
</td>
</tr>
<tr>
<td>
<h3>Score:</h3>
</td>
<td id="score">
</td>
<td>
</td>
</tr>
</table>
<div>
<strong id="coord"></strong>
</div>
</body>
</html>