Professional Documents
Culture Documents
Homepage
Homepage
html
chessboard.js
The easiest way to embed a chess board on your site.
Download v1.0.0
5
JAVASCRIPT
4
var board1 = Chessboard('board1', 'start')
a b c d e f g h
7
<div id="board2" style="width: 400px"><∕div>
<button id="startBtn">Start Position<∕button>
<button id="clearBtn">Clear Board<∕button> 6
5
JAVASCRIPT
1 of 2 24/11/2021, 22:14
chessboardjs.com » Homepage https://chessboardjs.com/index.html
$('#clearBtn').on('click', board2.clear)
2 of 2 24/11/2021, 22:14