Implement session display
This commit is contained in:
8
ui.html
8
ui.html
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user