forked from rooklift/nibbler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnibbler.html
More file actions
66 lines (51 loc) · 2 KB
/
nibbler.html
File metadata and controls
66 lines (51 loc) · 2 KB
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- https://content-security-policy.com/ -->
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self';">
<title>Nibbler</title>
<link rel="stylesheet" type="text/css" href="nibbler.css">
</head>
<body>
<!-- note to self, only use id for things the JS needs to see, they pollute the namespace -->
<div class="flexible_column">
<div class="flexible_row">
<div> <!-- the JS sets the tables and canvas to be on top of each other -->
<table id="boardsquares"></table>
<canvas id="canvas"></canvas>
<table id="boardfriends"></table>
</div>
<div class="full_growth">
<div id="statusbox">Starting up...</div> <!-- needs to have some content so it has a height when we calculate sizes -->
<div id="infobox"></div>
<div id="graphbox"><canvas id="graph"></canvas></div>
</div>
</div>
<input type="text" id="fenbox" value="">
<div id="movelist" class="full_growth"></div>
</div>
<!-- Special hidden items that show up when needed -->
<div id="pgnchooser"></div>
<table id="promotiontable"></table>
<!-- Most of our components are fairly well encapsulated and could be in
module form. Still, for the time being we have everything in one namespace
and so load them in a particular order... -->
<script src="10_globals.js"></script>
<script src="20_utils.js"></script>
<script src="30_point.js"></script>
<script src="31_sliders.js"></script>
<script src="40_position.js"></script>
<script src="41_fen.js"></script>
<script src="42_perft.js"></script>
<script src="43_chess960.js"></script>
<script src="50_tree.js"></script>
<script src="51_winrate.js"></script>
<script src="60_pgn.js"></script>
<script src="70_movelist.js"></script>
<script src="80_info.js"></script>
<script src="90_engine.js"></script>
<script src="95_renderer.js"></script>
<script src="99_start.js"></script>
</body>
</html>