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