index.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!DOCTYPE html>
  2. <meta charset="utf-8" />
  3. <html>
  4. <head>
  5. <script src="jquery-3.5.1.js"></script>
  6. <script src="comm.js"></script>
  7. <script src="draggame.js"></script>
  8. <link rel="stylesheet" href="style.css">
  9. <title>Eichelhäutgerät</title>
  10. </head>
  11. <body>
  12. <div class="header">
  13. <h1>Welcome to Eichelhäutgerät</h1>
  14. </div>
  15. <aside class="side-control">
  16. <div id="side-info">
  17. <div id="lobby-control" style="display:none">
  18. <div id="lobby-info">
  19. </div>
  20. <h3>Connected Players</h3>
  21. <div id="player-list" class="player-list">
  22. </div>
  23. <button type="button" class="button" id="leave-lobby">Leave Lobby</button>
  24. </div>
  25. </div>
  26. </aside>
  27. <div class="main-container">
  28. <form id="loginform" class="loginform">
  29. <div class="row">
  30. <div class="label-col">
  31. <label for="gameId">Game ID:</label>
  32. </div>
  33. <div class="text-col">
  34. <input id="gameId" type="text" />
  35. </div>
  36. </div>
  37. <div class="row">
  38. <div class="label-col">
  39. <label for="nick">Nickname:</label>
  40. </div>
  41. <div class="text-col">
  42. <input id="nick" type="text" />
  43. </div>
  44. </div>
  45. <input id="join" type="button" value="Join" />
  46. <input id="create" type="button" value="Create Game" />
  47. </form>
  48. <div id="startingform" style="display:none">
  49. A new round is ready to be played. Click &quot;Ready&quot; to indicate that you are ready.
  50. <form>
  51. <input id="ready" type="button" value="Ready" />
  52. </form>
  53. </div>
  54. <div id="creating" style="margin: 0px; display:none">
  55. <div class="creating-container">
  56. <div class="question-text">
  57. Create a word sounding like...
  58. <div class="question-box" id="question-box">
  59. </div>
  60. </div>
  61. <div class="question-letters" >
  62. ... using the following letters:
  63. <div class="letter-box" id="letter-box">
  64. </div>
  65. </div>
  66. </div>
  67. <form id="createform">
  68. <label for="word">Word:</label>
  69. <input id="word" type="text" autocomplete="off" /><br>
  70. <input id="submit-word" type="submit" value="Submit Word" />
  71. </form>
  72. </div>
  73. <div id="guessing" style="display:none">
  74. You now have to guess!<br><br>
  75. <div id="guessing-draggame" style="display: flex;flex-direction: row; min-height: 110px;">
  76. <div id="dropzones" style="flex: 2;">
  77. </div>
  78. <div id="qdz-source" class="question-dropsource" ondragover="allowDrag(event)" ondrop="drop(event)" style="flex: 1">
  79. </div>
  80. </div>
  81. <form id="guessingform">
  82. <input id="submit-guess" type="submit" value="Submit Guess" />
  83. </form>
  84. </div>
  85. <div id="results" style="margin-top: 20px; display:none">
  86. <div id="guesses-table"></div>
  87. <table id="points-table" class="points-table"></table>
  88. </div>
  89. <div id="status">
  90. </div>
  91. </div>
  92. </body>
  93. </html>