Lively Kernel canvas
// this script is evaluated on world load
MyConsole = WorldMorph.current().submorphs.detect(function(ea){return ea.name == "MyConsole"});
if(!MyConsole) return;
MyConsole = MyConsole.component;
MyConsole.setText("-- start --");
MyConsole.log = function(s) {
this.setText(this.formalModel.getText() + "\n" + s);
};
MyConsole.log("My Console initialized!");
MyConsole.morph.resetScrollPane = function() {
var sp = this.enclosingScrollPane();
if (sp) sp.scrollToBottom();
};
// console.consumers seems to be broken... so we go the hard waz
console.log = console.log.wrap(function(proceed, s) {
MyConsole.log(s)
proceed(s)})
console.log("wrapped console for MyConsole successfully")
MediaUpload40
10000.5827591000572868Wikicontroltrue
10001.3843601736072326e-20Wikicontroltrue
10006.741435533636259e-13Wikicontroltrue
10006.051804659095338e-20Wikicontroltrue
10001.0554031991481936Wikicontroltrue
Touploadfilesintothe/media:-dragfilesonbutton-openfilechoosesandselectmultiplefiles4
10006.0862521992088645Wikicontroltrue
null0null
nullnull56