-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchess.html
More file actions
42 lines (35 loc) · 720 Bytes
/
chess.html
File metadata and controls
42 lines (35 loc) · 720 Bytes
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Wasm Loader</title>
<script type="module" src="./chess.js" defer></script>
<style>
#board {
display: grid;
grid-template-columns: repeat(8, 60px);
grid-template-rows: repeat(8, 60px);
width: 480px;
}
.square {
width: 60px;
height: 60px;
font-size: 55px;
text-align: center;
}
.square.light {
background: #f0d9b5;
}
.square.dark {
background: #b58863;
}
.square.blue {
background: blue;
}
</style>
</head>
<body>
<div id="board"></div>
<p id="result"></p>
</body>
</html>