Skip to content

Instantly share code, notes, and snippets.

@adamf
Created January 15, 2015 04:46
Show Gist options
  • Save adamf/e2af92217dd41df00b12 to your computer and use it in GitHub Desktop.
Save adamf/e2af92217dd41df00b12 to your computer and use it in GitHub Desktop.
Display a chessboard with chess.js
<html>
<head>
<link rel="stylesheet" href="css/chessboard-0.3.0.css" />
<script src="js/jquery-1.10.2.min.js"> </script>
<script src="js/chessboard-0.3.0.js"> </script>
</head>
<body>
<div id="board1" style="width: 400px"></div>
<script>
var board1 = new ChessBoard('board1', 'start');
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment