-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
155 lines (148 loc) · 5.21 KB
/
index.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chess</title>
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap"
rel="stylesheet"
/>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script src="js/bundle.js"></script>
</head>
<body>
<div id="controls">
<input type="text" id="fen" placeholder="FEN" />
<button type="button" id="set-fen">Set Position</button>
<button type="button" id="flip-board">Flip Board</button>
<button type="button" id="new-game">New Game</button>
<button type="button" id="info-expand">Info</button>
<button type="button" id="test">Test</button>
</div>
<div id="error"></div>
<div id="info">
<p>1. Your active piece</p>
<div
id="info-active"
style="background-image: url('images/wB.svg');"
></div>
<p>2. Your active piece can move here</p>
<div id="info-possible"></div>
<p>3. You can capture this piece with your active piece</p>
<div
id="info-capturable"
style="background-image: url('images/bB.svg');"
></div>
</div>
<div id="board-columns">
<div>a</div>
<div>b</div>
<div>c</div>
<div>d</div>
<div>e</div>
<div>f</div>
<div>g</div>
<div>h</div>
</div>
<div id="board-container">
<div id="board-rows">
<div>8</div>
<div>7</div>
<div>6</div>
<div>5</div>
<div>4</div>
<div>3</div>
<div>2</div>
<div>1</div>
</div>
<div id="board">
<div id="a8" class="light square"></div>
<div id="b8" class="dark square"></div>
<div id="c8" class="light square"></div>
<div id="d8" class="dark square"></div>
<div id="e8" class="light square"></div>
<div id="f8" class="dark square"></div>
<div id="g8" class="light square"></div>
<div id="h8" class="dark square"></div>
<div id="a7" class="dark square"></div>
<div id="b7" class="light square"></div>
<div id="c7" class="dark square"></div>
<div id="d7" class="light square"></div>
<div id="e7" class="dark square"></div>
<div id="f7" class="light square"></div>
<div id="g7" class="dark square"></div>
<div id="h7" class="light square"></div>
<div id="a6" class="light square"></div>
<div id="b6" class="dark square"></div>
<div id="c6" class="light square"></div>
<div id="d6" class="dark square"></div>
<div id="e6" class="light square"></div>
<div id="f6" class="dark square"></div>
<div id="g6" class="light square"></div>
<div id="h6" class="dark square"></div>
<div id="a5" class="dark square"></div>
<div id="b5" class="light square"></div>
<div id="c5" class="dark square"></div>
<div id="d5" class="light square"></div>
<div id="e5" class="dark square"></div>
<div id="f5" class="light square"></div>
<div id="g5" class="dark square"></div>
<div id="h5" class="light square"></div>
<div id="a4" class="light square"></div>
<div id="b4" class="dark square"></div>
<div id="c4" class="light square"></div>
<div id="d4" class="dark square"></div>
<div id="e4" class="light square"></div>
<div id="f4" class="dark square"></div>
<div id="g4" class="light square"></div>
<div id="h4" class="dark square"></div>
<div id="a3" class="dark square"></div>
<div id="b3" class="light square"></div>
<div id="c3" class="dark square"></div>
<div id="d3" class="light square"></div>
<div id="e3" class="dark square"></div>
<div id="f3" class="light square"></div>
<div id="g3" class="dark square"></div>
<div id="h3" class="light square"></div>
<div id="a2" class="light square"></div>
<div id="b2" class="dark square"></div>
<div id="c2" class="light square"></div>
<div id="d2" class="dark square"></div>
<div id="e2" class="light square"></div>
<div id="f2" class="dark square"></div>
<div id="g2" class="light square"></div>
<div id="h2" class="dark square"></div>
<div id="a1" class="dark square"></div>
<div id="b1" class="light square"></div>
<div id="c1" class="dark square"></div>
<div id="d1" class="light square"></div>
<div id="e1" class="dark square"></div>
<div id="f1" class="light square"></div>
<div id="g1" class="dark square"></div>
<div id="h1" class="light square"></div>
</div>
<div id="board-rows">
<div>8</div>
<div>7</div>
<div>6</div>
<div>5</div>
<div>4</div>
<div>3</div>
<div>2</div>
<div>1</div>
</div>
</div>
<div id="board-columns">
<div>a</div>
<div>b</div>
<div>c</div>
<div>d</div>
<div>e</div>
<div>f</div>
<div>g</div>
<div>h</div>
</div>
<div id="probabilities"><div id="prob-white"></div></div>
</body>
</html>