~starkingdoms/starkingdoms

ref: 45388bdd8f53cc14d79b50adc0c517b4cfd9b996 starkingdoms/starkingdoms-client/src/chat.ts -rw-r--r-- 245 bytes
45388bdd — core split into multiple pipelines 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);
}