Small tweaks

This commit is contained in:
videogame hacker 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> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>watch party :D</title> <title>watch party :D</title>
<link rel="stylesheet" href="/styles.css?v=1" /> <link rel="stylesheet" href="/styles.css?v=2" />
</head> </head>
<body> <body>
@ -47,6 +47,6 @@
</form> </form>
</div> </div>
<script src="/main.js?v=1"></script> <script src="/main.js?v=2"></script>
</body> </body>
</html> </html>

View file

@ -253,6 +253,7 @@ const setupChatboxEvents = (socket) => {
const input = chatForm.querySelector("input"); const input = chatForm.querySelector("input");
const content = input.value; const content = input.value;
if (content.trim().length) {
input.value = ""; input.value = "";
socket.send(JSON.stringify({ socket.send(JSON.stringify({
@ -261,6 +262,7 @@ const setupChatboxEvents = (socket) => {
"message": content, "message": content,
} }
})); }));
}
}); });
} }

View file

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