Implement session display

This commit is contained in:
Kai Vogelgesang
2020-04-17 02:18:24 +02:00
parent 0f23259e04
commit ee708e9127
3 changed files with 12 additions and 4 deletions

View File

@@ -8,8 +8,10 @@
<body>
this is the UI
<!--<button id="test_api">Test API</button>-->
<br>
<span id="current_session">You are not in any session.</span>
<br>
<br>
<button id="btn_create_session">Create session</button>
<br><br><br>
<input id="join_session_id" type="text" placeholder="Enter session id" />
@@ -26,7 +28,7 @@ this is the UI
})
};
document.getElementById("btn_join_session").onclick = async function (e) {
let text = document.getElementById("join_session_id").value
let text = document.getElementById("join_session_id").value;
let data = {"sessionid": text};
await fetch('api/join_session', {