moth/www/res/messages.js

23 lines
720 B
JavaScript
Raw Permalink Normal View History

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