Skip to content
Snippets Groups Projects
Commit 5c32a75e authored by Artur Kunz's avatar Artur Kunz :dragon_face: Committed by Nils G.
Browse files

Button populates field and send to server to open room for five people

parent c5756f3b
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
URL: <input type="text" name="url" id="url" value="{{=URL('room','create')}}"><br> 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> <textarea rows=20 cols=80 id="input" placeholder="Your JSON parameters"></textarea><br>
<input type="submit"> <input type="submit">
<button id="new-room-btn">Mach einen Raum</button>
</form> </form>
</td> </td>
<td style="vertical-align: top"> <td style="vertical-align: top">
...@@ -46,6 +47,9 @@ Database from: {{=meta.creation}} ...@@ -46,6 +47,9 @@ Database from: {{=meta.creation}}
return (false); return (false);
}); });
$('#new-room-btn').click(function() {
$('#input').val('{"player_max": 5}')
});
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment