moth/www/res/puzzles.js

20 lines
623 B
JavaScript
Raw Normal View History

2016-04-03 21:12:48 -06:00
var puzzles_proc;
function Puzzles(element) {
var term = new Terminal(element);
this.start = function() {
term.clear();
term.par("Puzzles terminal");
2016-04-04 10:40:21 -06:00
term.par("This is going to show you the list of open puzzles. It should refresh itself periodically, since not refreshing was a source of major confusion in the last setup, at least for kids, who seem not to realize what the reload button in the browser does.")
2016-04-03 21:12:48 -06:00
}
}
function puzzles_start() {
puzzles_proc = new Puzzles(document.getElementById("puzzles"));
setTimeout(puzzles_proc.start, 3000);
}
window.addEventListener("load", puzzles_start);