~starkingdoms/starkingdoms

ref: 7223c99da99e68fea869c26b2f8378fb7c7ad9fd starkingdoms/starkingdoms-client/src/chat.ts -rw-r--r-- 245 bytes
7223c99d — core remove old API in prep for replacement with new Go API 2 years ago
                                                                                
1
2
3
4
5
6
7
export function addMessage(classname: string, message: string) {
  let p = document.createElement("p");
  p.innerText = message;
  p.classList.add("message");
  p.classList.add(classname);
  document.getElementById("chatbox")!.appendChild(p);
}