moth/www/res/messages.js

20 lines
686 B
JavaScript
Raw Normal View History

2016-04-03 21:12:48 -06:00
var messages_proc;
function Messages(element) {
var term = new Terminal(element);
this.start = function() {
term.clear();
term.par("Messages terminal");
2016-04-04 10:40:21 -06:00
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).");
2016-04-03 21:12:48 -06:00
}
}
function messages_start() {
messages_proc = new Messages(document.getElementById("messages"));
setTimeout(messages_proc.start, 500);
}
window.addEventListener("load", messages_start);