mirror of https://github.com/dirtbags/moth.git
20 lines
686 B
JavaScript
20 lines
686 B
JavaScript
var messages_proc;
|
|
|
|
function Messages(element) {
|
|
var term = new Terminal(element);
|
|
|
|
this.start = function() {
|
|
term.clear();
|
|
term.par("Messages terminal");
|
|
term.par("I've long wanted a way to communicate things to participants, like «yes, we're aware that JS 12 is broken, we are working on it», or «tanks category is now open!». This might have updates about people scoring points, or provide a chat service (although that has not historically been well-utilized).");
|
|
}
|
|
}
|
|
|
|
|
|
function messages_start() {
|
|
messages_proc = new Messages(document.getElementById("messages"));
|
|
setTimeout(messages_proc.start, 500);
|
|
}
|
|
|
|
window.addEventListener("load", messages_start);
|