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