From 5c32a75e4e8cf6b8d102621870c5025631c32338 Mon Sep 17 00:00:00 2001
From: Aitur <artur.kunz@ruhr-uni-bochum.de>
Date: Tue, 5 May 2020 12:45:20 +0200
Subject: [PATCH] Button populates field and send to server to open room for
 five people

---
 views/debug/index.html | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/views/debug/index.html b/views/debug/index.html
index 31b2c5e..021f5f4 100644
--- a/views/debug/index.html
+++ b/views/debug/index.html
@@ -10,6 +10,7 @@
                 URL: <input type="text" name="url" id="url" value="{{=URL('room','create')}}"><br>
                 <textarea rows=20 cols=80 id="input" placeholder="Your JSON parameters"></textarea><br>
                 <input type="submit">
+                <button id="new-room-btn">Mach einen Raum</button>
             </form>
         </td>
         <td style="vertical-align: top">
@@ -46,6 +47,9 @@ Database from: {{=meta.creation}}
         return (false);
 
     });
+  $('#new-room-btn').click(function() {
+      $('#input').val('{"player_max": 5}')
+   });
 </script>
 
 <script type="text/javascript">
-- 
GitLab