Lively Kernel canvas
* MIT license
*
* Includes enhancements by Scott Trenda
* and Kris Kowal
*
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted version of the given date.]]> 99 ? Math.round(L / 10) : L),
t: H < 12 ? "a" : "p",
tt: H < 12 ? "am" : "pm",
T: H < 12 ? "A" : "P",
TT: H < 12 ? "AM" : "PM",
Z: utc ? "UTC" : (String(date).match(timezone) || [""]).pop().replace(timezoneClip, ""),
o: (o > 0 ? "-" : "+") + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4),
S: ["th", "st", "nd", "rd"][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10]
};
return mask.replace(token, function ($0) {
return $0 in flags ? flags[$0] : $0.slice(1, $0.length - 1);
});
};
}();
// Some common format strings
dateFormat.masks = {
"default": "ddd mmm dd yyyy HH:MM:ss",
shortDate: "m/d/yy",
mediumDate: "mmm d, yyyy",
longDate: "mmmm d, yyyy",
fullDate: "dddd, mmmm d, yyyy",
shortTime: "h:MM TT",
mediumTime: "h:MM:ss TT",
longTime: "h:MM:ss TT Z",
isoDate: "yyyy-mm-dd",
isoTime: "HH:MM:ss",
isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
};
// Internationalization strings
dateFormat.i18n = {
dayNames: [
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
],
monthNames: [
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
]
};
// For convenience...
Date.prototype.format = function (mask, utc) {
return dateFormat(this, mask, utc);
};]]>
Draft40true
savefalsenulltruenull
Warn:unexpected:#<Relay{{"Text":"SourceString"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"Pane4Content":{},"Pane4Selection":{},"Pane4Menu":{},"Pane4Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>s delegate is #"]]>falsetruefalsetrue0
Warn:Cannotcorrectlyserializeconnectionshavingsourceortargetobjectsthathavenoid:AttributeConnection(345205:ButtonMorph([[undefined,undefined,117.14286041259766,22]]).fire-->[objectObject].trigger()) [object Object].trigger())"]]>falsetruefalsetrue0
wha',norawnodeon#<ModelPlug{setIsActive:setIsActive,getIsActive:getIsActive}>"]]>falsetruefalsetrue0
Warn:Cannotcorrectlyserializeconnectionshavingsourceortargetobjectsthathavenoid:AttributeConnection(345210:ButtonMorph([[0.00013958739873487502,undefined,117.14286041259766,22]]).fire-->[objectObject].trigger()) [object Object].trigger())"]]>falsetruefalsetrue0
wha',norawnodeon#<ModelPlug{setIsActive:setIsActive,getIsActive:getIsActive}>"]]>falsetruefalsetrue0
Warn:Cannotcorrectlyserializeconnectionshavingsourceortargetobjectsthathavenoid:AttributeConnection(345215:ButtonMorph([[0.00027917479746975005,undefined,117.14286041259766,22]]).fire-->[objectObject].trigger()) [object Object].trigger())"]]>falsetruefalsetrue0
wha',norawnodeon#<ModelPlug{setIsActive:setIsActive,getIsActive:getIsActive}>"]]>falsetruefalsetrue0
Warn:Cannotcorrectlyserializeconnectionshavingsourceortargetobjectsthathavenoid:AttributeConnection(345220:ButtonMorph([[0.00044165042345412076,undefined,117.14286041259766,22]]).fire-->[objectObject].trigger()) [object Object].trigger())"]]>falsetruefalsetrue0
wha',norawnodeon#<ModelPlug{setIsActive:setIsActive,getIsActive:getIsActive}>"]]>falsetruefalsetrue0
Warn:Cannotcorrectlyserializeconnectionshavingsourceortargetobjectsthathavenoid:AttributeConnection(345225:ButtonMorph([[-0.00044165042345412076,undefined,117.14286041259766,22]]).fire-->[objectObject].trigger()) [object Object].trigger())"]]>falsetruefalsetrue0
wha',norawnodeon#<ModelPlug{setIsActive:setIsActive,getIsActive:getIsActive}>"]]>falsetruefalsetrue0
Warn:Cannotcorrectlyserializeconnectionshavingsourceortargetobjectsthathavenoid:AttributeConnection(345230:ButtonMorph([[-0.0002944336156360805,undefined,117.14286041259766,22]]).fire-->[objectObject].trigger()) [object Object].trigger())"]]>falsetruefalsetrue0
wha',norawnodeon#<ModelPlug{setIsActive:setIsActive,getIsActive:getIsActive}>"]]>falsetruefalsetrue0
Warn:Cannotcorrectlyserializeconnectionshavingsourceortargetobjectsthathavenoid:AttributeConnection(345235:ButtonMorph([[-0.00011669922241708264,undefined,117.14286041259766,22]]).fire-->[objectObject].trigger()) [object Object].trigger())"]]>falsetruefalsetrue0
wha',norawnodeon#<ModelPlug{setIsActive:setIsActive,getIsActive:getIsActive}>"]]>falsetruefalsetrue0
wha',norawnodeon#<ModelPlug{setValue:action}>"]]>falsetruefalsetrue0
wha',norawnodeon#<ModelPlug{setValue:action}>"]]>falsetruefalsetrue0
wha',norawnodeon#<ModelPlug{setValue:action}>"]]>falsetruefalsetrue0
stripmorph:[objectSVGGElement]falsetruefalsetrue0
statusmsg:falsetruefalsetrue0
enableProgressfalsetruefalsetrue0
successpublishingworldathttp://www.lively-kernel.org/repository/webwerkstatt/projects/CodeDB/import-export.xhtml,status204falsetruefalsetrue0
finishedsavingfalsetruefalsetrue0
statusmsg:worldsavedtoundefinedin7378ms(6260msserialization)1falsetruefalsetrue0
doinspectfalsetruefalsetrue0
Finishedparsingin0.866sfalsetruefalsetrue0
statusmsg:Error:Nofilenamefordescriptornullfalsetruefalsetrue0
status200onGEThttp://www.lively-kernel.org/repository/lively-kernel/trunk/source/kernel/lively/Base.jsfalsetruefalsetrue0
status200onGEThttp://www.lively-kernel.org/repository/lively-kernel/trunk/source/kernel/lively/Base.jsfalsetruefalsetrue0
Finishedparsingin0.824sfalsetruefalsetrue0
doinspectfalsetruefalsetrue0
Finishedparsingin0.766sfalsetruefalsetrue0
ErrorduringSyntaxHighligthingTypeError:Resultofexpression'this.lines'[null]isnotanobject.falsetruefalsetrue0
ErrorduringSyntaxHighligthingTypeError:Resultofexpression'this.lines'[null]isnotanobject.falsetruefalsetrue0
status200onGEThttp://www.lively-kernel.org/repository/webwerkstatt/lively/ChangeSet.js?time=1282833493989falsetruefalsetrue0
status200onGEThttp://www.lively-kernel.org/repository/webwerkstatt/lively/ChangeSet.js?time=1282833493989falsetruefalsetrue0
Finishedparsingin0.292sfalsetruefalsetrue0
ErrorduringSyntaxHighligthingTypeError:Resultofexpression'this.lines'[null]isnotanobject.falsetruefalsetrue0
ErrorduringSyntaxHighligthingTypeError:Resultofexpression'this.lines'[null]isnotanobject.falsetruefalsetrue0
status200onGEThttp://www.lively-kernel.org/repository/webwerkstatt/lively/Tools.js?time=1282833506127falsetruefalsetrue0
status200onGEThttp://www.lively-kernel.org/repository/webwerkstatt/lively/Tools.js?time=1282833506127falsetruefalsetrue0
Finishedparsingin0.774sfalsetruefalsetrue0
ErrorduringSyntaxHighligthingTypeError:Resultofexpression'this.lines'[null]isnotanobject.falsetruefalsetrue0
status200onGEThttp://www.lively-kernel.org/repository/webwerkstatt/lively/Network.js?time=1282833588829falsetruefalsetrue0
status200onGEThttp://www.lively-kernel.org/repository/webwerkstatt/lively/Network.js?time=1282833588829falsetruefalsetrue0
Finishedparsingin0.455sfalsetruefalsetrue0
unregisterbrowser:#<lively.ide.SystemBrowser:[objectSVGElement]>"]]>falsetruefalsetrue0
statusmsg:serializing....falsetruefalsetrue0
problemstoparsehttp://www.lively-kernel.org/repository/webwerkstatt/projects/CodeDB/import-export.xhtmlfalsetruefalsetrue0
extendForSerialization[objectSVGDefsElement]falsetruefalsetrue0867.00001s delegate is #"]]>
[object Object].trigger())"]]>
"]]>
[object Object].trigger())"]]>
"]]>
[object Object].trigger())"]]>
"]]>
[object Object].trigger())"]]>
"]]>
[object Object].trigger())"]]>
"]]>
[object Object].trigger())"]]>
"]]>
[object Object].trigger())"]]>
"]]>
"]]>
"]]>
"]]>
"]]>
-1nullnulltrue0falsetruetruefalse
false1truefalse
nullfalse
nullfalse
nullfalse
nullfalsefalsetruetruefalse
truetrue100truefalse
truefalse050
nullfalsetruenullfalse
Consolefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
Wikicontroltruetrue
functionupload2cdb(cdb,file){vardb=newCouchDB(cdb);varinfo=db.open('filesystem');varurl2=newURL('http://www.lively-kernel.org/repository/lively-kernel/trunk/source/kernel/'+file);varresource2=newWebResource(url2);varcontent=resource2.getContent();varurl=newURL('http://www.lively-kernel.org/couchdb/'+cdb+'/filesystem/'+file+'?rev='+info._rev);varresource=newWebResource(url);resource.put(content,'application/x-javascript');}upload2cdb('code_db2','lively/Connector.js');14truetruefalsetruetrue
false00.11truefalsetruetrue
nullfalsetruenull
Workspacefalsenulltruefalse
false
false
falsenullfalsefalsenullnullnullnullfalse
url=newURL('http://www.lively-kernel.org/repository/lively-kernel/trunk/source/kernel/lively/Base.js');resource=newWebResource(url);content=resource.getContent();fragments=newJsParser().parseSource(content,{fileName:'lively/Base.js'});1truetruefalsetruetrue
false00.11truefalsetruetrue
nullfalsetruenull
Workspacefalsenulltruefalse
false
false
falsenullfalsefalsenullnullnullnullfalse
null179