chess.html

  1. <!DOCTYPE html>
  2. <meta charset="utf-8">
  3. <title>Chess</title>
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <link href="css/html.css" rel="stylesheet" type="text/css" media="screen">
  6. <link href="css/chess.css" rel="stylesheet" type="text/css" media="screen">
  7. <link href="css/chess_sizes.css" rel="stylesheet" type="text/css" media="screen">
  8. <link href="css/chess_pieces.css" rel="stylesheet" type="text/css" media="screen">
  9. <script src="js/runes.js"></script>
  10. <script src="js/chess_data.js"></script>
  11. <script src="js/chess_color.js"></script>
  12. <script src="js/chess_size.js"></script>
  13. <script src="js/chess_cell.js"></script>
  14. <script src="js/chess_fen.js"></script>
  15. <script src="js/chess_piece.js"></script>
  16. <script src="js/chess_table.js"></script>
  17. <script src="js/chess_keyboard.js"></script>
  18. <script src="js/chess.js"></script>
  19. <script src="js/chess_tools.js"></script>
  20. function pi_chess() {
  21. const Chess = PiChess();
  22. const Tools = PiChessTools(Chess);
  23. }
  24. </script>
  25. </head>
  26. <body onload="pi_chess()">
  27. <main id="pi_chess">
  28. <article id="pi_chess_board" class="size8x8 white">
  29. <section id="pi_chess_squares" class="style_wood piece_symbol">
  30. <div id="a8" title="a8" class="light"></div>
  31. <div id="b8" title="b8" class="dark"></div>
  32. <div id="c8" title="c8" class="light"></div>
  33. <div id="d8" title="d8" class="dark"></div>
  34. <div id="e8" title="e8" class="light"></div>
  35. <div id="f8" title="f8" class="dark"></div>
  36. <div id="g8" title="g8" class="light"></div>
  37. <div id="h8" title="h8" class="dark"></div>
  38. <div id="a7" title="a7" class="dark"></div>
  39. <div id="b7" title="b7" class="light"></div>
  40. <div id="c7" title="c7" class="dark"></div>
  41. <div id="d7" title="d7" class="light"></div>
  42. <div id="e7" title="e7" class="dark"></div>
  43. <div id="f7" title="f7" class="light"></div>
  44. <div id="g7" title="g7" class="dark"></div>
  45. <div id="h7" title="h7" class="light"></div>
  46. <div id="a6" title="a6" class="light"></div>
  47. <div id="b6" title="b6" class="dark"></div>
  48. <div id="c6" title="c6" class="light"></div>
  49. <div id="d6" title="d6" class="dark"></div>
  50. <div id="e6" title="e6" class="light"></div>
  51. <div id="f6" title="f6" class="dark"></div>
  52. <div id="g6" title="g6" class="light"></div>
  53. <div id="h6" title="h6" class="dark"></div>
  54. <div id="a5" title="a5" class="dark"></div>
  55. <div id="b5" title="b5" class="light"></div>
  56. <div id="c5" title="c5" class="dark"></div>
  57. <div id="d5" title="d5" class="light"></div>
  58. <div id="e5" title="e5" class="dark"></div>
  59. <div id="f5" title="f5" class="light"></div>
  60. <div id="g5" title="g5" class="dark"></div>
  61. <div id="h5" title="h5" class="light"></div>
  62. <div id="a4" title="a4" class="light"></div>
  63. <div id="b4" title="b4" class="dark"></div>
  64. <div id="c4" title="c4" class="light"></div>
  65. <div id="d4" title="d4" class="dark"></div>
  66. <div id="e4" title="e4" class="light"></div>
  67. <div id="f4" title="f4" class="dark"></div>
  68. <div id="g4" title="g4" class="light"></div>
  69. <div id="h4" title="h4" class="dark"></div>
  70. <div id="a3" title="a3" class="dark"></div>
  71. <div id="b3" title="b3" class="light"></div>
  72. <div id="c3" title="c3" class="dark"></div>
  73. <div id="d3" title="d3" class="light"></div>
  74. <div id="e3" title="e3" class="dark"></div>
  75. <div id="f3" title="f3" class="light"></div>
  76. <div id="g3" title="g3" class="dark"></div>
  77. <div id="h3" title="h3" class="light"></div>
  78. <div id="a2" title="a2" class="light"></div>
  79. <div id="b2" title="b2" class="dark"></div>
  80. <div id="c2" title="c2" class="light"></div>
  81. <div id="d2" title="d2" class="dark"></div>
  82. <div id="e2" title="e2" class="light"></div>
  83. <div id="f2" title="f2" class="dark"></div>
  84. <div id="g2" title="g2" class="light"></div>
  85. <div id="h2" title="h2" class="dark"></div>
  86. <div id="a1" title="a1" class="dark"></div>
  87. <div id="b1" title="b1" class="light"></div>
  88. <div id="c1" title="c1" class="dark"></div>
  89. <div id="d1" title="d1" class="light"></div>
  90. <div id="e1" title="e1" class="dark"></div>
  91. <div id="f1" title="f1" class="light"></div>
  92. <div id="g1" title="g1" class="dark"></div>
  93. <div id="h1" title="h1" class="light"></div>
  94. <aside id="pi_chess_zones">
  95. <div id="pi_chess_zone1"></div>
  96. <div id="pi_chess_zone2"></div>
  97. <div id="pi_chess_zone3"></div>
  98. <div id="pi_chess_zone4"></div>
  99. <div id="pi_chess_zone5"></div>
  100. </aside>
  101. <section id="pi_chess_rows">
  102. <div id="row8">8</div>
  103. <div id="row7">7</div>
  104. <div id="row6">6</div>
  105. <div id="row5">5</div>
  106. <div id="row4">4</div>
  107. <div id="row3">3</div>
  108. <div id="row2">2</div>
  109. <div id="row1">1</div>
  110. <section id="pi_chess_cols">
  111. <div id="colA">a</div>
  112. <div id="colB">b</div>
  113. <div id="colC">c</div>
  114. <div id="colD">d</div>
  115. <div id="colE">e</div>
  116. <div id="colF">f</div>
  117. <div id="colG">g</div>
  118. <div id="colH">h</div>
  119. <input type="text" id="pi_chess_keyboard" autocomplete="off" autofocus>
  120. <article id="pi_chess_tools">
  121. <h1 id="pi_chess_title">Chess</h1>
  122. <section id="pi_chess_code">
  123. <label for="pi_chess_fen">FEN:</label>
  124. <textarea id="pi_chess_fen" autocomplete="off" placeholder="FEN β€” Forsyth–Edwards Notation" spellcheck="false"></textarea>
  125. <section id="pi_chess_color">
  126. <div>
  127. <label for="pi_chess_white"><input type="radio" name="side" id="pi_chess_white" checked>white</label>
  128. <label for="pi_chess_black"><input type="radio" name="side" id="pi_chess_black">black</label>
  129. </div>
  130. <select id="pi_chess_checkmate" title="checkmate">
  131. <option value="none" style="display:none;"></option>
  132. <option value="">remove</option>
  133. <option value="check white">check white</option>
  134. <option value="check black">check black</option>
  135. <option value="checkmate white">checkmate white</option>
  136. <option value="checkmate black">checkmate black</option>
  137. </select>
  138. <section id="pi_chess_buttons">
  139. <button id="pi_chess_start">start</button>
  140. <button id="pi_chess_random">🎲</button>
  141. <button id="pi_chess_save">save</button>
  142. <button id="pi_chess_load">load</button>
  143. <button id="pi_chess_undo" disabled>undo</button>
  144. <section id="pi_chess_config">
  145. <label for="pi_chess_size">size <select id="pi_chess_size">
  146. <option value="4x4">4&times;4</option>
  147. <option value="6x6">6&times;6</option>
  148. <option value="7x7">7&times;7</option>
  149. <option value="8x8">8&times;8</option>
  150. <option value="9x9">9&times;9</option>
  151. <option value="10x8">10&times;8</option>
  152. <option value="10x10">10&times;10</option>
  153. <option value="11x10">11&times;10</option>
  154. <option value="12x8">12&times;8</option>
  155. <option value="12x10">12&times;10</option>
  156. <option value="12x12">12&times;12</option>
  157. <option value="14x14">14&times;14</option>
  158. <option value="16x8">16&times;8</option>
  159. <option value="16x10">16&times;10</option>
  160. <option value="16x12">16&times;12</option>
  161. <option value="16x16">16&times;16</option>
  162. <label for="pi_chess_style">style <select id="pi_chess_style">
  163. <option value="wood">wood</option>
  164. <option value="sky">sky</option>
  165. <option value="pearl">pearl</option>
  166. <option value="alice">alice</option>
  167. <option value="floral">floral</option>
  168. <option value="magnus">magnus</option>
  169. <option value="forest">forest</option>
  170. <label for="pi_chess_piece">piece <select id="pi_chess_piece">
  171. <optgroup label="utf8">
  172. <option value="symbol" title="symbol">β™”β™•β™–β™—β™˜β™™</option>
  173. <option value="letter" title="letter">KQRBNP</option>
  174. <option value="rounded" title="rounded">ⓀⓆⓇⒷⓃⓅ</option>
  175. <option value="squared" title="squared">πŸ„ΊπŸ…€πŸ…πŸ„±πŸ„½πŸ„Ώ</option>
  176. <option value="score" title="score">⑩⑨⑀④⑒①</option>
  177. <option value="cards" title="cards">πŸ‚ΎπŸ‚½πŸ‚±πŸ‚»πŸ‚ΌπŸ‚²</option>
  178. <optgroup label="svg">
  179. <option value="icosvg" title="6 colors">classic</option>
  180. <option value="bold">bold</option>
  181. <option value="flaticon">flaticon.com</option>
  182. <option value="utrecht">utrecht</option>
  183. <option value="toy">toy</option>
  184. <option value="geometric">geometric</option>
  185. <option value="animals">animals</option>
  186. <option value="fantastic">fantastic</option>
  187. <!--option value="crown">crown</option-->
  188. <!--option value="lichess">lichess.org</option-->
  189. <optgroup label="png">
  190. <option value="icopng" title="4 colors">classic</option>
  191. <option value="chesscom">chess.com</option>
  192. <option value="chesskid">chesskid.com</option>
  193. <option value="chess24">chess24.com</option>
  194. <option value="throne">throne</option>
  195. <option value="icon3d">icon3D</option>
  196. <option value="magnus">playmagnus</option>
  197. <optgroup label="emoji">
  198. <option value="emoji1">people/monster</option>
  199. <option value="animal1">sabana/sea</option>
  200. <option value="animal2">mammal/reptile</option>
  201. <option value="animal3">bird/insect</option>
  202. <section id="pi_chess_symbols">
  203. <label>shortcuts</label>
  204. <div id="pi_chess_shortcuts">
  205. <button title="white king"><kbd>K</kbd><span>β™”</span></button>
  206. <button title="white queen"><kbd>Q</kbd><span>β™•</span></button>
  207. <button title="white rook"><kbd>R</kbd><span>β™–</span></button>
  208. <button title="white bishop"><kbd>B</kbd><span>β™—</span></button>
  209. <button title="white knight"><kbd>N</kbd><span>β™˜</span></button>
  210. <button title="white pawn"><kbd>P</kbd><span>β™™</span></button>
  211. <button title="black king"><kbd>k</kbd><span>β™š</span></button>
  212. <button title="black queen"><kbd>q</kbd><span>β™›</span></button>
  213. <button title="black rook"><kbd>r</kbd><span>β™œ</span></button>
  214. <button title="black bishop"><kbd>b</kbd><span>♝</span></button>
  215. <button title="black knight"><kbd>n</kbd><span>β™ž</span></button>
  216. <button title="black pawn"><kbd>p</kbd><span>β™Ÿ</span></button>
  217. <button title="white spade"><kbd>S</kbd><span>♀</span></button>
  218. <button title="white club"><kbd>C</kbd><span>♧</span></button>
  219. <button title="white heart"><kbd>H</kbd><span>β™‘</span></button>
  220. <button title="white diamond"><kbd>D</kbd><span>β™’</span></button>
  221. <button title="white man"><kbd>M</kbd><span>⛀</span></button>
  222. <button title="white lady"><kbd>L</kbd><span>⛁</span></button>
  223. <button title="black spade"><kbd>s</kbd><span>β™ </span></button>
  224. <button title="black club"><kbd>c</kbd><span>♣</span></button>
  225. <button title="black heart"><kbd>h</kbd><span>β™₯</span></button>
  226. <button title="black diamond"><kbd>d</kbd><span>♦</span></button>
  227. <button title="black man"><kbd>m</kbd><span>β›‚</span></button>
  228. <button title="black lady"><kbd>l</kbd><span>⛃</span></button>
  229. </div>
  230. <label for="pi_chess_spectrum" title="spectrum">spectrum
  231. <select id="pi_chess_spectrum">
  232. <option value="white_black">yin yang</option>
  233. <option value="blue_red">political</option>
  234. <option value="yellow_green">lemon</option>
  235. <option value="pink_purple">prince</option>
  236. <option value="two_letters">2 letters</option>
  237. </select><label id="pi_chess_spectrum_sample" class="spectrum white_black"></label>
  238. </label>
  239. </main>
  240. </body>
  241. </html>
  242.  

Proinf.net