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")
-----falsetruefalse0
fontCourier12:spacewidth7from21xWidth7falsetruefalse0
fontHelvetica40:spacewidth11from51xWidth20falsetruefalse0
fitWidthfailureonTextMorph.getCharBoundsfalsetruefalse0
worldis1:WorldMorph([[0,0,2000,2000]])falsetruefalse0
Errorevaluatinginitializer:SyntaxError:Invalidreturnstatement.falsetruefalse0
startingWikiNavigatorfalsetruefalse0
status207onPROPFINDhttp://lively-kernel.org/repository/webwerkstatt/draft/DraftPDFObject.xhtmlfalsetruefalse0
status207onPROPFINDhttp://lively-kernel.org/repository/webwerkstatt/draft/DraftPDFObject.xhtmlfalsetruefalse0
http://lively-kernel.org/repository/webwerkstatt/draft/../anonymous_module_3loadedin42msfalsetruefalse0
http://lively-kernel.org/repository/webwerkstatt/draft/../anonymous_module_2loadedin865msfalsetruefalse0
Moduleloadcheckdone.37modulesloaded.falsetruefalse0
-------------------------------------------falsetruefalse0
invoke94117:SelectionMorph([[0,0,575,398]])falsetruefalse0
mousemovedaway....falsetruefalse0
-------------------------------------------falsetruefalse0
invoke1:WorldMorph([[0,0,2000,2000]])falsetruefalse0
problemstoparsehttp://lively-kernel.org/repository/webwerkstatt/draft/DraftPDFObject.xhtml?1275295067067falsetruefalse0
extendForSerializationundefinedfalsetruefalse0841-1nulltrue0false
truetruefalse
false1truefalse
nullfalse
nullfalse
nullfalse
nullfalsefalsetruetruefalse
truetrue100falsetrue
truefalsenull050
nullfalsetruenullfalse
Consolefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
DraftPDFObject40
if($morph('PdfObject'))$morph('PdfObject').remove()m=newXenoMorph(newRectangle(100,200,500,300))m.name="PdfObject"m.handlesMouseDown=function(){returntrue};m.onMouseDown=function(){returnfalse};m.onMouseMove=function(){returnfalse};m.openInWorld()m.foRawNode.removeChild(m.foRawNode.childNodes[0])//<objecttype="application/pdf"data="file1.pdf"width="500"height="650"></object>obj=document.createElement("object");obj.setAttribute("type","application/pdf");obj.setAttribute("data","http://lively-kernel.org/repository/webwerkstatt/papers/Krahn_2010_OperationalTransformations.pdf");obj.setAttribute("width","100");obj.setAttribute("height","100");//m.foRawNode.appendChild(obj);varurl="http://lively-kernel.org/repository/webwerkstatt/papers/Krahn_2010_OperationalTransformations.pdf";varname="myPDF";varextent=pt(300,300)varstring=Strings.format('<bodyxmlns="http://www.w3.org/1999/xhtml"><embedsrc="%s"qtsrc="%s"type="application/pdf"width="%s"height="%s"/></body>',url,url,extent.x,extent.y);varnode=document.adoptNode(stringToXML(string));m.foRawNode.appendChild(node);\n\robj = document.createElement(\"object\");\robj.setAttribute(\"type\", \"application/pdf\");\nobj.setAttribute(\"data\", \"http://lively-kernel.org/repository/webwerkstatt/papers/Krahn_2010_OperationalTransformations.pdf\"); \nobj.setAttribute(\"width\", \"100\");\nobj.setAttribute(\"height\", \"100\");\n\n// m.foRawNode.appendChild(obj);\r\n\nvar url = \"http://lively-kernel.org/repository/webwerkstatt/papers/Krahn_2010_OperationalTransformations.pdf\";\nvar name = \"myPDF\";\nvar extent = pt(300,300)\nvar string = Strings.format('', url, url, extent.x, extent.y);\nvar node = document.adoptNode(stringToXML(string));\nm.foRawNode.appendChild(node);\n\r \n"]]>truetruefalsefalse36\n\robj = document.createElement(\"object\");\robj.setAttribute(\"type\", \"application/pdf\");\nobj.setAttribute(\"data\", \"http://lively-kernel.org/repository/webwerkstatt/papers/Krahn_2010_OperationalTransformations.pdf\"); \nobj.setAttribute(\"width\", \"100\");\nobj.setAttribute(\"height\", \"100\");\n\n// m.foRawNode.appendChild(obj);\r\n\nvar url = \"http://lively-kernel.org/repository/webwerkstatt/papers/Krahn_2010_OperationalTransformations.pdf\";\nvar name = \"myPDF\";\nvar extent = pt(300,300)\nvar string = Strings.format('', url, url, extent.x, extent.y);\nvar node = document.adoptNode(stringToXML(string));\nm.foRawNode.appendChild(node);\n\r \n"]]>truetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
10003.2682540857045774Wikicontroltrue
null47