This commit is contained in:
Cay 2026-03-12 11:40:31 +00:00
parent 801f6e2831
commit 0cdf649e3a
2 changed files with 11 additions and 3 deletions

View File

@ -205,8 +205,6 @@
width: 350px;
max-height: 200px;
background: linear-gradient(#2b2115, #1a140d);
border: 3px solid #8b6a3c;
@ -237,3 +235,13 @@
#online-list div:hover {
background: #5b4325;
}
.online-dot {
display: inline-block;
width: 8px;
height: 8px;
background: #3cff3c;
border-radius: 50%;
margin-right: 6px;
box-shadow: 0 0 6px #3cff3c;
}

View File

@ -97,7 +97,7 @@ socket.on("onlineUsers", (users) => {
const name = typeof user === "object" ? user.name : user;
div.innerText = name;
div.innerHTML = `<span class="online-dot"></span> ${name}`;
div.onclick = () => {
document.getElementById("chat-text").value = "/w " + name + " ";