Skip to content

Commit

Permalink
add chat notice
Browse files Browse the repository at this point in the history
  • Loading branch information
mudkipdev committed Dec 2, 2024
1 parent 5c71f6a commit 00d9eaf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/chat/Chat.astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
console.error("could not find chat elements");
}

let welcomeElement = document.createElement("li");
welcomeElement.innerHTML = "<i>welcome to the chat, this isn't a real thing yet</i>";
welcomeElement.style.color = "var(--surface-5)";
history.appendChild(welcomeElement);

input.addEventListener("keydown", (event: KeyboardEvent) => {
if (event.key === "Enter") {
event.preventDefault();
Expand Down

0 comments on commit 00d9eaf

Please sign in to comment.