forked from FreakU/watch-party
Small tweaks
This commit is contained in:
parent
30d1429e83
commit
caf96d1d04
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>watch party :D</title>
|
||||
<link rel="stylesheet" href="/styles.css?v=1" />
|
||||
<link rel="stylesheet" href="/styles.css?v=2" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -47,6 +47,6 @@
|
|||
</form>
|
||||
</div>
|
||||
|
||||
<script src="/main.js?v=1"></script>
|
||||
<script src="/main.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -253,14 +253,16 @@ const setupChatboxEvents = (socket) => {
|
|||
|
||||
const input = chatForm.querySelector("input");
|
||||
const content = input.value;
|
||||
input.value = "";
|
||||
if (content.trim().length) {
|
||||
input.value = "";
|
||||
|
||||
socket.send(JSON.stringify({
|
||||
"op": "ChatMessage",
|
||||
"data": {
|
||||
"message": content,
|
||||
}
|
||||
}));
|
||||
socket.send(JSON.stringify({
|
||||
"op": "ChatMessage",
|
||||
"data": {
|
||||
"message": content,
|
||||
}
|
||||
}));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -118,7 +118,8 @@ button.small-button {
|
|||
display: none;
|
||||
}
|
||||
|
||||
.user-join {
|
||||
.user-join,
|
||||
.user-leave {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue