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