working more on the client
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user