mirror of https://github.com/dirtbags/moth.git
41 lines
1.3 KiB
JavaScript
41 lines
1.3 KiB
JavaScript
var main_proc;
|
|
|
|
function Main(element) {
|
|
console.log(element);
|
|
var term = new Terminal(element);
|
|
|
|
this.start = function() {
|
|
console.log(element);
|
|
term.clear();
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main terminal");
|
|
term.par("Main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main main terminal");
|
|
}
|
|
}
|
|
|
|
|
|
function main_start() {
|
|
main_proc = new Main(document.getElementById("main"));
|
|
setTimeout(main_proc.start, 2500);
|
|
}
|
|
|
|
window.addEventListener("load", main_start);
|