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: | 408 / 393 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000475 - Smart Bot's answer to: !fresh recentlyChangedSnippets() |