Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

19
LINES

< > BotCompany Repo | #1012830 // Chessboard.JS Test

HTML

1  
<title>Chessboard.JS</title>
2  
3  
<link rel="stylesheet" href="http://tinybrain.de:8080/chessboard-js/css/chessboard-0.3.0.css" />
4  
5  
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
6  
<script src="http://tinybrain.de:8080/chessboard-js/js/chessboard-0.3.0.js"></script>
7  
8  
<h3>Board</h3>
9  
<div id="board1" style="width: 400px"></div>
10  
11  
<script>
12  
  $(document).ready(function() {
13  
    var cfg = {
14  
      pieceTheme: 'http://tinybrain.de:8080/chessboard-js/img/chesspieces/wikipedia/{piece}.png',
15  
      position: 'rnbqkbnr/pp1ppppp/8/2p5/4P3/5N2/PPPP1PPP/RNBQKB1R b KQkq - 1 2'
16  
    };
17  
    var board = ChessBoard('board1', cfg);
18  
  });
19  
</script>

download  render html  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012830
Snippet name: Chessboard.JS Test
Eternal ID of this version: #1012830/6
Text MD5: 75fcac1a036d97d19e7f74ddd4f75b43
Author: stefan
Category: javax / html
Type: HTML
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-14 00:43:17
Source code size: 664 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 370 / 257
Version history: 5 change(s)
Referenced in: [show references]