A simple TicTacToe app with Golang backend and WebSockets gluing it all together.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <title>TicTacToe :: {{ .title }}</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. <link rel="stylesheet" type="text/css" media="screen" href="/static/main.css" />
  9. </head>
  10. <body>
  11. <div class=wrapper>
  12. <h1>TicTacToe</h1>
  13. <div id=status></div>
  14. <div id=gameTable class=hide>
  15. <table>
  16. <tr>
  17. <td id=pos_0 class=tile>T</td>
  18. <td id=pos_1 class=tile>I</td>
  19. <td id=pos_2 class=tile>C</td>
  20. </tr>
  21. <tr>
  22. <td id=pos_3 class=tile>T</td>
  23. <td id=pos_4 class=tile>A</td>
  24. <td id=pos_5 class=tile>C</td>
  25. </tr>
  26. <tr>
  27. <td id=pos_6 class=tile>T</td>
  28. <td id=pos_7 class=tile>O</td>
  29. <td id=pos_8 class=tile>E</td>
  30. </tr>
  31. </table>
  32. </div>
  33. </div>
  34. <script src="/static/bundle.js"></script>
  35. </body>
  36. </html>