working more on the client

This commit is contained in:
Benjamin Kyd
2021-03-20 17:55:57 +00:00
parent e593122ae2
commit 18e28afbb5
3 changed files with 19 additions and 4 deletions

View File

@@ -71,11 +71,14 @@
</div>
<div id="lobby-active" style="display:none">
<!--Generated in code-->
</div>
<textarea id="log-console" rows="10" cols=auto placeholder="log console" disabled></textarea>
<div id="console">
<textarea id="log-console" rows="10" cols=auto placeholder="log console" disabled></textarea>
<input id="log-console-message" type="text" placeholder="message"> <input id="log-console-button" type="button" value="send" onclick="sendMessage()">
</div>
<script src="index.js"></script>
<script src="init.js"></script>

View File

@@ -8,5 +8,18 @@ textarea {
box-sizing: border-box;
width: 100%;
position: fixed;
bottom: 0;
bottom: 20pt;
}
#log-console-message {
width: 92%;
position: fixed;
bottom: 2pt;
}
#log-console-button {
width: 6%;
position: fixed;
bottom: 2pt;
right: 2pt;
}

View File

@@ -261,7 +261,6 @@ function HandleDisconnect(socket, args)
function LobbyUpdateCallback(user, lobby, state)
{
// TODO: if the lobby was destroyed, users and spectators need to be kicked
// Just send updated lobby object for now
io.to(lobby.uid).emit('lobby-update', {
state: state,