Small tweaks

pull/1/head
Charlotte Som 2021-11-05 20:57:10 +00:00
parent 30d1429e83
commit caf96d1d04
3 changed files with 13 additions and 10 deletions

View File

@ -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>

View File

@ -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,
}
}));
}
});
}

View File

@ -118,7 +118,8 @@ button.small-button {
display: none;
}
.user-join {
.user-join,
.user-leave {
font-style: italic;
}