News for hackers. Stuff that matters.
Re:I created an ephemeral group chat app for strangers by beeboobaa on Thursday December 28, 2023 @07:00AM (#38792582)
Easy fix: In your script.js in the appendMessage function do this:

    const chatMessage = document.createElement("div");
    chatMessage.classList.add("chat-message");
    chatMessage.innerHTML = `<span class="username" style="color: ${color};">${username}:</span> `;
    const userMessage = document.createElement('span');
    span.innerText = message;
    chatMessage.appendChild(userMessage);
    chatContainer.appendChild(chatMessage);
    chatContainer.scrollTop = chatContainer.scrollHeight;
Re:I created an ephemeral group chat app for strangers by bossyTeacher on Thursday December 28, 2023 @09:28AM (#38793769)
I love how people here actually check the source code of a website. So HN