forked from gbtami/chessgroundx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
32 lines (28 loc) · 855 Bytes
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Chessground Demo</title>
<link rel="stylesheet" type="text/css" href="assets/chessground.base.css" />
<link rel="stylesheet" type="text/css" href="assets/chessground.brown.css" />
<link rel="stylesheet" type="text/css" href="assets/chessground.cburnett.css" />
<style>
#chessground {
width: 500px;
height: 500px;
}
cg-board {
background-color: #bfcfdd;
}
</style>
<script type="module">
import { Chessground } from './chessground.js';
const config = {};
const ground = Chessground(document.getElementById('chessground'), config);
</script>
</head>
<body>
<div id="chessground"></div>
</body>
</html>