-
Notifications
You must be signed in to change notification settings - Fork 0
/
12.html
93 lines (90 loc) · 6.18 KB
/
12.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], "12", [".......#.#0..#00.00#","0#....#.....#.0.#.#0",".110..1.............","10......#......#..#.","#......#.......0#...","...1#...#....#...0..",".................1#.","..#....#...0.###....","....#....###......#.","...........#...#..00",".0#.......#.11......","................#1..","0...#...#........0#.","1..1#..#0...........","#........11........1","1#0.#......#........","0..#.......0#.#.....","...10....##1..#..1.1","....#..#.....#...#.#","1..........1#1....00"], [".1....0#.#...#.....#",".#.1..#..0..#...#0#.",".....1..............",".......0#......#..#.","#.....1#........#.00",".1..#...#....#..0...","...1.....1...0....#.","..#....#.....###...0","...1#..1.###..0...#.",".....1.....#...#.11.","..#.......#.0....0.0",".......0..0..00.#...",".010#...#..1.1....#.",".1..#..#.0.1........","#..0...............0","0#.1#......#.0......","...#........#.#.....",".1.......##0..#.....","....#..#...1.#...#1#",".1..........#......."], [[0, 17, 1],[0, 18, 0],[1, 19, 1],[16, 0, 1],[19, 18, 0],[19, 19, 0],[10, 12, 3],[2, 12, 0],[2, 6, 1],[2, 7, 0],[19, 6, 3],[2, 4, 2],[4, 17, 2],[6, 17, 0],[6, 0, 3],[5, 0, 2],[12, 0, 3],[5, 2, 0],[5, 0, 1],[7, 11, 0],[7, 8, 3],[1, 14, 1],[6, 8, 2],[6, 14, 3],[13, 3, 3],[5, 3, 3],[2, 3, 2],[3, 3, 3],[2, 4, 0],[0, 3, 1],[12, 0, 2],[14, 10, 3],[11, 10, 0],[11, 0, 1],[12, 0, 2],[9, 19, 1],[9, 18, 2],[13, 19, 0],[15, 0, 1],[17, 3, 0],[17, 0, 3],[13, 0, 2],[13, 3, 1],[2, 6, 1],[19, 6, 0],[19, 15, 3],[10, 15, 2],[14, 9, 0],[14, 1, 3],[14, 19, 0],[11, 1, 1],[14, 1, 2],[0, 15, 1],[2, 15, 2],[2, 19, 1],[4, 19, 0],[3, 19, 1],[4, 17, 2],[10, 13, 2],[10, 18, 3],[7, 19, 0],[8, 19, 3],[7, 16, 2],[5, 19, 0],[5, 18, 3],[10, 1, 1],[1, 0, 3],[0, 0, 2],[3, 1, 2],[2, 1, 1],[3, 7, 0],[4, 1, 2],[2, 2, 3],[0, 2, 2],[3, 0, 3],[0, 5, 0],[0, 0, 1],[17, 4, 3],[16, 4, 2],[16, 10, 3],[5, 17, 1],[9, 18, 1],[9, 19, 0],[11, 18, 3],[9, 16, 3],[17, 17, 0],[17, 15, 3],[10, 15, 2],[10, 16, 3],[6, 16, 2],[6, 17, 1],[15, 2, 3],[13, 2, 2],[13, 3, 1],[17, 11, 1],[16, 11, 1],[3, 1, 2],[0, 14, 2],[0, 15, 1],[2, 15, 0],[2, 6, 1],[3, 7, 3],[3, 6, 2],[1, 7, 2],[1, 11, 1],[7, 11, 0],[0, 10, 1],[7, 8, 2],[7, 10, 3],[7, 9, 3],[0, 10, 1],[7, 10, 0],[7, 8, 1],[11, 8, 2],[11, 10, 1],[11, 9, 2],[16, 10, 3],[1, 14, 2],[1, 15, 1],[2, 15, 0],[2, 6, 1],[3, 7, 3],[3, 6, 2],[1, 7, 2],[1, 9, 1],[1, 8, 2],[7, 9, 3],[1, 11, 1],[7, 11, 0],[7, 8, 1],[11, 8, 2],[11, 10, 1],[11, 9, 2],[16, 10, 3],[19, 14, 3],[18, 14, 2],[18, 16, 3],[12, 16, 0],[12, 9, 3],[12, 17, 0],[9, 9, 1],[12, 9, 2],[11, 10, 1],[11, 9, 2],[16, 10, 3],[13, 8, 1],[19, 11, 0],[19, 8, 3],[19, 9, 3],[18, 9, 2],[18, 11, 1],[18, 10, 2],[19, 11, 3],[18, 12, 3],[17, 12, 2],[17, 13, 3],[4, 15, 1],[6, 15, 2],[6, 17, 1],[11, 13, 3],[8, 17, 0],[8, 13, 1],[14, 19, 3],[10, 19, 0],[11, 19, 3],[10, 18, 2],[7, 19, 0],[8, 19, 3],[7, 16, 2],[5, 19, 0],[5, 17, 1],[9, 17, 0],[8, 17, 1],[9, 16, 1],[10, 16, 0],[10, 11, 1],[11, 13, 0],[14, 11, 3],[11, 11, 2],[18, 0, 2],[18, 3, 3],[17, 3, 2],[17, 8, 3],[14, 8, 2],[12, 17, 1],[17, 17, 2],[17, 18, 1],[11, 17, 1],[17, 17, 2],[17, 18, 1],[3, 0, 2],[4, 6, 0],[3, 6, 1],[4, 1, 2],[19, 6, 3],[5, 6, 2],[5, 7, 1],[6, 7, 0],[6, 4, 1],[7, 4, 0],[17, 19, 3],[15, 19, 0],[15, 12, 3],[2, 12, 0],[2, 6, 1],[4, 6, 0],[3, 6, 1],[4, 1, 2],[7, 3, 2],[19, 6, 3],[7, 6, 0],[8, 6, 2],[8, 8, 3],[6, 8, 0],[6, 4, 1],[7, 3, 1],[7, 4, 0],[11, 3, 3],[13, 8, 1],[19, 8, 0],[19, 2, 3],[13, 1, 1],[13, 2, 0],[14, 1, 3],[13, 0, 3],[8, 3, 0],[5, 0, 1],[8, 0, 2],[7, 0, 2],[7, 1, 1],[11, 1, 2],[8, 3, 1],[11, 9, 0],[11, 3, 3],[11, 4, 3],[8, 3, 0],[7, 3, 1],[8, 0, 2],[11, 3, 2],[11, 9, 3],[9, 9, 0],[2, 3, 2],[2, 4, 1],[4, 4, 2],[4, 5, 1],[8, 5, 2],[8, 8, 3],[9, 4, 1],[11, 4, 0],[6, 8, 1],[11, 0, 2],[11, 8, 3],[15, 0, 1],[18, 0, 2],[18, 3, 1],[19, 3, 0],[19, 2, 3],[13, 1, 1],[13, 2, 0],[14, 1, 3],[8, 3, 0],[13, 0, 3],[8, 0, 2],[9, 0, 2],[9, 4, 1],[11, 4, 2],[11, 6, 3],[5, 6, 2],[5, 7, 1],[6, 8, 1],[6, 7, 2],[11, 8, 3],[6, 12, 0],[11, 15, 3],[10, 15, 0],[10, 11, 1],[11, 11, 2],[11, 13, 3],[11, 12, 2],[8, 13, 1],[6, 8, 1],[11, 8, 2],[11, 10, 1],[11, 9, 2],[16, 10, 3],[11, 12, 0],[11, 11, 3],[10, 11, 2],[11, 13, 0],[10, 13, 1],[11, 11, 2],[11, 12, 1],[19, 18, 0],[19, 14, 3],[18, 14, 2],[18, 16, 3],[12, 16, 0],[12, 14, 1],[15, 14, 0],[0, 16, 0],[0, 14, 1],[6, 14, 2],[6, 17, 3],[15, 12, 3],[11, 13, 3],[11, 12, 2],[8, 14, 1],[8, 13, 2],[10, 14, 3],[8, 17, 3],[0, 17, 0],[0, 14, 1],[6, 14, 2],[6, 17, 1],[8, 17, 0],[8, 14, 1],[8, 15, 0],[10, 14, 3],[8, 12, 1],[9, 12, 2],[9, 14, 1],[11, 14, 2],[10, 14, 1],[11, 15, 0],[15, 14, 2],[14, 19, 0],[15, 19, 3],[14, 4, 2],[11, 19, 1],[13, 19, 0],[19, 1, 3],[19, 0, 2],[18, 1, 1],[19, 11, 0],[19, 2, 3],[13, 1, 1],[13, 2, 0],[14, 1, 3],[13, 0, 3],[8, 3, 0],[5, 0, 1],[8, 0, 2],[7, 0, 2],[7, 1, 1],[11, 1, 2],[11, 6, 3],[5, 6, 2],[5, 7, 1],[6, 7, 2],[6, 8, 1],[11, 8, 2],[11, 9, 1],[13, 9, 0],[12, 9, 1],[13, 8, 2],[16, 9, 3],[14, 9, 0],[14, 4, 2],[14, 18, 3],[13, 18, 0],[13, 10, 1],[16, 10, 0],[16, 4, 1],[17, 4, 0],[17, 2, 1],[19, 1, 3],[19, 2, 0],[18, 1, 1],[19, 0, 3]]);
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>