play.jade 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. extends layout
  2. block head
  3. script(type='text/javascript')
  4. $token = '#{token}';
  5. $time = #{time};
  6. $increment = #{increment};
  7. script(type='text/javascript', src='/javascripts/play.js')
  8. block content
  9. header.clearfix
  10. a.button(href='/') New game
  11. a.button.resign Resign
  12. a.chat
  13. img#bubble(src='/images/chat.svg', width='50', height='50')
  14. | Chat
  15. audio(id='moveSnd', preload='auto')
  16. source(src='/sounds/move.mp3')
  17. source(src='/sounds/move.ogg')
  18. audio(id='messageSnd', preload='auto')
  19. source(src='/sounds/message.mp3')
  20. #chat-wrapper
  21. h4 Chat
  22. a.close x
  23. ul#chat
  24. span Write your message:
  25. form#sendMessage
  26. input
  27. #board_moves_wrapper.clearfix
  28. label(id='sounds_label')
  29. input(type='checkbox', id='sounds')
  30. | Enable sounds
  31. #board_wrapper
  32. #captured-pieces
  33. ul.w
  34. ul.b
  35. table.chess_board.white
  36. tr
  37. td.A8(data-id='A8')
  38. a.black.rook(href='#') ♜
  39. td.B8(data-id='B8')
  40. a.black.knight(href='#') ♞
  41. td.C8(data-id='C8')
  42. a.black.bishop(href='#') ♝
  43. td.D8(data-id='D8')
  44. a.black.king(href='#') ♛
  45. td.E8(data-id='E8')
  46. a.black.queen(href='#') ♚
  47. td.F8(data-id='F8')
  48. a.black.bishop(href='#') ♝
  49. td.G8(data-id='G8')
  50. a.black.knight(href="#") ♞
  51. td.H8(data-id='H8')
  52. a.black.rook(href='#') ♜
  53. tr
  54. td.A7(data-id='A7')
  55. a.black.pawn(href='#') ♟
  56. td.B7(data-id='B7')
  57. a.black.pawn(href='#') ♟
  58. td.C7(data-id='C7')
  59. a.black.pawn(href='#') ♟
  60. td.D7(data-id='D7')
  61. a.black.pawn(href='#') ♟
  62. td.E7(data-id='E7')
  63. a.black.pawn(href='#') ♟
  64. td.F7(data-id='F7')
  65. a.black.pawn(href='#') ♟
  66. td.G7(data-id='G7')
  67. a.black.pawn(href='#') ♟
  68. td.H7(data-id='H7')
  69. a.black.pawn(href='#') ♟
  70. tr
  71. td.A6(data-id='A6')
  72. td.B6(data-id='B6')
  73. td.C6(data-id='C6')
  74. td.D6(data-id='D6')
  75. td.E6(data-id='E6')
  76. td.F6(data-id='F6')
  77. td.G6(data-id='G6')
  78. td.H6(data-id='H6')
  79. tr
  80. td.A5(data-id='A5')
  81. td.B5(data-id='B5')
  82. td.C5(data-id='C5')
  83. td.D5(data-id='D5')
  84. td.E5(data-id='E5')
  85. td.F5(data-id='F5')
  86. td.G5(data-id='G5')
  87. td.H5(data-id='H5')
  88. tr
  89. td.A4(data-id='A4')
  90. td.B4(data-id='B4')
  91. td.C4(data-id='C4')
  92. td.D4(data-id='D4')
  93. td.E4(data-id='E4')
  94. td.F4(data-id='F4')
  95. td.G4(data-id='G4')
  96. td.H4(data-id='H4')
  97. tr
  98. td.A3(data-id='A3')
  99. td.B3(data-id='B3')
  100. td.C3(data-id='C3')
  101. td.D3(data-id='D3')
  102. td.E3(data-id='E3')
  103. td.F3(data-id='F3')
  104. td.G3(data-id='G3')
  105. td.H3(data-id='H3')
  106. tr
  107. td.A2(data-id='A2')
  108. a.white.pawn(href='#') ♙
  109. td.B2(data-id='B2')
  110. a.white.pawn(href='#') ♙
  111. td.C2(data-id='C2')
  112. a.white.pawn(href='#') ♙
  113. td.D2(data-id='D2')
  114. a.white.pawn(href='#') ♙
  115. td.E2(data-id='E2')
  116. a.white.pawn(href='#') ♙
  117. td.F2(data-id='F2')
  118. a.white.pawn(href='#') ♙
  119. td.G2(data-id='G2')
  120. a.white.pawn(href='#') ♙
  121. td.H2(data-id='H2')
  122. a.white.pawn(href='#') ♙
  123. tr
  124. td.A1(data-id='A1')
  125. a.white.rook(href='#') ♖
  126. td.B1(data-id='B1')
  127. a.white.night(href='#') ♘
  128. td.C1(data-id='C1')
  129. a.white.bishop(href='#') ♗
  130. td.D1(data-id='D1')
  131. a.white.king(href='#') ♕
  132. td.E1(data-id='E1')
  133. a.white.wife(href='#') ♔
  134. td.F1(data-id='F1')
  135. a.white.bishop(href='#') ♗
  136. td.G1(data-id='G1')
  137. a.white.night(href='#') ♘
  138. td.H1(data-id='H1')
  139. a.white.rook(href='#') ♖
  140. table.chess_board.black(style='display: none;')
  141. tr
  142. td.H1(data-id='H1')
  143. a.white.rook(href='#') ♖
  144. td.G1(data-id='G1')
  145. a.white.night(href='#') ♘
  146. td.F1(data-id='F1')
  147. a.white.bishop(href='#') ♗
  148. td.E1(data-id='E1')
  149. a.white.king(href='#') ♔
  150. td.D1(data-id='D1')
  151. a.white.queen(href='#') ♕
  152. td.C1(data-id='C1')
  153. a.white.bishop(href='#') ♗
  154. td.B1(data-id='B1')
  155. a.white.knight(href='#') ♘
  156. td.A1(data-id='A1')
  157. a.white.rook(href='#') ♖
  158. tr
  159. td.H2(data-id='H2')
  160. a.white.pawn(href='#') ♙
  161. td.G2(data-id='G2')
  162. a.white.pawn(href='#') ♙
  163. td.F2(data-id='F2')
  164. a.white.pawn(href='#') ♙
  165. td.E2(data-id='E2')
  166. a.white.pawn(href='#') ♙
  167. td.D2(data-id='D2')
  168. a.white.pawn(href='#') ♙
  169. td.C2(data-id='C2')
  170. a.white.pawn(href='#') ♙
  171. td.B2(data-id='B2')
  172. a.white.pawn(href='#') ♙
  173. td.A2(data-id='A2')
  174. a.white.pawn(href='#') ♙
  175. tr
  176. td.H3(data-id='H3')
  177. td.G3(data-id='G3')
  178. td.F3(data-id='F3')
  179. td.E3(data-id='E3')
  180. td.D3(data-id='D3')
  181. td.C3(data-id='C3')
  182. td.B3(data-id='B3')
  183. td.A3(data-id='A3')
  184. tr
  185. td.H4(data-id='H4')
  186. td.G4(data-id='G4')
  187. td.F4(data-id='F4')
  188. td.E4(data-id='E4')
  189. td.D4(data-id='D4')
  190. td.C4(data-id='C4')
  191. td.B4(data-id='B4')
  192. td.A4(data-id='A4')
  193. tr
  194. td.H5(data-id='H5')
  195. td.G5(data-id='G5')
  196. td.F5(data-id='F5')
  197. td.E5(data-id='E5')
  198. td.D5(data-id='D5')
  199. td.C5(data-id='C5')
  200. td.B5(data-id='B5')
  201. td.A5(data-id='A5')
  202. tr
  203. td.H6(data-id='H6')
  204. td.G6(data-id='G6')
  205. td.F6(data-id='F6')
  206. td.E6(data-id='E6')
  207. td.D6(data-id='D6')
  208. td.C6(data-id='C6')
  209. td.B6(data-id='B6')
  210. td.A6(data-id='A6')
  211. tr
  212. td.H7(data-id='H7')
  213. a.black.pawn(href='#') ♟
  214. td.G7(data-id='G7')
  215. a.black.pawn(href='#') ♟
  216. td.F7(data-id='F7')
  217. a.black.pawn(href='#') ♟
  218. td.E7(data-id='E7')
  219. a.black.pawn(href='#') ♟
  220. td.D7(data-id='D7')
  221. a.black.pawn(href='#') ♟
  222. td.C7(data-id='C7')
  223. a.black.pawn(href='#') ♟
  224. td.B7(data-id='B7')
  225. a.black.pawn(href='#') ♟
  226. td.A7(data-id='A7')
  227. a.black.pawn(href='#') ♟
  228. tr
  229. td.H8(data-id='H8')
  230. a.black.rook(href='#') ♜
  231. td.G8(data-id='G8')
  232. a.black.knight(href="#") ♞
  233. td.F8(data-id='F8')
  234. a.black.bishop(href='#') ♝
  235. td.E8(data-id='E8')
  236. a.black.king(href='#') ♚
  237. td.D8(data-id='D8')
  238. a.black.queen(href='#') ♛
  239. td.C8(data-id='C8')
  240. a.black.bishop(href='#') ♝
  241. td.B8(data-id='B8')
  242. a.black.knight(href='#') ♞
  243. td.A8(data-id='A8')
  244. a.black.rook(href='#') ♜
  245. table#moves.clearfix
  246. thead
  247. tr
  248. th Table of moves
  249. tbody
  250. tr
  251. span.promotion
  252. label(id='for_promotion') Promotion:
  253. select(id='promotion')
  254. option(value='q', selected) Queen
  255. option(value='r') Rook
  256. option(value='n') Knight
  257. option(value='b') Bishop
  258. span.feedback.whitefeedback
  259. span.feedback-move White to move.
  260. span.feedback-status