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

14
LINES

< > BotCompany Repo | #1012831 // html_chessBoard

JavaX fragment (include)

static S html_chessBoard(S position) {
  ret [[<link rel="stylesheet" href="http://tinybrain.de:8080/chessboard-js/css/chessboard-0.3.0.css" />]]
    + loadJQuery()
    + [[<script src="http://tinybrain.de:8080/chessboard-js/js/chessboard-0.3.0.js"></script>]]
    + [[<div id="board1" style="width: 400px"></div>]]
    + hjavascript([[
  $(document).ready(function() {
    var cfg = {
      pieceTheme: 'http://tinybrain.de:8080/chessboard-js/img/chesspieces/wikipedia/{piece}.png',
      position: ]] + jsQuote(position) + [[
    };
    var board = ChessBoard('board1', cfg);
  });]]);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1012831
Snippet name: html_chessBoard
Eternal ID of this version: #1012831/1
Text MD5: 2f9812e451ddba1d2df674cd6d334659
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-14 00:58:23
Source code size: 602 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 406 / 391
Referenced in: [show references]