瀏覽代碼

display additional form

Nicolas Winkler 4 年之前
父節點
當前提交
aa54101c26
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      static/index.html

+ 7 - 0
static/index.html

@@ -68,6 +68,7 @@
                         playerlist = playerlist + ", " + obj.game_state.players[i];
                     }
                     $('#status').html("Players: " + playerlist);
+                    $('#createform').toggle();
                 }
                 else {
                     $('#status').html("Unknown Message recieved");
@@ -85,6 +86,12 @@
   <input id="join" type="button" value="Join" />
   <input id="create" type="button" value="Create Game" />
 </form>
+
+<form id="createform" style="display:none">
+  <label for="word">Game ID:</label>
+  <input id="word" type="text" /><br>
+  <input id="submit" type="button" value="Submit Word" />
+</form>
 <div id="status">
 </div>
 </body>