<!--{{{-->
<link rel='alternate' type='application/rss+xml' title='RSS' href='index.xml' />
<!--}}}-->
Background: #fff Foreground: #000 PrimaryPale: #8cf PrimaryLight: #18f PrimaryMid: #04b PrimaryDark: #014 SecondaryPale: #ffc SecondaryLight: #fe8 SecondaryMid: #db4 SecondaryDark: #841 TertiaryPale: #eee TertiaryLight: #ccc TertiaryMid: #999 TertiaryDark: #666 Error: #f88
/*{{{*/
body {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];}
a {color:[[ColorPalette::PrimaryMid]];}
a:hover {background-color:[[ColorPalette::PrimaryMid]]; color:[[ColorPalette::Background]];}
a img {border:0;}
h1,h2,h3,h4,h5,h6 {color:[[ColorPalette::SecondaryDark]]; background:transparent;}
h1 {border-bottom:2px solid [[ColorPalette::TertiaryLight]];}
h2,h3 {border-bottom:1px solid [[ColorPalette::TertiaryLight]];}
.button {color:[[ColorPalette::PrimaryDark]]; border:1px solid [[ColorPalette::Background]];}
.button:hover {color:[[ColorPalette::PrimaryDark]]; background:[[ColorPalette::SecondaryLight]]; border-color:[[ColorPalette::SecondaryMid]];}
.button:active {color:[[ColorPalette::Background]]; background:[[ColorPalette::SecondaryMid]]; border:1px solid [[ColorPalette::SecondaryDark]];}
.header {background:[[ColorPalette::PrimaryMid]];}
.headerShadow {color:[[ColorPalette::Foreground]];}
.headerShadow a {font-weight:normal; color:[[ColorPalette::Foreground]];}
.headerForeground {color:[[ColorPalette::Background]];}
.headerForeground a {font-weight:normal; color:[[ColorPalette::PrimaryPale]];}
.tabSelected{color:[[ColorPalette::PrimaryDark]];
background:[[ColorPalette::TertiaryPale]];
border-left:1px solid [[ColorPalette::TertiaryLight]];
border-top:1px solid [[ColorPalette::TertiaryLight]];
border-right:1px solid [[ColorPalette::TertiaryLight]];
}
.tabUnselected {color:[[ColorPalette::Background]]; background:[[ColorPalette::TertiaryMid]];}
.tabContents {color:[[ColorPalette::PrimaryDark]]; background:[[ColorPalette::TertiaryPale]]; border:1px solid [[ColorPalette::TertiaryLight]];}
.tabContents .button {border:0;}
#sidebar {}
#sidebarOptions input {border:1px solid [[ColorPalette::PrimaryMid]];}
#sidebarOptions .sliderPanel {background:[[ColorPalette::PrimaryPale]];}
#sidebarOptions .sliderPanel a {border:none;color:[[ColorPalette::PrimaryMid]];}
#sidebarOptions .sliderPanel a:hover {color:[[ColorPalette::Background]]; background:[[ColorPalette::PrimaryMid]];}
#sidebarOptions .sliderPanel a:active {color:[[ColorPalette::PrimaryMid]]; background:[[ColorPalette::Background]];}
.wizard {background:[[ColorPalette::PrimaryPale]]; border:1px solid [[ColorPalette::PrimaryMid]];}
.wizard h1 {color:[[ColorPalette::PrimaryDark]]; border:none;}
.wizard h2 {color:[[ColorPalette::Foreground]]; border:none;}
.wizardStep {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];
border:1px solid [[ColorPalette::PrimaryMid]];}
.wizardStep.wizardStepDone {background:[[ColorPalette::TertiaryLight]];}
.wizardFooter {background:[[ColorPalette::PrimaryPale]];}
.wizardFooter .status {background:[[ColorPalette::PrimaryDark]]; color:[[ColorPalette::Background]];}
.wizard .button {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::SecondaryLight]]; border: 1px solid;
border-color:[[ColorPalette::SecondaryPale]] [[ColorPalette::SecondaryDark]] [[ColorPalette::SecondaryDark]] [[ColorPalette::SecondaryPale]];}
.wizard .button:hover {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::Background]];}
.wizard .button:active {color:[[ColorPalette::Background]]; background:[[ColorPalette::Foreground]]; border: 1px solid;
border-color:[[ColorPalette::PrimaryDark]] [[ColorPalette::PrimaryPale]] [[ColorPalette::PrimaryPale]] [[ColorPalette::PrimaryDark]];}
.wizard .notChanged {background:transparent;}
.wizard .changedLocally {background:#80ff80;}
.wizard .changedServer {background:#8080ff;}
.wizard .changedBoth {background:#ff8080;}
.wizard .notFound {background:#ffff80;}
.wizard .putToServer {background:#ff80ff;}
.wizard .gotFromServer {background:#80ffff;}
#messageArea {border:1px solid [[ColorPalette::SecondaryMid]]; background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]];}
#messageArea .button {color:[[ColorPalette::PrimaryMid]]; background:[[ColorPalette::SecondaryPale]]; border:none;}
.popupTiddler {background:[[ColorPalette::TertiaryPale]]; border:2px solid [[ColorPalette::TertiaryMid]];}
.popup {background:[[ColorPalette::TertiaryPale]]; color:[[ColorPalette::TertiaryDark]]; border-left:1px solid [[ColorPalette::TertiaryMid]]; border-top:1px solid [[ColorPalette::TertiaryMid]]; border-right:2px solid [[ColorPalette::TertiaryDark]]; border-bottom:2px solid [[ColorPalette::TertiaryDark]];}
.popup hr {color:[[ColorPalette::PrimaryDark]]; background:[[ColorPalette::PrimaryDark]]; border-bottom:1px;}
.popup li.disabled {color:[[ColorPalette::TertiaryMid]];}
.popup li a, .popup li a:visited {color:[[ColorPalette::Foreground]]; border: none;}
.popup li a:hover {background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]]; border: none;}
.popup li a:active {background:[[ColorPalette::SecondaryPale]]; color:[[ColorPalette::Foreground]]; border: none;}
.popupHighlight {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];}
.listBreak div {border-bottom:1px solid [[ColorPalette::TertiaryDark]];}
.tiddler .defaultCommand {font-weight:bold;}
.shadow .title {color:[[ColorPalette::TertiaryDark]];}
.title {color:[[ColorPalette::SecondaryDark]];}
.subtitle {color:[[ColorPalette::TertiaryDark]];}
.toolbar {color:[[ColorPalette::PrimaryMid]];}
.toolbar a {color:[[ColorPalette::TertiaryLight]];}
.selected .toolbar a {color:[[ColorPalette::TertiaryMid]];}
.selected .toolbar a:hover {color:[[ColorPalette::Foreground]];}
.tagging, .tagged {border:1px solid [[ColorPalette::TertiaryPale]]; background-color:[[ColorPalette::TertiaryPale]];}
.selected .tagging, .selected .tagged {background-color:[[ColorPalette::TertiaryLight]]; border:1px solid [[ColorPalette::TertiaryMid]];}
.tagging .listTitle, .tagged .listTitle {color:[[ColorPalette::PrimaryDark]];}
.tagging .button, .tagged .button {border:none;}
.footer {color:[[ColorPalette::TertiaryLight]];}
.selected .footer {color:[[ColorPalette::TertiaryMid]];}
.sparkline {background:[[ColorPalette::PrimaryPale]]; border:0;}
.sparktick {background:[[ColorPalette::PrimaryDark]];}
.error, .errorButton {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::Error]];}
.warning {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::SecondaryPale]];}
.lowlight {background:[[ColorPalette::TertiaryLight]];}
.zoomer {background:none; color:[[ColorPalette::TertiaryMid]]; border:3px solid [[ColorPalette::TertiaryMid]];}
.imageLink, #displayArea .imageLink {background:transparent;}
.annotation {background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]]; border:2px solid [[ColorPalette::SecondaryMid]];}
.viewer .listTitle {list-style-type:none; margin-left:-2em;}
.viewer .button {border:1px solid [[ColorPalette::SecondaryMid]];}
.viewer blockquote {border-left:3px solid [[ColorPalette::TertiaryDark]];}
.viewer table, table.twtable {border:2px solid [[ColorPalette::TertiaryDark]];}
.viewer th, .viewer thead td, .twtable th, .twtable thead td {background:[[ColorPalette::SecondaryMid]]; border:1px solid [[ColorPalette::TertiaryDark]]; color:[[ColorPalette::Background]];}
.viewer td, .viewer tr, .twtable td, .twtable tr {border:1px solid [[ColorPalette::TertiaryDark]];}
.viewer pre {border:1px solid [[ColorPalette::SecondaryLight]]; background:[[ColorPalette::SecondaryPale]];}
.viewer code {color:[[ColorPalette::SecondaryDark]];}
.viewer hr {border:0; border-top:dashed 1px [[ColorPalette::TertiaryDark]]; color:[[ColorPalette::TertiaryDark]];}
.highlight, .marked {background:[[ColorPalette::SecondaryLight]];}
.editor input {border:1px solid [[ColorPalette::PrimaryMid]];}
.editor textarea {border:1px solid [[ColorPalette::PrimaryMid]]; width:100%;}
.editorFooter {color:[[ColorPalette::TertiaryMid]];}
#backstageArea {background:[[ColorPalette::Foreground]]; color:[[ColorPalette::TertiaryMid]];}
#backstageArea a {background:[[ColorPalette::Foreground]]; color:[[ColorPalette::Background]]; border:none;}
#backstageArea a:hover {background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]]; }
#backstageArea a.backstageSelTab {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];}
#backstageButton a {background:none; color:[[ColorPalette::Background]]; border:none;}
#backstageButton a:hover {background:[[ColorPalette::Foreground]]; color:[[ColorPalette::Background]]; border:none;}
#backstagePanel {background:[[ColorPalette::Background]]; border-color: [[ColorPalette::Background]] [[ColorPalette::TertiaryDark]] [[ColorPalette::TertiaryDark]] [[ColorPalette::TertiaryDark]];}
.backstagePanelFooter .button {border:none; color:[[ColorPalette::Background]];}
.backstagePanelFooter .button:hover {color:[[ColorPalette::Foreground]];}
#backstageCloak {background:[[ColorPalette::Foreground]]; opacity:0.6; filter:'alpha(opacity:60)';}
/*}}}*/
/*{{{*/
* html .tiddler {height:1%;}
body {font-size:.75em; font-family:arial,helvetica; margin:0; padding:0;}
h1,h2,h3,h4,h5,h6 {font-weight:bold; text-decoration:none;}
h1,h2,h3 {padding-bottom:1px; margin-top:1.2em;margin-bottom:0.3em;}
h4,h5,h6 {margin-top:1em;}
h1 {font-size:1.35em;}
h2 {font-size:1.25em;}
h3 {font-size:1.1em;}
h4 {font-size:1em;}
h5 {font-size:.9em;}
hr {height:1px;}
a {text-decoration:none;}
dt {font-weight:bold;}
ol {list-style-type:decimal;}
ol ol {list-style-type:lower-alpha;}
ol ol ol {list-style-type:lower-roman;}
ol ol ol ol {list-style-type:decimal;}
ol ol ol ol ol {list-style-type:lower-alpha;}
ol ol ol ol ol ol {list-style-type:lower-roman;}
ol ol ol ol ol ol ol {list-style-type:decimal;}
.txtOptionInput {width:11em;}
#contentWrapper .chkOptionInput {border:0;}
.externalLink {text-decoration:underline;}
.indent {margin-left:3em;}
.outdent {margin-left:3em; text-indent:-3em;}
code.escaped {white-space:nowrap;}
.tiddlyLinkExisting {font-weight:bold;}
.tiddlyLinkNonExisting {font-style:italic;}
/* the 'a' is required for IE, otherwise it renders the whole tiddler in bold */
a.tiddlyLinkNonExisting.shadow {font-weight:bold;}
#mainMenu .tiddlyLinkExisting,
#mainMenu .tiddlyLinkNonExisting,
#sidebarTabs .tiddlyLinkNonExisting {font-weight:normal; font-style:normal;}
#sidebarTabs .tiddlyLinkExisting {font-weight:bold; font-style:normal;}
.header {position:relative;}
.header a:hover {background:transparent;}
.headerShadow {position:relative; padding:4.5em 0em 1em 1em; left:-1px; top:-1px;}
.headerForeground {position:absolute; padding:4.5em 0em 1em 1em; left:0px; top:0px;}
.siteTitle {font-size:3em;}
.siteSubtitle {font-size:1.2em;}
#mainMenu {position:absolute; left:0; width:10em; text-align:right; line-height:1.6em; padding:1.5em 0.5em 0.5em 0.5em; font-size:1.1em;}
#sidebar {position:absolute; right:3px; width:16em; font-size:.9em;}
#sidebarOptions {padding-top:0.3em;}
#sidebarOptions a {margin:0em 0.2em; padding:0.2em 0.3em; display:block;}
#sidebarOptions input {margin:0.4em 0.5em;}
#sidebarOptions .sliderPanel {margin-left:1em; padding:0.5em; font-size:.85em;}
#sidebarOptions .sliderPanel a {font-weight:bold; display:inline; padding:0;}
#sidebarOptions .sliderPanel input {margin:0 0 .3em 0;}
#sidebarTabs .tabContents {width:15em; overflow:hidden;}
.wizard {padding:0.1em 1em 0em 2em;}
.wizard h1 {font-size:2em; font-weight:bold; background:none; padding:0em 0em 0em 0em; margin:0.4em 0em 0.2em 0em;}
.wizard h2 {font-size:1.2em; font-weight:bold; background:none; padding:0em 0em 0em 0em; margin:0.4em 0em 0.2em 0em;}
.wizardStep {padding:1em 1em 1em 1em;}
.wizard .button {margin:0.5em 0em 0em 0em; font-size:1.2em;}
.wizardFooter {padding:0.8em 0.4em 0.8em 0em;}
.wizardFooter .status {padding:0em 0.4em 0em 0.4em; margin-left:1em;}
.wizard .button {padding:0.1em 0.2em 0.1em 0.2em;}
#messageArea {position:fixed; top:2em; right:0em; margin:0.5em; padding:0.5em; z-index:2000; _position:absolute;}
.messageToolbar {display:block; text-align:right; padding:0.2em 0.2em 0.2em 0.2em;}
#messageArea a {text-decoration:underline;}
.tiddlerPopupButton {padding:0.2em 0.2em 0.2em 0.2em;}
.popupTiddler {position: absolute; z-index:300; padding:1em 1em 1em 1em; margin:0;}
.popup {position:absolute; z-index:300; font-size:.9em; padding:0; list-style:none; margin:0;}
.popup .popupMessage {padding:0.4em;}
.popup hr {display:block; height:1px; width:auto; padding:0; margin:0.2em 0em;}
.popup li.disabled {padding:0.4em;}
.popup li a {display:block; padding:0.4em; font-weight:normal; cursor:pointer;}
.listBreak {font-size:1px; line-height:1px;}
.listBreak div {margin:2px 0;}
.tabset {padding:1em 0em 0em 0.5em;}
.tab {margin:0em 0em 0em 0.25em; padding:2px;}
.tabContents {padding:0.5em;}
.tabContents ul, .tabContents ol {margin:0; padding:0;}
.txtMainTab .tabContents li {list-style:none;}
.tabContents li.listLink { margin-left:.75em;}
#contentWrapper {display:block;}
#splashScreen {display:none;}
#displayArea {margin:1em 17em 0em 14em;}
.toolbar {text-align:right; font-size:.9em;}
.tiddler {padding:1em 1em 0em 1em;}
.missing .viewer,.missing .title {font-style:italic;}
.title {font-size:1.6em; font-weight:bold;}
.missing .subtitle {display:none;}
.subtitle {font-size:1.1em;}
.tiddler .button {padding:0.2em 0.4em;}
.tagging {margin:0.5em 0.5em 0.5em 0; float:left; display:none;}
.isTag .tagging {display:block;}
.tagged {margin:0.5em; float:right;}
.tagging, .tagged {font-size:0.9em; padding:0.25em;}
.tagging ul, .tagged ul {list-style:none; margin:0.25em; padding:0;}
.tagClear {clear:both;}
.footer {font-size:.9em;}
.footer li {display:inline;}
.annotation {padding:0.5em; margin:0.5em;}
* html .viewer pre {width:99%; padding:0 0 1em 0;}
.viewer {line-height:1.4em; padding-top:0.5em;}
.viewer .button {margin:0em 0.25em; padding:0em 0.25em;}
.viewer blockquote {line-height:1.5em; padding-left:0.8em;margin-left:2.5em;}
.viewer ul, .viewer ol {margin-left:0.5em; padding-left:1.5em;}
.viewer table, table.twtable {border-collapse:collapse; margin:0.8em 1.0em;}
.viewer th, .viewer td, .viewer tr,.viewer caption,.twtable th, .twtable td, .twtable tr,.twtable caption {padding:3px;}
table.listView {font-size:0.85em; margin:0.8em 1.0em;}
table.listView th, table.listView td, table.listView tr {padding:0px 3px 0px 3px;}
.viewer pre {padding:0.5em; margin-left:0.5em; font-size:1.2em; line-height:1.4em; overflow:auto;}
.viewer code {font-size:1.2em; line-height:1.4em;}
.editor {font-size:1.1em;}
.editor input, .editor textarea {display:block; width:100%; font:inherit;}
.editorFooter {padding:0.25em 0em; font-size:.9em;}
.editorFooter .button {padding-top:0px; padding-bottom:0px;}
.fieldsetFix {border:0; padding:0; margin:1px 0px 1px 0px;}
.sparkline {line-height:1em;}
.sparktick {outline:0;}
.zoomer {font-size:1.1em; position:absolute; overflow:hidden;}
.zoomer div {padding:1em;}
* html #backstage {width:99%;}
* html #backstageArea {width:99%;}
#backstageArea {display:none; position:relative; overflow: hidden; z-index:150; padding:0.3em 0.5em 0.3em 0.5em;}
#backstageToolbar {position:relative;}
#backstageArea a {font-weight:bold; margin-left:0.5em; padding:0.3em 0.5em 0.3em 0.5em;}
#backstageButton {display:none; position:absolute; z-index:175; top:0em; right:0em;}
#backstageButton a {padding:0.1em 0.4em 0.1em 0.4em; margin:0.1em 0.1em 0.1em 0.1em;}
#backstage {position:relative; width:100%; z-index:50;}
#backstagePanel {display:none; z-index:100; position:absolute; width:90%; margin:0em 3em 0em 3em; padding:1em 1em 1em 1em;}
.backstagePanelFooter {padding-top:0.2em; float:right;}
.backstagePanelFooter a {padding:0.2em 0.4em 0.2em 0.4em;}
#backstageCloak {display:none; z-index:20; position:absolute; width:100%; height:100px;}
.whenBackstage {display:none;}
.backstageVisible .whenBackstage {display:block;}
/*}}}*/
/***
StyleSheet for use when a translation requires any css style changes.
This StyleSheet can be used directly by languages such as Chinese, Japanese and Korean which need larger font sizes.
***/
/*{{{*/
body {font-size:0.8em;}
#sidebarOptions {font-size:1.05em;}
#sidebarOptions a {font-style:normal;}
#sidebarOptions .sliderPanel {font-size:0.95em;}
.subtitle {font-size:0.8em;}
.viewer table.listView {font-size:0.95em;}
/*}}}*/
/*{{{*/
@media print {
#mainMenu, #sidebar, #messageArea, .toolbar, #backstageButton, #backstageArea {display: none ! important;}
#displayArea {margin: 1em 1em 0em 1em;}
/* Fixes a feature in Firefox 1.5.0.2 where print preview displays the noscript content */
noscript {display:none;}
}
/*}}}*/
<!--{{{-->
<div class='header' macro='gradient vert [[ColorPalette::PrimaryLight]] [[ColorPalette::PrimaryMid]]'>
<div class='headerShadow'>
<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>
<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span>
</div>
<div class='headerForeground'>
<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>
<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span>
</div>
</div>
<div id='mainMenu' refresh='content' tiddler='MainMenu'></div>
<div id='sidebar'>
<div id='sidebarOptions' refresh='content' tiddler='SideBarOptions'></div>
<div id='sidebarTabs' refresh='content' force='true' tiddler='SideBarTabs'></div>
</div>
<div id='displayArea'>
<div id='messageArea'></div>
<div id='tiddlerDisplay'></div>
</div>
<!--}}}-->
<!--{{{-->
<div class='toolbar' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></div>
<div class='title' macro='view title'></div>
<div class='subtitle'><span macro='view modifier link'></span>, <span macro='view modified date'></span> (<span macro='message views.wikified.createdPrompt'></span> <span macro='view created date'></span>)</div>
<div class='tagging' macro='tagging'></div>
<div class='tagged' macro='tags'></div>
<div class='viewer' macro='view text wikified'></div>
<div class='tagClear'></div>
<!--}}}-->
<!--{{{-->
<div class='toolbar' macro='toolbar [[ToolbarCommands::EditToolbar]]'></div>
<div class='title' macro='view title'></div>
<div class='editor' macro='edit title'></div>
<div macro='annotations'></div>
<div class='editor' macro='edit text'></div>
<div class='editor' macro='edit tags'></div><div class='editorFooter'><span macro='message views.editor.tagPrompt'></span><span macro='tagChooser'></span></div>
<!--}}}-->
To get started with this blank TiddlyWiki, you'll need to modify the following tiddlers: * SiteTitle & SiteSubtitle: The title and subtitle of the site, as shown above (after saving, they will also appear in the browser title bar) * MainMenu: The menu (usually on the left) * DefaultTiddlers: Contains the names of the tiddlers that you want to appear when the TiddlyWiki is opened You'll also need to enter your username for signing your edits: <<option txtUserName>>
These InterfaceOptions for customising TiddlyWiki are saved in your browser Your username for signing your edits. Write it as a WikiWord (eg JoeBloggs) <<option txtUserName>> <<option chkSaveBackups>> SaveBackups <<option chkAutoSave>> AutoSave <<option chkRegExpSearch>> RegExpSearch <<option chkCaseSensitiveSearch>> CaseSensitiveSearch <<option chkAnimate>> EnableAnimations ---- Also see AdvancedOptions
<<importTiddlers>>
We had our inaugural event on Wednesday October 29, 2008 at [[WorkSpace|http://abetterplacetowork.com/]] from 7:00pm - 8:30pm. Here is the event page: http://upcoming.yahoo.com/event/1184107/ Michael Kalus recorded video of the event: http://blip.tv/file/1414011
We had our second event on Wednesday November 26, 2008 at [[WorkSpace|http://abetterplacetowork.com/]] from 7:00pm - 8:30pm. * [[Dorian Taylor]] gave a talk titled [[What is the Semantic Web?|http://www.rdfvancouver.org/2008_11_26_dorian_taylor_semweb_intro.pdf]] * [[Gerald Bauer]] gave a talk titled [[Adding Semantics to Your Web Site – RDF, RDFa, Microformats – Web 3.0 in Action|http://slideshow.rubyforge.org/friends.html]] * [[Jim Pick]] talked about Freebase, Acre and the new Vancouver "base" - http://vancouver.freebase.com/ Here the event page: http://upcoming.yahoo.com/event/1317700/ Michael Kalus recorded video of the event: http://thedarkerside.blip.tv/file/1516236/ See also: [[Past Events]]
When you click on the blue [[download|Download]] button, the website will detect your browser and operating system, and trigger a download for either an empty ~TiddlyWiki file or, if you're running [[Safari]] or [[Opera]], a zip file which also includes the TiddlySaver file. This is version <<version>> of ~TiddlyWiki ([[release notes|http://trac.tiddlywiki.org/wiki/History]]). Advanced users may find these download options helpful (right click the link and select "Save as" to download): *[[An empty TiddlyWiki file|http://www.tiddlywiki.com/empty.html]] *[[A zip file containing an empty TiddlyWiki file plus a TiddlySaver file|http://www.tiddlywiki.com/empty.zip]] *[[A copy of this website (TiddlyWiki.com) minus images|#]] *[[The TiddlySaver.jar file on it's own|http://www.tiddlywiki.com/TiddlySaver.jar]] Finally, these links may be useful: *[[Installation]] instructions for the main browsers *A list of supported [[Browsers]]
/*{{{*/
span.chunkyButton {
display: block;
padding: 0;
margin: 0;
border: solid 2px [[ColorPalette::Foreground]];
}
span.chunkyButton a.button, span.chunkyButton a:active.button {
white-space: nowrap;
font-weight: bold;
font-size:1.8em;
color: [[ColorPalette::Background]];
background-color: [[ColorPalette::PrimaryMid]];
text-align: center;
padding: 1em 3em;
margin: 0;
border-style: none;
border-top: solid 1px [[ColorPalette::Background]];
display: block;
}
span.chunkyButton a.button:hover {
background-color: [[ColorPalette::PrimaryDark]];
border-style: none;
color: [[ColorPalette::Background]];
border-top: solid 1px [[ColorPalette::PrimaryPale]];
}
.downloadButton table,
.downloadButton table tr,
.downloadButton table td {
border-style:none;
vertical-align:bottom;
padding:0 0.5em 0 0;
margin:0 0 0.2em 0;
}
/*}}}*/
Contact [[Jim Pick]] for more information on this project.
[[Introduction]] [[Past Events]] [[Contact]] [[Public Domain]]
http://doriantaylor.com/ [[Dorian Taylor in the Vancouver Base|http://vancouver.freebase.com/view/guid/9202a8c04000641f80000000098e802b]]
{{downloadButton{
|<<download>>|
[[Advanced options >>|Advanced download options]]
/***
|''Name:''|DownloadTiddlyWikiPlugin|
|''Description:''|Download TiddlyWiki according to browser type|
|''Version:''|0.0.8|
|''Date:''|Aug 26, 2008|
|''Source:''|http://www.tiddlywiki.com/#DownloadTiddlyWikiPlugin|
|''License:''|[[BSD open source license]]|
|''~CoreVersion:''|2.4.1|
***/
//{{{
if(!version.extensions.DownloadTiddlyWikiPlugin) {
version.extensions.DownloadTiddlyWikiPlugin = {installed:true};
config.macros.download = {};
merge(config.macros.download,{
label: "download",
prompt: "Download TiddlyWiki",
className: "chunkyButton"});
config.macros.download.handler = function(place,macroName,params,wikifier,paramString,tiddler)
{
var span = createTiddlyElement(place,"span",null,this.className);
createTiddlyButton(span,params[0]||this.label,params[1]||this.prompt,this.onClick);
};
config.macros.download.onClick = function(ev)
{
// display the tiddler containing the instructions
var e = ev || window.event;
var title = "Installation";
var url = config.browser.isSafari || config.browser.isOpera ? 'http://www.tiddlywiki.com/empty.zip' :'http://www.tiddlywiki.com/empty.download';
if(config.browser.isOpera || config.browser.isWindows) {
story.displayTiddler(target,title);
window.setTimeout(function() {document.location.href = url;},300);
} else {
// put an iframe in the target instructions tiddler to start the download
var html = '<html><iframe src="' + url + '" style="display:none"></html>';
var tiddler = store.getTiddler(title);
var oldText = tiddler.text;
tiddler.text = html + tiddler.text;
var target = resolveTarget(e);
story.closeTiddler(title,true);
story.displayTiddler(target,title);
tiddler.text = oldText;
}
return false;
};
} //# end of 'install only once'
//}}}
Check out the [[Vancouver Semantic Web Meetup Group|http://www.meetup.com/The-Vancouver-Semantic-Web-Meetup-Group/]] for future events. See also: [[Past Events]]
http://www.geraldbauer.ca/ [[Gerald Bauer in the Vancouver Base|http://vancouver.freebase.com/view/guid/9202a8c04000641f80000000098e3536]]
The source for this TiddlyWiki is available at: http://github.com/jpick/rdf-vancouver/tree/master
The RDF Vancouver wiki is a single HTML file (a [[TiddlyWiki|http://tiddlywiki.com/]]) containing [[links|Links]] to freely available Semantic Web content about Vancouver, British Columbia, Canada. Also check out the "Vancouver Base" at http://vancouver.freebase.com/ (also known as #vanbase). Membership is free and open. Join us and help out!
http://jimpick.com/ [[Jim Pick in the Vancouver Base|http://vancouver.freebase.com/view/guid/9202a8c04000641f80000000098db05c]]
Just a starter set... __Vancouver Datasets__ * http://vancouver.freebase.com/ * http://dbpedia.org/page/Vancouver * http://en.wikipedia.org/wiki/Vancouver * http://www.powerset.com/explore/go/vancouver * http://www.openstreetmap.org/ __ Primers __ * [[YouTube - Intro to the Semantic Web|http://www.youtube.com/watch?v=OGg8A2zfWKg]] * [[YouTube - RDFa Basics|http://www.youtube.com/watch?v=ldl0m-5zLz4]] * [[Freebase Parallax | http://mqlx.com/~david/parallax/]] __ Local Semantic Web Projects __ * http://playtheweb.org/ * http://semanticcamp.wordpress.com/ __ Presentations __ * Gerald Bauer - [[Microformats - Adding Semantics to Your Web Site - Web 3.0 in Action|http://slideshow.rubyforge.org/microformats.html]] - [[Vancouver BarCamp|http://barcamp.org/BarCampVancouver2008]], September 28, 2008 * Rob Linton and David Gratton - [[Media Reuse and the Semantic Web|http://barcamp.org/barcampvancouver2008-media_reuse_and_the_semantic_web]] - [[Vancouver BarCamp|http://barcamp.org/BarCampVancouver2008]], September 28, 2008 __ Local Companies developing for the Semantic Web __ * http://www.donatgroup.com/ __ More links __ * http://delicious.com/tag/rdfvancouver * http://rdfabout.com/ * http://delicious.com/tag/semwebintro * http://delicious.com/jpick/rdf * http://delicious.com/jpick/semweb * http://wiki.northernvoice.ca/Talk%20Outline%20-%20Compiling%20Free%20Metadata%20about%20Vancouver
[[Introduction]] [[Links]] [[Events]] [[Past Events]] [[#1 - 2008 Oct 29]] [[#2 - 2008 Nov 26]] [[Contact]] [[Public Domain]] [[GitHub]]
[[#1 - 2008 Oct 29]] [[#2 - 2008 Nov 26]] For more events, see the [[Vancouver Semantic Web Meetup Group|http://www.meetup.com/The-Vancouver-Semantic-Web-Meetup-Group/]]
The contents of this wiki have been dedicated to the Public Domain by it's authors.
a list of triples about Vancouver
RDF Vancouver
/***
This fixes a problem with the tabs slider
***/
/*{{{*/
#sidebarTabs .button {
margin:0em 0.2em;
padding:0.2em 0.3em;
display:block;
}
/*}}}*/
/***
This is a sample style definition to demonstrate CustomCssClass formatting
***/
/*{{{*/
.wrappingClass {color: #666; background: #bbb;}
[[ChunkyButtonStyle]]
/*}}}*/
//{{{
({revisions:{'c3edde9b-5e6a-4150-8d5d-063abe85207f':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"cacc096f-1810-41f3-b41e-e5298d37cca5", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"67b74cf6-3cfb-410f-9575-9d052bb8589f"}, dead:{}, changed:["9ad74683-0dc6-444d-ad67-924e820086a2", "6280a05b-e2f7-4686-b560-17f81f7db44f", "7a5596b1-1290-4e39-970a-421bb446a39b", "6b814e40-3e56-4049-be66-37243847931a", "b097f808-1386-4d2f-9788-8daf138d647e", "d08f6fcb-c83c-4f9d-a244-54d4f31443e9", "a20d9131-586a-4517-84d6-b9c412d4dcbc", "153a669f-0875-451b-8573-c587cfeccac2", "2c64c458-aaa0-4c81-866c-0a5cf4d33102", "676b08f4-7a81-4eef-973a-cc53639ca245", "b08cab36-e118-4b35-a8f4-2f59550a20d2", "04018103-5370-4111-8728-9035c3e55054", "2e9547e3-28a5-449c-a850-3fd79a5b7e13"], branch:null, timestamp:1222530545873, metadata:{committer:"Jim Pick"}, directParent:null, additionalParent:null}, '53b1c7a2-5005-4d86-9ad4-32a8529406fa':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"67b74cf6-3cfb-410f-9575-9d052bb8589f"}, dead:{}, changed:["153a669f-0875-451b-8573-c587cfeccac2"], branch:null, timestamp:1222530559219, metadata:{committer:"Jim Pick"}, directParent:"c3edde9b-5e6a-4150-8d5d-063abe85207f", additionalParent:null}, '9813fc37-a8af-4bf2-a252-d186a9a1ec61':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"67b74cf6-3cfb-410f-9575-9d052bb8589f", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"6a5d67fe-1682-463e-ad1c-0b102ba7f9d4"}, dead:{}, changed:["f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"], branch:null, timestamp:1222530636285, metadata:{committer:"Jim Pick"}, directParent:"53b1c7a2-5005-4d86-9ad4-32a8529406fa", additionalParent:null}, '98527380-a12a-4c1e-9767-5cb1c016606e':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"67b74cf6-3cfb-410f-9575-9d052bb8589f", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"dfd5af80-71f3-4616-950a-59793c5a5a61"}, dead:{}, changed:["f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"], branch:null, timestamp:1222530645739, metadata:{committer:"Jim Pick"}, directParent:"9813fc37-a8af-4bf2-a252-d186a9a1ec61", additionalParent:null}, '0591e137-415d-4fe9-9cb5-05b53b54e9b1':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"67b74cf6-3cfb-410f-9575-9d052bb8589f", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"650dbc4b-ad54-4123-895a-96612916bb40"}, dead:{}, changed:["f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"], branch:null, timestamp:1222531112033, metadata:{committer:"Jim Pick"}, directParent:"98527380-a12a-4c1e-9767-5cb1c016606e", additionalParent:null}, '723021eb-e5a1-4a0a-9deb-27822e89890b':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"67b74cf6-3cfb-410f-9575-9d052bb8589f", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"fed3ad37-d2e3-499f-93c0-a9780e8051d3"}, dead:{}, changed:["f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"], branch:null, timestamp:1222531118801, metadata:{committer:"Jim Pick"}, directParent:"0591e137-415d-4fe9-9cb5-05b53b54e9b1", additionalParent:null}, 'fc07c356-0baa-4510-bf0f-dda9d007799c':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"67b74cf6-3cfb-410f-9575-9d052bb8589f", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"291722c7-c6b1-49ba-a7bd-18e193f939db"}, dead:{}, changed:["f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"], branch:null, timestamp:1222531193633, metadata:{committer:"Jim Pick"}, directParent:"723021eb-e5a1-4a0a-9deb-27822e89890b", additionalParent:null}, 'efe1f56a-6a62-46de-b858-318f4eba180a':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"67b74cf6-3cfb-410f-9575-9d052bb8589f", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"2ca19ce0-8b7f-4adf-9d9a-91dbd6094cc3"}, dead:{}, changed:["f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"], branch:null, timestamp:1222531240408, metadata:{committer:"Jim Pick"}, directParent:"fc07c356-0baa-4510-bf0f-dda9d007799c", additionalParent:null}, '6535e6e6-a141-4f99-9c5e-fcc848ae41df':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"1a964b9b-e52b-46a6-b3d9-fa5f9959bcb1", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"2ca19ce0-8b7f-4adf-9d9a-91dbd6094cc3"}, dead:{}, changed:["2e9547e3-28a5-449c-a850-3fd79a5b7e13"], branch:null, timestamp:1222531398235, metadata:{committer:"Jim Pick"}, directParent:"efe1f56a-6a62-46de-b858-318f4eba180a", additionalParent:null}, '100b8d86-af9b-4a31-8857-a6e60e35579f':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"1a964b9b-e52b-46a6-b3d9-fa5f9959bcb1", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"2ca19ce0-8b7f-4adf-9d9a-91dbd6094cc3", 'ab1c1626-3e82-4a89-b5a0-18f64eefbfc6':"afd583d5-2519-435b-90d6-500d04b46eb3"}, dead:{}, changed:["ab1c1626-3e82-4a89-b5a0-18f64eefbfc6"], branch:null, timestamp:1222534182807, metadata:{committer:"Jim Pick"}, directParent:"6535e6e6-a141-4f99-9c5e-fcc848ae41df", additionalParent:null}, '2bd05bed-6943-4382-8a8f-c5f13f85e574':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"1a964b9b-e52b-46a6-b3d9-fa5f9959bcb1", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"8967f9a6-aecc-4194-bd81-740bbc944fbb", 'ab1c1626-3e82-4a89-b5a0-18f64eefbfc6':"afd583d5-2519-435b-90d6-500d04b46eb3"}, dead:{}, changed:["f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"], branch:null, timestamp:1222539708374, metadata:{committer:"Jim Pick"}, directParent:"100b8d86-af9b-4a31-8857-a6e60e35579f", additionalParent:null}, '8ee0e430-25f7-4517-83c2-b46d5d0122fc':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"1a964b9b-e52b-46a6-b3d9-fa5f9959bcb1", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"1e12aa9e-b7f0-44bc-acca-793329c23efe", 'ab1c1626-3e82-4a89-b5a0-18f64eefbfc6':"afd583d5-2519-435b-90d6-500d04b46eb3"}, dead:{}, changed:["f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"], branch:null, timestamp:1222540482534, metadata:{committer:"Jim Pick"}, directParent:"2bd05bed-6943-4382-8a8f-c5f13f85e574", additionalParent:null}, '32298af8-e167-4a13-8aaf-b02fdca85017':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"1a964b9b-e52b-46a6-b3d9-fa5f9959bcb1", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"e469749d-30ac-4f1f-adcd-e1cc13fc818c", 'ab1c1626-3e82-4a89-b5a0-18f64eefbfc6':"afd583d5-2519-435b-90d6-500d04b46eb3"}, dead:{}, changed:["f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"], branch:null, timestamp:1222541492697, metadata:{committer:"Jim Pick"}, directParent:"8ee0e430-25f7-4517-83c2-b46d5d0122fc", additionalParent:null}, 'd6e518bb-f43b-433e-b894-5e5232c375a0':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"1a964b9b-e52b-46a6-b3d9-fa5f9959bcb1", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"089e93b7-a387-434d-9f2e-ffe3f8cd2481", 'ab1c1626-3e82-4a89-b5a0-18f64eefbfc6':"afd583d5-2519-435b-90d6-500d04b46eb3"}, dead:{}, changed:["f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"], branch:null, timestamp:1222541622378, metadata:{committer:"Jim Pick"}, directParent:"32298af8-e167-4a13-8aaf-b02fdca85017", additionalParent:null}, 'ad9361f9-b439-4406-973c-fafa63179a44':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"1a964b9b-e52b-46a6-b3d9-fa5f9959bcb1", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"fe939523-52bb-4cf3-90f4-df98e885c636", 'ab1c1626-3e82-4a89-b5a0-18f64eefbfc6':"afd583d5-2519-435b-90d6-500d04b46eb3"}, dead:{}, changed:["f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"], branch:null, timestamp:1222548519798, metadata:{committer:"Jim Pick"}, directParent:"d6e518bb-f43b-433e-b894-5e5232c375a0", additionalParent:null}, '6c97a4d7-b913-42fe-a7b7-7b08dad06044':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"1a964b9b-e52b-46a6-b3d9-fa5f9959bcb1", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"ebffc08d-189a-4e14-93e3-4a187ce2f961", 'ab1c1626-3e82-4a89-b5a0-18f64eefbfc6':"afd583d5-2519-435b-90d6-500d04b46eb3"}, dead:{}, changed:["f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"], branch:null, timestamp:1222624476926, metadata:{committer:"Jim Pick"}, directParent:"ad9361f9-b439-4406-973c-fafa63179a44", additionalParent:null}, '96ba8485-d4eb-4246-ad72-a68a6e6645e5':{alive:{'9ad74683-0dc6-444d-ad67-924e820086a2':"23d4c132-d421-4de3-98a0-6b7398d12e2d", '6280a05b-e2f7-4686-b560-17f81f7db44f':"f6382c71-a5a5-4ae6-aa1f-971b9b4a7831", '7a5596b1-1290-4e39-970a-421bb446a39b':"c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf", '6b814e40-3e56-4049-be66-37243847931a':"6c56b157-594d-4fda-bb4b-77bf7a9de4d3", 'b097f808-1386-4d2f-9788-8daf138d647e':"5598d104-f503-4a56-983a-d3009ad6f9f9", 'd08f6fcb-c83c-4f9d-a244-54d4f31443e9':"78d274e4-4ae9-4dfb-a187-4022f1c9e944", 'a20d9131-586a-4517-84d6-b9c412d4dcbc':"84cb3119-4cfd-4111-b638-255857681def", '153a669f-0875-451b-8573-c587cfeccac2':"021a9815-01e1-419a-9631-37f2360b9c83", '2c64c458-aaa0-4c81-866c-0a5cf4d33102':"6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0", '676b08f4-7a81-4eef-973a-cc53639ca245':"4582d692-ddcb-4f4f-aa3a-7472da6ec224", 'b08cab36-e118-4b35-a8f4-2f59550a20d2':"9a81a1fe-7fd4-42c6-9db3-50db66de233d", '04018103-5370-4111-8728-9035c3e55054':"e3763750-320b-4016-ae2f-eb1c625d5113", '2e9547e3-28a5-449c-a850-3fd79a5b7e13':"1a964b9b-e52b-46a6-b3d9-fa5f9959bcb1", 'f8727e3b-4d6a-4cb2-afb9-a83ab26893f0':"16e5f223-0dac-4017-bf22-042216858bef", 'ab1c1626-3e82-4a89-b5a0-18f64eefbfc6':"afd583d5-2519-435b-90d6-500d04b46eb3"}, dead:{}, changed:["f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"], branch:null, timestamp:1222624541252, metadata:{committer:"Jim Pick"}, directParent:"6c97a4d7-b913-42fe-a7b7-7b08dad06044", additionalParent:null}}, bodies:{'23d4c132-d421-4de3-98a0-6b7398d12e2d':{title:"Advanced download options", created:"200808191510", modified:"200809271542", modifier:"Jim Pick", tags:[], text:["When you click on the blue [[download|Download]] button, the website will detect your browser and operating system, and trigger a download for either an empty ~TiddlyWiki file or, if you're running [[Safari]] or [[Opera]], a zip file which also includes the TiddlySaver file. This is version <<version>> of ~TiddlyWiki ([[release notes|http://trac.tiddlywiki.org/wiki/History]]).", "", "Advanced users may find these download options helpful (right click the link and select \"Save as\" to download):", "*[[An empty TiddlyWiki file|http://www.tiddlywiki.com/empty.html]]", "*[[A zip file containing an empty TiddlyWiki file plus a TiddlySaver file|http://www.tiddlywiki.com/empty.zip]]", "*[[A copy of this website (TiddlyWiki.com) minus images|#]] ", "*[[The TiddlySaver.jar file on it's own|http://www.tiddlywiki.com/TiddlySaver.jar]]", "Finally, these links may be useful:", "*[[Installation]] instructions for the main browsers", "*A list of supported [[Browsers]]"], 'field-uuid':"9ad74683-0dc6-444d-ad67-924e820086a2"}, 'f6382c71-a5a5-4ae6-aa1f-971b9b4a7831':{title:"ChunkyButtonStyle", created:"200808130000", modified:"200808130000", modifier:"PhilHawksworth", tags:[], text:["/*{{{*/", "", "\tspan.chunkyButton {", "\t\tdisplay: block;", "\t\tpadding: 0;", "\t\tmargin: 0;", "\t\tborder: solid 2px [[ColorPalette::Foreground]];", "\t}", "\tspan.chunkyButton a.button, span.chunkyButton a:active.button {", "\t\twhite-space: nowrap;", "\t\tfont-weight: bold;", "\t\tfont-size:1.8em;", "\t\tcolor: [[ColorPalette::Background]];", "\t\tbackground-color: [[ColorPalette::PrimaryMid]];", "\t\ttext-align: center;", "\t\tpadding: 1em 3em;", "\t\tmargin: 0;", "\t\tborder-style: none;", "\t\tborder-top: solid 1px [[ColorPalette::Background]];", "\t\tdisplay: block;", "\t}", "\tspan.chunkyButton a.button:hover {", "\t\tbackground-color: [[ColorPalette::PrimaryDark]];", "\t\tborder-style: none;", "\t\tcolor: [[ColorPalette::Background]];", "\t\tborder-top: solid 1px [[ColorPalette::PrimaryPale]];", "\t}", "\t", "\t.downloadButton table,", "\t.downloadButton table tr,", "\t.downloadButton table td {", "\t\tborder-style:none;", "\t\tvertical-align:bottom;", "\t\tpadding:0 0.5em 0 0;", "\t\tmargin:0 0 0.2em 0;", "\t}", "", "", "/*}}}*/"], 'field-uuid':"6280a05b-e2f7-4686-b560-17f81f7db44f"}, 'c0a2c94b-7097-49e9-a2a3-a7f62bbdcfdf':{title:"Contact", created:"200809270212", modified:"200809270212", modifier:"Jim Pick", tags:[], text:["Contact [[Jim Pick | http://jimpick.com/ ]] for more information on this project."], 'field-uuid':"7a5596b1-1290-4e39-970a-421bb446a39b"}, '6c56b157-594d-4fda-bb4b-77bf7a9de4d3':{title:"DefaultTiddlers", created:"200809270158", modified:"200809270213", modifier:"Jim Pick", tags:[], text:["[[Introduction]]", "[[Events]]", "[[Contact]]", "[[Public Domain]]"], 'field-uuid':"6b814e40-3e56-4049-be66-37243847931a"}, '5598d104-f503-4a56-983a-d3009ad6f9f9':{title:"Download", created:"200805221001", modified:"200809271542", modifier:"Jim Pick", tags:["download", "gettingstarted"], text:["{{downloadButton{", "|<<download>>|", "", "[[Advanced options >>|Advanced download options]]"], 'field-uuid':"b097f808-1386-4d2f-9788-8daf138d647e"}, '78d274e4-4ae9-4dfb-a187-4022f1c9e944':{title:"Events", created:"200809270211", modified:"200809270219", modifier:"Jim Pick", tags:[], text:["Stay tuned for upcoming RDF Vancouver events. This is an open project, and anybody who is interested is invited to participate.", "", "Launching at [[Vancouver BarCamp 2008 | http://barcamp.org/BarCampVancouver2008]]"], 'field-uuid':"d08f6fcb-c83c-4f9d-a244-54d4f31443e9"}, '84cb3119-4cfd-4111-b638-255857681def':{title:"GitHub", created:"200809270216", modified:"200809270216", modifier:"Jim Pick", tags:[], text:["The source for this TiddlyWiki is available at:", "", "http://github.com/jpick/rdf-vancouver/tree/master"], 'field-uuid':"a20d9131-586a-4517-84d6-b9c412d4dcbc"}, 'cacc096f-1810-41f3-b41e-e5298d37cca5':{title:"MainMenu", created:"200809270158", modified:"200809270216", modifier:"Jim Pick", tags:[], text:["[[Introduction]]", "[[Events]]", "[[Contact]]", "[[Public Domain]]", "", "[[GitHub]]", "", ""], 'field-uuid':"153a669f-0875-451b-8573-c587cfeccac2"}, '6e5d8198-6dcc-49ae-99ff-6b4d00a8a4a0':{title:"Public Domain", created:"200809270211", modified:"200809270211", modifier:"Jim Pick", tags:[], text:["The contents of this wiki have been dedicated to the Public Domain by it's authors."], 'field-uuid':"2c64c458-aaa0-4c81-866c-0a5cf4d33102"}, '4582d692-ddcb-4f4f-aa3a-7472da6ec224':{title:"SiteSubtitle", created:"200809270155", modified:"200809270155", modifier:"YourName", tags:[], text:["a list of triples about Vancouver"], 'field-uuid':"676b08f4-7a81-4eef-973a-cc53639ca245"}, '9a81a1fe-7fd4-42c6-9db3-50db66de233d':{title:"SiteTitle", created:"200809270155", modified:"200809270155", modifier:"YourName", tags:[], text:["RDF Vancouver"], 'field-uuid':"b08cab36-e118-4b35-a8f4-2f59550a20d2"}, 'e3763750-320b-4016-ae2f-eb1c625d5113':{title:"StyleSheet", created:"200603311518", modified:"200612031950", modifier:"JeremyRuston", tags:[], text:["/***", "This fixes a problem with the tabs slider", "***/", "/*{{{*/", "#sidebarTabs .button {", "\tmargin:0em 0.2em;", "\tpadding:0.2em 0.3em;", "\tdisplay:block;", "}", "/*}}}*/", "/***", "This is a sample style definition to demonstrate CustomCssClass formatting", "***/", "/*{{{*/", ".wrappingClass {color: #666; background: #bbb;}", "[[ChunkyButtonStyle]]", "/*}}}*/"], 'field-uuid':"04018103-5370-4111-8728-9035c3e55054"}, '67b74cf6-3cfb-410f-9575-9d052bb8589f':{title:"Introduction", created:"200809270157", modified:"200809271549", modifier:"Jim Pick", tags:[], text:["RDF Vancouver is a single HTML file (a [[TiddlyWiki|http://tiddlywiki.com/]]) containing [[links | Links]] to freely available Semantic Web content about Vancouver, British Columbia, Canada.", "", "It is downloadable for online or offline use from http://rdfvancouver.org/. (NOTE: Download link not implemented yet, get source from [[GitHub]] until I fix it)", ""], 'field-changecount':"1", 'field-uuid':"2e9547e3-28a5-449c-a850-3fd79a5b7e13"}, '021a9815-01e1-419a-9631-37f2360b9c83':{title:"MainMenu", created:"200809270158", modified:"200809271549", modifier:"Jim Pick", tags:[], text:["[[Introduction]]", "[[Events]]", "[[Contact]]", "[[Public Domain]]", "", "[[Links]]", "", "[[GitHub]]", "", ""], 'field-uuid':"153a669f-0875-451b-8573-c587cfeccac2", 'field-changecount':"1"}, '6a5d67fe-1682-463e-ad1c-0b102ba7f9d4':{title:"Links", created:"200809271550", modified:"200809271550", modifier:"Jim Pick", tags:[], text:["Just a starter set...", "", "_Vancouver_", "", "* http://www.freebase.com/view/en/vancouver_british_columbia", ""], 'field-changecount':"1", 'field-uuid':"f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"}, 'dfd5af80-71f3-4616-950a-59793c5a5a61':{title:"Links", created:"200809271550", modified:"200809271550", modifier:"Jim Pick", tags:[], text:["Just a starter set...", "", "__Vancouver__", "", "* http://www.freebase.com/view/en/vancouver_british_columbia", ""], 'field-changecount':"2", 'field-uuid':"f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"}, '650dbc4b-ad54-4123-895a-96612916bb40':{title:"Links", created:"200809271550", modified:"200809271558", modifier:"Jim Pick", tags:[], text:["Just a starter set...", "", "__Vancouver__", "", "* http://www.freebase.com/view/en/vancouver_british_columbia", "* http://dbpedia.org/page/Vancouver", "", "__ Tools __", "", "* [[Freebase Parallax | http://mqlx.com/~david/parallax/]] - ", ""], 'field-changecount':"3", 'field-uuid':"f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"}, 'fed3ad37-d2e3-499f-93c0-a9780e8051d3':{title:"Links", created:"200809271550", modified:"200809271558", modifier:"Jim Pick", tags:[], text:["Just a starter set...", "", "__Vancouver__", "", "* http://www.freebase.com/view/en/vancouver_british_columbia", "* http://dbpedia.org/page/Vancouver", "", "__ Tools __", "", "* [[Freebase Parallax | http://mqlx.com/~david/parallax/]]", ""], 'field-changecount':"4", 'field-uuid':"f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"}, '291722c7-c6b1-49ba-a7bd-18e193f939db':{title:"Links", created:"200809271550", modified:"200809271559", modifier:"Jim Pick", tags:[], text:["Just a starter set...", "", "__Vancouver__", "", "* http://www.freebase.com/view/en/vancouver_british_columbia", "* http://dbpedia.org/page/Vancouver", "", "__ Tools __", "", "* [[Freebase Parallax | http://mqlx.com/~david/parallax/]]", "", "__ More links __", "", "* http://delicious.com/jpick/rdf", "* http://delicious.com/jpick/semweb", ""], 'field-changecount':"5", 'field-uuid':"f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"}, '2ca19ce0-8b7f-4adf-9d9a-91dbd6094cc3':{title:"Links", created:"200809271550", modified:"200809271600", modifier:"Jim Pick", tags:[], text:["Just a starter set...", "", "__Vancouver__", "", "* http://www.freebase.com/view/en/vancouver_british_columbia", "* http://dbpedia.org/page/Vancouver", "", "__ Tools __", "", "* [[Freebase Parallax | http://mqlx.com/~david/parallax/]]", "", "__ More links __", "", "* http://delicious.com/tag/semwebintro", "* http://delicious.com/jpick/rdf", "* http://delicious.com/jpick/semweb", ""], 'field-changecount':"6", 'field-uuid':"f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"}, '1a964b9b-e52b-46a6-b3d9-fa5f9959bcb1':{title:"Introduction", created:"200809270157", modified:"200809271603", modifier:"Jim Pick", tags:[], text:["RDF Vancouver is a single HTML file (a [[TiddlyWiki|http://tiddlywiki.com/]]) containing [[links|Links]] to freely available Semantic Web content about Vancouver, British Columbia, Canada.", "", "It is downloadable for online or offline use from http://rdfvancouver.org/. (NOTE: Download link not implemented yet, get source from [[GitHub]] until I fix it)", ""], 'field-changecount':"2", 'field-uuid':"2e9547e3-28a5-449c-a850-3fd79a5b7e13"}, 'afd583d5-2519-435b-90d6-500d04b46eb3':{title:"synchroAltPlugin", created:"200806150000", modified:"200806150000", modifier:"TonyGarnockJones", tags:["excludeLists", "excludeSearch", "systemConfigDisable"], text:["/***", "|''Name:''|synchroAltPlugin|", "|''Description:''|an alternative take on DVCS with TiddlyWiki|", "|''Author:''|MartinBudden and TonyGarnockJones|", "|''Version:''|0.0.1|", "|''Date:''|June 15, 2008|", "|''License:''|[[Creative Commons Attribution-ShareAlike 3.0 License|http://creativecommons.org/licenses/by-sa/3.0/]] |", "|''~CoreVersion:''|2.4.0|", "", "!!Description", "//!!TODO write a brief description of the plugin here", "", "!!Usage", "//!!TODO describe how to use the plugin - how a user should include it in their TiddlyWiki, parameters to the plugin etc", "", "***/", "", "//{{{", "// Ensure that the plugin is only installed once.", "if(!version.extensions.synchroAltPlugin) {", "version.extensions.synchroAltPlugin = {installed:true};", "", "var revisionStore = null;", "", "function Synchrotron()", "{", " //Dvcs._debugMode = true;", " this.repo = new Dvcs.Repository();", " this.checkout = this.repo.update(null);", " return this;", "}", "", "Synchrotron.repositoryTiddlerTitle = '_synchrotronRepository';", "", "Synchrotron.prototype.importFromFile = function(path) {", " var importStore = new TiddlyWiki();", " var tw = loadFile(path);", " if (window.netscape !== undefined) {", "\ttw = convertUTF8ToUnicode(tw);", " }", " importStore.importTiddlyWiki(tw);", " var repoTiddler = importStore.getTiddler(Synchrotron.repositoryTiddlerTitle);", " if (!repoTiddler) {", "\talert(\"Repository Tiddler not found in \" + path +", "\t \"; is it really a Synchrotron-enabled TiddlyWiki?\");", "\treturn;", " }", "", " var stats = this.import(repoTiddler.text);", " if (stats) {", "\talert(\"Imported \" + (stats.revCount || \"no\") + \" new revisions.\" +", "\t (stats.revDups ?", "\t \" The file\" + (stats.revCount ? \" also\" : \"\") + \" contained \" + stats.revDups +", "\t \" revisions that were already present in this TiddlyWiki.\"", "\t : \"\"));", " }", " refreshDisplay();", "};", "", "Synchrotron.prototype.export = function()", "{", "\tvar repoExt = this.repo.exportRevisions();", "\tvar repoText = uneval(repoExt);", "\treturn repoText;", "};", "", "Synchrotron.prototype.import = function(repoText)", "{", " if (repoText) {", "\tvar repoExt = eval(repoText);", "\treturn this.repo.importRevisions(repoExt);", " } else {", "\treturn null;", " }", "};", "", "Synchrotron.prototype.getUuid = function(tiddler) {", " if (!tiddler.fields.uuid) {", "\ttiddler.fields.uuid = this.checkout.createFile();", " }", " return tiddler.fields.uuid;", "};", "", "Dvcs.Mergers.Defaults[\"tags\"] = Dvcs.Mergers.simpleTextualMerger;", "", "Synchrotron.prototype.commitAllChanges = function() {", " var $this = this;", " var seenTiddlers = {};", "", " store.forEachTiddler(checkForChanges);", " function checkForChanges(title, tiddler) {", "\tif (title != Synchrotron.repositoryTiddlerTitle &&", "\t !tiddler.doNotSave() &&", "\t !tiddler.isTagged(\"systemConfig\"))", "\t{", "\t var id = $this.getUuid(tiddler);", "", "\t seenTiddlers[id] = id;", "", "\t function maybeStore(key, value) {", "\t\tif (value !== $this.checkout.getProp(id, key)) {", "\t\t $this.checkout.setProp(id, key, value);", "\t\t}", "\t }", "\t function maybeStoreText(key, value) {", "\t\tvar oldText = $this.checkout.getProp(id, key);", "\t\tif (!oldText || value.join('\\n') !== oldText.join('\\n')) {", "\t\t $this.checkout.setProp(id, key, value);", "\t\t}", "\t }", "", "\t function storeSingleField(tiddler, fieldName, value) {", "\t\tif (!fieldName.match(/^temp\\./)) {", "\t\t if (typeof value != \"string\") {", "\t\t\tvalue = \"\";", "\t\t }", "\t\t maybeStore('field-' + fieldName, value);", "\t\t}", "\t }", "", "\t maybeStore('title', tiddler.title);", "\t maybeStore('created', tiddler.created.convertToYYYYMMDDHHMM());", "\t maybeStore('modified', tiddler.modified.convertToYYYYMMDDHHMM());", "\t maybeStore('modifier', tiddler.modifier);", "\t tiddler.tags.sort();", "\t maybeStoreText('tags', tiddler.tags);", "\t maybeStoreText('text', tiddler.text.split('\\n'));", "\t store.forEachField(tiddler, storeSingleField, true);", "\t}", " }", "", " $this.checkout.forEachFile(deleteUnseen);", " function deleteUnseen(repoId) {", "\tif (!(seenTiddlers[repoId])) {", "\t $this.checkout.deleteFile(repoId);", "\t}", " }", "", " $this.repo.commit($this.checkout, { committer: config.options.txtUserName });", "};", "", "Synchrotron.prototype.syncUItoCheckout = function() {", " var $this = this;", " var toDelete = {};", " var existingTiddlers = {};", "", " store.forEachTiddler(detectDeletable);", " function detectDeletable(title, tiddler) {", "\tif (title != Synchrotron.repositoryTiddlerTitle &&", "\t !tiddler.isTagged(\"systemConfig\"))", "\t{", "\t var id = $this.getUuid(tiddler);", "\t if (!$this.checkout.fileExists(id)) {", "\t\ttoDelete[id] = tiddler;", "\t } else {", "\t\texistingTiddlers[id] = tiddler;", "\t }", "\t}", " }", "", " for (var id in toDelete) {", "\tvar tiddler = toDelete[id];", "\tstore.removeTiddler(tiddler.title);", "\tstory.closeTiddler(tiddler.title, true);", " }", "", " $this.checkout.forEachFile(reflectFileInUI);", " function reflectFileInUI(id) {", "\tvar tiddler = existingTiddlers[id];", "\tif (!tiddler) {", "\t tiddler = store.createTiddler($this.checkout.getProp(id,'title'));", "\t tiddler.fields.uuid = id;", "\t}", "", "\tvar newTitle = $this.checkout.getProp(id, 'title', tiddler.title);", "\tvar newCreated = Date.convertFromYYYYMMDDHHMM($this.checkout.getProp(id, 'created', tiddler.created.convertToYYYYMMDDHHMM()));", "\tvar newModified = Date.convertFromYYYYMMDDHHMM($this.checkout.getProp(id, 'modified', tiddler.modified.convertToYYYYMMDDHHMM()));", "\tvar newModifier = $this.checkout.getProp(id, 'modifier', tiddler.modifier);", "\tvar newTags = $this.checkout.getProp(id, 'tags', tiddler.tags);", "\tvar newText = $this.checkout.getProp(id, 'text', tiddler.text.split('\\n')).join('\\n');", "\tvar newFields = {};", "\t$this.checkout.forEachProp(id, function(propName, propValue) {", "\t\t\t\t if (propName.match(/^field-/)) {", "\t\t\t\t\t newFields[propName.substring(6)] = propValue;", "\t\t\t\t }", "\t\t\t\t });", "", "\ttiddler.assign(newTitle, newText, newModifier, newModified, newTags, newCreated, newFields);", " }", "", " story.forEachTiddler(refreshDisplayedTiddler);", " function refreshDisplayedTiddler(title, e) {", "\tif (store.tiddlerExists(title) || store.isShadowTiddler(title)) {", "\t story.refreshTiddler(title, null, true);", "\t} else {", "\t story.closeTiddler(title);", "\t}", " }", "};", "", "Synchrotron.prototype.updateToRevision = function(revId) {", " if ((store && store.isDirty && store.isDirty()) ||", "\t(story && story.areAnyDirty && story.areAnyDirty()))", " {", "\tif (!confirm(config.messages.confirmExit))", "\t return false;", " }", "", " this.checkout = this.repo.update(revId);", " this.syncUItoCheckout();", " store.setDirty(false);", " story.forEachTiddler(function (title) { story.setDirty(title, false); });", " refreshDisplay();", " return true;", "};", "", "Synchrotron.prototype.revertCheckout = function() {", " return this.updateToRevision(this.checkout.directParent);", "};", "", "Synchrotron.prototype.mergeWithRevision = function(revId) {", " if (this.revertCheckout()) {", "\tvar openForEditing = {};", "\tvar merger = this.repo.merge(this.checkout.directParent, revId);", "\tvar fs = merger.files;", "", "\tfor (var i = 0; i < merger.conflicts.length; i++) {", "\t var conflictRecord = merger.conflicts[i];", "\t var inode = conflictRecord.inode;", "", "\t for (var okProp in conflictRecord.partialResult) {", "\t\tfs.setProp(inode, okProp, conflictRecord.partialResult[okProp]);", "\t }", "", "\t var winner;", "\t if (!(\"modified\" in conflictRecord.partialResult)) {", "\t\tif (\"modified\" in conflictRecord.conflictDetails) {", "\t\t var aModified = conflictRecord.conflictDetails[\"modified\"][0].conflict.a;", "\t\t var bModified = conflictRecord.conflictDetails[\"modified\"][0].conflict.b;", "\t\t fs.setProp(inode, \"modified\", aModified > bModified ? aModified : bModified);", "\t\t winner = aModified > bModified ? \"a\" : \"b\";", "\t\t} else {", "\t\t fs.setProp(inode, \"modified\", new Date().convertToYYYYMMDDHHMM());", "\t\t winner = \"a\";", "\t\t}", "\t }", "", "\t for (var badProp in conflictRecord.conflictDetails) {", "\t\tif (badProp != \"modified\") {", "\t\t var r = conflictRecord.conflictDetails[badProp];", "\t\t if (badProp == \"text\") {", "\t\t\tfs.setProp(inode, \"text\", Synchrotron.buildConflictMarkers(r));", "\t\t } else if (badProp == \"tags\") {", "\t\t\tfs.setProp(inode, \"tags\", Synchrotron.mergeConflictingTags(r));", "\t\t } else {", "\t\t\tfs.setProp(inode, badProp, r[0].conflict[winner]);", "\t\t }", "\t\t}", "\t }", "", "\t openForEditing[inode] = fs.getProp(inode, \"title\");", "\t}", "\tstore.setDirty(true);", "\tthis.checkout = fs;", "\tthis.syncUItoCheckout();", "\trefreshDisplay();", "", "\tfor (var inodeToEdit in openForEditing) {", "\t story.displayTiddler(null, openForEditing[inodeToEdit], DEFAULT_EDIT_TEMPLATE);", "\t}\t ", " }", "};", "", "Synchrotron.buildConflictMarkers = function(r) {", " var lines = [];", " for (var i = 0; i < r.length; i++) {", " var item = r[i];", " if (item.ok) {", " lines = lines.concat(item.ok);", " } else {", " lines = lines.concat([\" < < < < < < < < <\"], item.conflict.a,", " [\" ============\"], item.conflict.b,", " [\" > > > > > > > > >\"]);", " }", " }", " return lines;", "}", "", "Synchrotron.mergeConflictingTags = function(r) {", " var lines = [];", " for (var i = 0; i < r.length; i++) {", " var item = r[i];", " if (item.ok) {", " lines = lines.concat(item.ok);", " } else {", " lines = lines.concat(item.conflict.a, item.conflict.b);", " }", " }", " var t = {}", " for (i = 0; i < lines.length; i++) {", "\tt[lines[i]] = true;", " }", " lines = [];", " for (i in t) {", "\tlines.push(i);", " }", " lines.sort();", " return lines;", "}", "", "restartSynchrotron = restart;", "function restart()", "{", "\trestartSynchrotron();", "\trevisionStore = new Synchrotron();", "\trevisionStore.import(store.getTiddlerText(Synchrotron.repositoryTiddlerTitle));", "\trevisionStore.checkout = revisionStore.repo.update(null);", "\trevisionStore.syncUItoCheckout();", "}", "", "saveChangesSynchrotron = saveChanges;", "function saveChanges(onlyIfDirty,tiddlers)", "{", "\trevisionStore.commitAllChanges();", "", "\tvar tiddler = new Tiddler(Synchrotron.repositoryTiddlerTitle);", "\ttiddler.text = '//{{{\\n' + revisionStore.export() + '\\n//}}}\\n';", "\ttiddler.tags = ['excludeLists','excludeSearch'];", "\tstore.addTiddler(tiddler);", "\tsaveChangesSynchrotron(onlyIfDirty,tiddlers);", "", "\trefreshDisplay();", "}", "", "config.shadowTiddlers.SideBarTabs =", " config.shadowTiddlers.SideBarTabs", " .replace(/>>$/, ' \"Versions\" \"Repository History\" TabVersions>>');", "", "merge(config.shadowTiddlers, {", "\t TabVersions: '<<synchrotronHistory>>'", " });", "", "Synchrotron.images = {", " \"blob_0.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAIdJREFUOI3tkjEKwzAMRV+6CnwmjTpFl1yshwnkLp5TNP4u9tJ2cWsohTzQIqEnGwlO/ooFuAIbcG+xtdzyiewGyMzk7nJ3mZkAtdqQdAUUEcpMdTJTEdGl64hwL6Wo1qpnaq0qpQjYR4RHRLzIOu2Vx7vGy8iUb5j+5elLmX42XTrtsE9+yANzZprVJVS76gAAAABJRU5ErkJggg==\"", " ,\"blob_1.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJZJREFUOI3tkjEOAjEMBPdoLflNLv0KmvsYjznpep7h+lAqtDROAwiSUwQFjLRNooxieYE2zpm3HBqFzfyg8BUTgCOABcA1s+TZtEd2AkARoZnRzCgiBMC865LOAOjuLKWwUkqhu1fp3CNcVZURwXsigqpKAGuPcHP3B1klf7k9e/ixLQ8fefhShtemSmuxL5ndxf7zRW4Gj5yRa/KFewAAAABJRU5ErkJggg==\"", " ,\"blob_10.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAKVJREFUOI3tkrEJwzAQRZ/AnUCQQoOkSaFKpaZI48UyhgcwuMkk6oPKn0ZuEhliYzABP7jmjv/gpIOTv8IAd2AEXrXG2jNbZA9A1lrFGBVjlLVWgOpslbQHlFJSKUUzpRSllGZpv0Y4OeeUc9YnOWc55wRMrWAHPBv9awgB7/3XwHtPCIFhGG6tbAdcGsJf3scsZJtsXnmJ3T9l97OZpbsd9smBvAHQ9YOCh41JCAAAAABJRU5ErkJggg==\"", " ,\"blob_11.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAALVJREFUOI3tkjEKAjEQRd/KdoGARQ5iY5EqZU5hsxfzGDnAwjZWHiO9pJKxSRrNanZZsNAHv5lhHmQy0MY15yO7RmEzPyh8RwecgBG454y51q2RnQFRSolzTpxzopQSQHJvkXQAxHsvKSUppJTEe1+kwxLhpLWWGKM8E2MUrbUAU22wBy6V+sFaizHmpWGMwVpLCOFYm+2BfUXYsp9uZrbK6ifPsfmnbH42RVoO+5az+rD/fJEHZB6FPnyuglsAAAAASUVORK5CYII=\"", " ,\"blob_12.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJxJREFUOI3tkjEKAyEUBceQThByI8t/ijR7sRxmYZtUewzrBKvlpdHGFIkbm8AOvEZlvuKDg7/CAVdgBp4lc1lze2Q3QN57xRgVY5T3XoDKXpd0AmRmyjmrknOWmVXp1CNcQghKKaklpaQQgoClR/gwszdZpdxyA+5tzj1TGhxw+fbw8CcP/5ThtanSWuytZHexW9aSj5x+nXQIeQEBLaCqFSFpfQAAAABJRU5ErkJggg==\"", " ,\"blob_13.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJ5JREFUOI3tlDEKAyEQRZ8hnSDkRpZzijR7sRxmYZtUOYZ1wGr5abQxkGiQNMmD3zjyVGYQ+riVvOXQKezmB4WvcMAZWIG9ZC1r7hPZBZD3XjFGxRjlvRegUhuSLoDMTDlnVXLOMrMqXUaEWwhBKSW1pJQUQhCwjQjvZvYkq5Rb7sC1zXHklAYHnHo3T3/y9KZMH5sqnTbYLf/v64vCB5RHomZlltYsAAAAAElFTkSuQmCC\"", " ,\"blob_14.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAALJJREFUOI3tkjEOwiAUhr+abiQkDhzExYGJkVO49GIegwM06eLkMdgNk3kusFQaLXYx6Ze85b38HwEe7PwVHXABRuCRa8y9rkV2BUQpJc45cc6JUkoAybNV0gEQ772klKSQUhLvfZEOa4ST1lpijDInxihaawGmWrAHbpX+yVqLMeZtYIzBWksI4VzL9sCxIvzmfbqFbJXmKy+x+adsvjZFWhb7mat5sefcc33k8OtJu5AXRsKFPuF7sfwAAAAASUVORK5CYII=\"", " ,\"blob_15.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAALVJREFUOI3tlLENwyAQRR+ROySkFAySJgUVJVOk8WIZwwNYcpMqY7AAVXRpoHFwgi0rTfKka+70nwScgDbuuT5yaBQ284PCdyjgAozAI9eYe2qL7AqI1lq89+K9F621AJJnq6Q9ICEESSlJIaUkIYQi7dcIJ2OMxBhlToxRjDECTLVgB9wq/ZNzDmvty8Bai3OOYRjOtWwHHCvClvtRC9kqm4+8xO6PsvvaFOluiz3n/319UfgE2dyG+rvKV2wAAAAASUVORK5CYII=\"", " ,\"blob_2.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJNJREFUOI3tkjEKAjEQRd+CXSDgjaacU9jsxTzMwjaeJPVKKvk2SaMRiQZE2Ae/mZBHZjKw81dMwAlYgGvJUmrTJ7IzoBCCzExmphCCAJWzLukMyN2Vc1Yl5yx3r9K5R7jGGJVS0iMpJcUYBayvLl8aubn7k6xSXrm1ZAfg2Kh3D/0dX7XcYvinDF+bKh222Ds/5A5/457uDkGvZQAAAABJRU5ErkJggg==\"", " ,\"blob_3.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAKNJREFUOI3tkr0KwjAYRU/FLRDwjTJ+T+HSF/NhCl2cfIzMSqZyXZJFo01rwUEP3OULOeTnQhuXnFl2jcJmflD4jg44AgMw5Qx51q2RnQA55xRCUAhBzjkBymuLpD0gM1NKSYWUksysSPslwtF7rxijHokxynsvYHy1+VzJZGZPskI+5bUm2wOHynzxo8/x0ZVrbP4pm9emSEuxbzmri/3ni9wBEwygqo8e4tAAAAAASUVORK5CYII=\"", " ,\"blob_4.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJVJREFUOI3tkjEKwzAMRX+6CnQmjTpFl1yshwlk7zE0p2gqv4u8pIXi1EtpH/zFxs82+sCfr2ICcAawALhVllqbjsguACgiNDOaGUWEAFh7XdIZAN2dmclGZtLdm3TuEa6qyojgnoigqhLA2iPc3P1J1qhXbq8Onnpu+YThXx4+lOG1adJW7HvlcLH3XCtvGT7lHxQ+AOkknJHNxLgkAAAAAElFTkSuQmCC\"", " ,\"blob_5.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJZJREFUOI3tlDEKwzAMRX+6CnQmjTpFl1yshwlk7zE0BzSV38Ve0tLaxWRpHmix8MPiCwNt3Et95dIobOYPhZ+YAFwBLAAepZZyNv0iuwGgiNDMaGYUEQJg6XVJZwB0d2YmK5lJd6/SuUe4qiojgnsigqpKAGuPcHP3F1mlvHJ7d/GwlIePPDyU4WtTpcMWe8/5fR0ofAJ8TZ5N0sDKDwAAAABJRU5ErkJggg==\"", " ,\"blob_6.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJ9JREFUOI3tkrEKwyAURU9KN0HoHzm+r+iSH+vHBLJ0ymc4tziF20WX1BJMshRy4C5PPD71wclf0QF3YADeOUOudVtkD0DOOYUQFEKQc06A8lqTtAdkZkopqZBSkpkVad8iHL33ijFqSYxR3nsB46/Nz0pmM/uSFXKXr5rsCtwq9eZHX2PXlWsc/imHj02RlsGeczYP9pIpZ5XL3pNOIR/1oaCqrqJp9wAAAABJRU5ErkJggg==\"", " ,\"blob_7.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAKNJREFUOI3tlLEKwjAURU/FLRDwjzK+r3Dpj/kxhS5O/YzMQqZyXZKlRttocdEDd3khh7zkEdjGlLPKYaNwMz8ofEUHnIEBmHOGXOvekV0AOecUQlAIQc45AcprTdIekJkppaRCSklmVqR9i3D03ivGqCUxRnnvBYzPNl8rmc3sQVbIp7zVZEfgVKk3X/oaH7VcY/dH2X1sinS3wV7y/76+KLwDiMqiZru+wK0AAAAASUVORK5CYII=\"", " ,\"blob_8.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJBJREFUOI3tkjEKAjEQRV/ALjDgjaacU9jsxTzMwjaeJLWSSr5N0qyNkYAI++A3yfAyYQYO/ooEXIAVeLSs7Sx9I7sCyjnL3eXuyjkLULsbki6AIkK1VnVqrYqILl1GhJuZqZSiPaUUmZmAbUR4j4g3Wad1+QRu+5xGXtmRgPOnxdO/PH0o09emS6ct9sEPeQGLYJ7ucs6fnQAAAABJRU5ErkJggg==\"", " ,\"blob_9.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJ9JREFUOI3tkjEKAyEUBceQThByI8t/ijR7sRxmYZtUOYZ1gtXy0mizgUQXIUUy8BqV8YsP2riVfOTQKGzmB4XvcMAZmIG1ZC5rbo/sAsh7rxijYozy3gtQ2euSToDMTDlnVXLOMrMqnXqESwhBKSVtSSkphCBg6RHezexFVilTrsB1m2PPLRsccGo9PPzJwz9leG2qtBb7UbK72H++yBMeiaCqdfixnAAAAABJRU5ErkJggg==\"", " ,\"slide_l.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAADFJREFUOI1jYBgFo2AYAkYqmsXMwMAQSE3DVjEwMPyntmGrqG0Y86hho4YhQBixhgEAQRwWyV5wCkoAAAAASUVORK5CYII=\"", " ,\"slide_m.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAE9JREFUOI3t0zEKgDAMBdAHvaJ6yF5SByuIgxUasEP+FggPQhLeU1CxY+30dnPHaqsTS6wlFBOIFSycHxCBXZMO57mDUGye60jsZwy2r9gB/Z0tlT2EWtcAAAAASUVORK5CYII=\"", " ,\"slide_r.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAADpJREFUOI3t06ENACAMRcFLmJElWRIEFSgwVaTP/aQ5V+41DEz0x+2zExuxCyssSsVkY+wPSMOq6ssWvM8WywislYYAAAAASUVORK5CYII=\"", " ,\"stick_0.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAABVJREFUOI1jYBgFo2AUjIJRMAqoAwAGVAAB8lwiXwAAAABJRU5ErkJggg==\"", " ,\"stick_1.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAACNJREFUOI1jYCAOXIJigoCJSAOJBqMGjho4auCogaMGDhUDAZwOAcsorz0zAAAAAElFTkSuQmCC\"", " ,\"stick_10.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJVJREFUOI3t07sJAlEQRuHPt2IgC4Z2YGIJlmBPYgOmYgkbiLGhmX2YrqkgGuw1MViXe41kTzIMDId/BoaGhj+khUuiY4QJxuh1kSWIMgxD/8QjRjTALggKbLCIDKWPU5AdMY0VvdkH2RbtVNkyyA7opMrgjJsfrAlzZbr1t8G6d1iFmscm+iTHXfkIldRNOMNVuXYlL+XfFT2H2O6WAAAAAElFTkSuQmCC\"", " ,\"stick_11.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAALVJREFUOI3t0ztuAkEMgOEvYQkQChQpp6DikrkALcohUOrcgIqCjj5FilDQ8UixlngosN5su780Gllj/bLHMjmWcSp5TArTtMJW+A8esEjkjeNe/fE2wAhDdAu8JISduM9zBxH3Iz5in3DhcvV6mIXgB2+YZEXXwid8huwDr3VF18L3kE01HOgS65DNnf60kXCLjYo2s2X38axs9btRacGXst3a07zFBgflItwl23KBnbLKu/wCR20gpGTSl3wAAAAASUVORK5CYII=\"", " ,\"stick_12.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAANNJREFUOI3t07FKA0EQgOHvoijaxuBDaCEEe5uUwUeyEDurtEHfwECQlNopCKnsrUJqFcFCQs7i5sgVeuxhJ/nLnZl/d2ZY1qz5h2SYYo5nTPCEvIHjAKc4xj684DMkeYj7CaITPFbqvjArgy10cYmPSLjGzg+ibQwj5w0XOKq7uYObKLjHbiW2hbuI3WIvoRMUsx1UXlpyFWeD6KoRGUYh6ClmlmOMjaaykjZeFcN/wLsGbf7GmdUmz/8qg8OKsHabqbSwwFIx11o2E4TLEGYSftA3PXkxeOJzoewAAAAASUVORK5CYII=\"", " ,\"stick_13.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAANtJREFUOI3t07FKA0EQBuDvTlG0VfEhtAgEe19AfCQLsbNKK/oGCiIpYykEUtlrI9YqooVFziJzuEg896JlftjmduZj9+aOvNzG+jVlJpidOTgHZ8giRng0+XD7GKJqYWxhHzvYhDu8B1IFvPetadqfsoubpO8DD/VmiS6O8RoFZ1iZAi7jJGqecYRO0xU2cB4N11hNwCUMYu8K601QmgK95KQ1eBrPemYYaIGLAO5N3nWFSyy0xeqs4QlvsV60uOZPOfA1ycO/YrCdgI3TzE2JcYDFf4ACHOcUfgK/fDpV7BBCtAAAAABJRU5ErkJggg==\"", " ,\"stick_14.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAM1JREFUOI3t0rFKA0EQgOFvY2KMFiKat7AQ8gI2PpeF2FmlFX0DA2Jtuvg4apAYCHpnkbl4CDnvsJP81c7O7r8z7LBhwz8kYYYF5phG3IQe9rGHTgpZO+QifsZ7DdEBdiLO8VkkWxjgCm+RvI1LP+niOs684hInVS/3cRcXxtgt5bbxGLkHHP3SxYqEYanSgpvYG0ZXjUgYheAMp7G+x1ZTWcEhXvCEieUU1G5zHedRWY6Lv8rguCSs/M26tPCBzPesrqVdQ5iFMFlWWckXLE8s0STxUmsAAAAASUVORK5CYII=\"", " ,\"stick_15.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAOFJREFUOI3t071KA0EQwPHfnt9aiKidTyApBB/QQuys0oq+gYJY60NYpItVaj+QKAgmFpmTNcTcGtv8Ydmdm50/c8wdZdzHaqQqFBYzF86FM5DQxwfe8RLxOPuxdybk1rCJDSylkC2GXMSPeMuK9mLvjYm2sBrxEJ91ssIhTvEayYso4uevt4KzuPOMExxM6PybXVxGwR3WM+EybiN3g51popyEdtZpLTyPZ20zDDThKgQP6Mb5Ggt/ldVs48lo8n2jr6D4NX/jKDob4vi/MmhlwqnTLKXCIISp4W4xg1iNfAH/IDYHUEEa4gAAAABJRU5ErkJggg==\"", " ,\"stick_2.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAACRJREFUOI1jYBgFo2AYAkYGBoYz1DSQhYGBQZCaBo6CUTAsAQAO/gDjGameSwAAAABJRU5ErkJggg==\"", " ,\"stick_3.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAD9JREFUOI1jYCAOXIJigoCJSAOJBqMGjhpIBmBkYGA4Q4Q6LSh9jZBCFgYGBkEiDGSG0sSoJQqMZr1RA4eUgQCBQAVfOGtUugAAAABJRU5ErkJggg==\"", " ,\"stick_4.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJBJREFUOI3tzjEOAUEYBeBvV0UrEncQlTOoROJGLqByADdYjV6pUumVEp1C0KEwiUZiYqaSfcmfaV6+edSp84dpYIsRerjhkIruccUj3A7jVLTEADOcA7xAMxWGDqqArtHKgRaYey/NkgLLgA5zoW2csMkFwtRrZT+mXEZ0qvBOfl306dMLVrHlb7njiG4M+ATgfRo0TB7IrwAAAABJRU5ErkJggg==\"", " ,\"stick_5.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAKJJREFUOI3t0zEKwjAYgNFncVBX8RZunsObOYgH8Aa6uboLTu66CS4iKDqpdWgKxaWh7dgPsoVHEvIT1yGs0pJIMLoWbMEKdbHHWfZxN9ghrYMe8QpIGuDp357oSclLMMEMjwAv0a8KFhthFdAtBnVB6GBROGltMEfXAT01AcIQNzxjwbJ/eMVc9o69WkcrNJZd+9IUmOCDe+zmsr54y6aqtB8W9CgIIj5T8QAAAABJRU5ErkJggg==\"", " ,\"stick_6.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAI9JREFUOI3tzjEOAVEUheFvJhpakdiEyhr0dmQDqlmAHYxGr7QWFREZkilQeKKRePFeJfM3997k5L+Hjo4/pECDFlecwp0kbNELu3AfcEkRl5hiiTPuWKGfIn0xQh2kWwxySAtU3k2zUGAdpLNc0iGO2OUSwsKz5SQmXEZk6jDnvzb69LTBJjb8jRv2GMcIHzSiGs7D32QGAAAAAElFTkSuQmCC\"", " ,\"stick_7.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAALBJREFUOI3t1D1qAkEUwPGfi4WmFbucIKTzmimCB/AGegQPYZEylYWNhigqLH4V84RFAjtkt/QPw5thHn/efJLHIlotRaYwm6fwKfwHHexR4ojfGD/yFvErR1iiG30x3uBQyXuNuMyttMAIH9jhign6MZ/99P5iiGlI53hpKiQtf1yptLHwLp2F9LsNIQzwI518K9/XGp/SPvYalVbhXVr2qi1hgTO2ucl1XHCSLn8tN1MaJxupl4lMAAAAAElFTkSuQmCC\"", " ,\"stick_8.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJNJREFUOI3t0yEOwkAQRuEPSOACJBhugMHgewO4U8MFsIQjVBA0Ei6CwILFFLGLQdBmt4r0JZs1k5d/JjP09Pwhgw4cC6yxwixHVOCKOr4XbimiCfZR8sAWy9RUY5yj7IRpqujDIcp2GObKiig7YpQrgwueOmiTsBo1yqbCtnPYxL9KTfRNJexZ4yG0TTjHXWj7J2/dMhe9PX35ywAAAABJRU5ErkJggg==\"", " ,\"stick_9.png\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAKNJREFUOI3t0zEOAUEUBuAPG0QtcQiNRu8GTuUCWnEIUWsdQK/SKBS20Iig2NFssLNWuX8y3cyX9+dliMsunMI0I8Ho1GAN/pDkD8YQU4wxiH307qdMsMUjnCsOv4AdLAJyxgyjWCgPtrEJ2Br9slAeXAZsruJCd9gHbIVWFewFXpAqqBk7dhc9WdVTpdFCjrK6pbf5KSnuaBRdjK2c4Cab8muerVAjt5zCDvoAAAAASUVORK5CYII=\"", "};", "", "config.macros.synchrotronHistory = {};", "config.macros.synchrotronHistory.handler = function(place) {", " var repo = revisionStore.repo;", " var ordering = DrawDvcs.renderRepository(repo);", "", " createTiddlyButton(place,", " \t\t \"Import...\",", " \t\t \"Import revisions from another TiddlyWiki file\",", "\t\t config.macros.synchrotronHistory.importButtonClicked);", "", " var para = document.createElement(\"p\");", " para.style.cssText = 'line-height: 0px; white-space: nowrap;';", "", " for (var i = 0; i < ordering.length; i++) {", " var item = ordering[i];", " var rev = repo.lookupRev(item.revId);", " var pictures = item.pictures;", " for (var j = 0; j < pictures.length; j++) {", "\t var img = document.createElement('img');", "\t img.src = Synchrotron.images[pictures[j]];", "\t para.appendChild(img);", "\t}", "\tvar summary =", "\t (rev.metadata||{}).committer + \" \" + new Date(rev.timestamp||0).convertToYYYYMMDDHHMM();", "\tvar s = createTiddlyButton(para,", "\t\t\t\t summary,", "\t\t\t\t \"Click for a menu of options for this revision\",", "\t\t\t\t config.macros.synchrotronHistory.revisionClicked);", "\ts.revisionId = item.revId;", "\tif (revisionStore.checkout.directParent == item.revId) {", "\t s.style.cssText = 'background-color: blue; color: white;';", "\t}", "\tif (revisionStore.checkout.additionalParent == item.revId) {", "\t s.style.cssText = 'background-color: #00cc00; color: white;';", "\t}", "\tpara.appendChild(document.createElement(\"br\"));", " }", " place.appendChild(para);", "};", "", "config.macros.synchrotronHistory.importButtonClicked = function(event) {", " var e = (event || window.event);", " try {", "\tnetscape.security.PrivilegeManager.enablePrivilege(\"UniversalXPConnect\");", "\tvar fp = Components.classes[\"@mozilla.org/filepicker;1\"].createInstance(Components.interfaces.nsIFilePicker);", "\tfp.init(window, \"Choose a TiddlyWiki to import from\", 0);", "\tif (fp.show() == 0 && fp.file.exists()) {", "\t // OK clicked, and selected file exists.", "\t revisionStore.importFromFile(fp.file.path);", "\t}", " } catch (ex) {", "\talert(ex);", " }", " e.cancelBubble = true;", " if (e.stopPropagation) e.stopPropagation();", " return false;", "};", "", "config.macros.synchrotronHistory.revisionClicked = function(event) {", " var e = (event || window.event);", " var revId = e.target.revisionId;", " var popup = Popup.create(this);", "", " createTiddlyText(createTiddlyElement(popup, \"li\", null, \"listTitle\"), \"Revision \" + revId);", "", " if (revId != revisionStore.checkout.directParent || store.isDirty()) {", "\tcreateTiddlyButton(createTiddlyElement(popup, \"li\"),", "\t\t\t (revId == revisionStore.checkout.directParent) ? \"Revert\" : \"Checkout\",", "\t\t\t \"Displays this revision as a base to edit from\",", "\t\t\t function () {", "\t\t\t revisionStore.updateToRevision(revId);", "\t\t\t });", " } else {", "\tcreateTiddlyText(createTiddlyElement(popup, \"li\", null, \"disabled\"), \"Checkout\");", " }", "", " if (revisionStore.repo.canMerge(revisionStore.checkout.directParent,", "\t\t\t\t revId)) {", "\tcreateTiddlyButton(createTiddlyElement(popup, \"li\"),", "\t\t\t \"Merge\",", "\t\t\t \"Merges this revision into the current revision\",", "\t\t\t function () {", "\t\t\t revisionStore.mergeWithRevision(revId);", "\t\t\t });", " } else {", "\tcreateTiddlyText(createTiddlyElement(popup, \"li\", null, \"disabled\"), \"Merge\");", " }", "", " Popup.show();", " e.cancelBubble = true;", " if (e.stopPropagation) e.stopPropagation();", " return false;", "};", "", "}//# end of 'install only once'", "//}}}"], 'field-changecount':"2", 'field-uuid':"ab1c1626-3e82-4a89-b5a0-18f64eefbfc6"}, '8967f9a6-aecc-4194-bd81-740bbc944fbb':{title:"Links", created:"200809271550", modified:"200809271821", modifier:"Jim Pick", tags:[], text:["Just a starter set...", "", "__Vancouver__", "", "* http://www.freebase.com/view/en/vancouver_british_columbia", "* http://dbpedia.org/page/Vancouver", "* http://www.powerset.com/explore/go/vancouver", "", "__ Tools __", "", "* [[Freebase Parallax | http://mqlx.com/~david/parallax/]]", "", "__ More links __", "", "* http://delicious.com/tag/semwebintro", "* http://delicious.com/jpick/rdf", "* http://delicious.com/jpick/semweb", ""], 'field-changecount':"7", 'field-uuid':"f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"}, '1e12aa9e-b7f0-44bc-acca-793329c23efe':{title:"Links", created:"200809271550", modified:"200809271834", modifier:"Jim Pick", tags:[], text:["Just a starter set...", "", "__Vancouver__", "", "* http://www.freebase.com/view/en/vancouver_british_columbia", "* http://dbpedia.org/page/Vancouver", "* http://www.powerset.com/explore/go/vancouver", "", "__ Tools __", "", "* [[Freebase Parallax | http://mqlx.com/~david/parallax/]]", "", "__ More links __", "", "* http://rdfabout.com/", "* http://delicious.com/tag/semwebintro", "* http://delicious.com/jpick/rdf", "* http://delicious.com/jpick/semweb", ""], 'field-changecount':"8", 'field-uuid':"f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"}, 'e469749d-30ac-4f1f-adcd-e1cc13fc818c':{title:"Links", created:"200809271550", modified:"200809271851", modifier:"Jim Pick", tags:[], text:["Just a starter set...", "", "__Vancouver__", "", "* http://www.freebase.com/view/en/vancouver_british_columbia", "* http://dbpedia.org/page/Vancouver", "* http://en.wikipedia.org/wiki/Vancouver", "* http://www.powerset.com/explore/go/vancouver", "* http://www.openstreetmap.org/", "", "__ Tools __", "", "* [[Freebase Parallax | http://mqlx.com/~david/parallax/]]", "", "__ More links __", "", "* http://rdfabout.com/", "* http://delicious.com/tag/semwebintro", "* http://delicious.com/jpick/rdf", "* http://delicious.com/jpick/semweb", ""], 'field-changecount':"9", 'field-uuid':"f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"}, '089e93b7-a387-434d-9f2e-ffe3f8cd2481':{title:"Links", created:"200809271550", modified:"200809271853", modifier:"Jim Pick", tags:[], text:["Just a starter set...", "", "__Vancouver__", "", "* http://www.freebase.com/view/en/vancouver_british_columbia", "* http://dbpedia.org/page/Vancouver", "* http://en.wikipedia.org/wiki/Vancouver", "* http://www.powerset.com/explore/go/vancouver", "* http://www.openstreetmap.org/", "", "__ Tools __", "", "* [[Freebase Parallax | http://mqlx.com/~david/parallax/]]", "", "__ More links __", "", "* http://rdfabout.com/", "* http://delicious.com/tag/semwebintro", "* http://delicious.com/jpick/rdf", "* http://delicious.com/jpick/semweb", "* http://wiki.northernvoice.ca/Talk%20Outline%20-%20Compiling%20Free%20Metadata%20about%20Vancouver", ""], 'field-changecount':"10", 'field-uuid':"f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"}, 'fe939523-52bb-4cf3-90f4-df98e885c636':{title:"Links", created:"200809271550", modified:"200809272048", modifier:"Jim Pick", tags:[], text:["Just a starter set...", "", "__Vancouver__", "", "* http://www.freebase.com/view/en/vancouver_british_columbia", "* http://dbpedia.org/page/Vancouver", "* http://en.wikipedia.org/wiki/Vancouver", "* http://www.powerset.com/explore/go/vancouver", "* http://www.openstreetmap.org/", "", "__ Tools __", "", "* [[Freebase Parallax | http://mqlx.com/~david/parallax/]]", "", "__ Local Semantic Web Projects __", "", "* http://playtheweb.org/", "* Vancouver Semantic Camp", "", "__ More links __", "", "* http://rdfabout.com/", "* http://delicious.com/tag/semwebintro", "* http://delicious.com/jpick/rdf", "* http://delicious.com/jpick/semweb", "* http://wiki.northernvoice.ca/Talk%20Outline%20-%20Compiling%20Free%20Metadata%20about%20Vancouver", ""], 'field-changecount':"11", 'field-uuid':"f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"}, 'ebffc08d-189a-4e14-93e3-4a187ce2f961':{title:"Links", created:"200809271550", modified:"200809281754", modifier:"Jim Pick", tags:[], text:["Just a starter set...", "", "__Vancouver__", "", "* http://www.freebase.com/view/en/vancouver_british_columbia", "* http://dbpedia.org/page/Vancouver", "* http://en.wikipedia.org/wiki/Vancouver", "* http://www.powerset.com/explore/go/vancouver", "* http://www.openstreetmap.org/", "", "__ Tools __", "", "* [[Freebase Parallax | http://mqlx.com/~david/parallax/]]", "", "__ Local Semantic Web Projects __", "", "* http://playtheweb.org/", "* http://semanticcamp.wordpress.com/", "", "__ More links __", "", "* http://rdfabout.com/", "* http://delicious.com/tag/semwebintro", "* http://delicious.com/jpick/rdf", "* http://delicious.com/jpick/semweb", "* http://wiki.northernvoice.ca/Talk%20Outline%20-%20Compiling%20Free%20Metadata%20about%20Vancouver", ""], 'field-changecount':"12", 'field-uuid':"f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"}, '16e5f223-0dac-4017-bf22-042216858bef':{title:"Links", created:"200809271550", modified:"200809281755", modifier:"Jim Pick", tags:[], text:["Just a starter set...", "", "__Vancouver__", "", "* http://www.freebase.com/view/en/vancouver_british_columbia", "* http://dbpedia.org/page/Vancouver", "* http://en.wikipedia.org/wiki/Vancouver", "* http://www.powerset.com/explore/go/vancouver", "* http://www.openstreetmap.org/", "", "__ Tools __", "", "* [[Freebase Parallax | http://mqlx.com/~david/parallax/]]", "", "__ Local Semantic Web Projects __", "", "* http://playtheweb.org/", "* http://semanticcamp.wordpress.com/", "", "__ Local Companies developing for the Semantic Web __", "", "* http://www.donatgroup.com/", "", "__ More links __", "", "* http://rdfabout.com/", "* http://delicious.com/tag/semwebintro", "* http://delicious.com/jpick/rdf", "* http://delicious.com/jpick/semweb", "* http://wiki.northernvoice.ca/Talk%20Outline%20-%20Compiling%20Free%20Metadata%20about%20Vancouver", ""], 'field-changecount':"13", 'field-uuid':"f8727e3b-4d6a-4cb2-afb9-a83ab26893f0"}}})
//}}}
// Copyright (c) 2006, 2008 Tony Garnock-Jones <tonyg@lshift.net>
// Copyright (c) 2006, 2008 LShift Ltd. <query@lshift.net>
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation files
// (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software,
// and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
// BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
Diff = {
longest_common_subsequence: function(file1, file2) {
/* Text diff algorithm following Hunt and McIlroy 1976.
* J. W. Hunt and M. D. McIlroy, An algorithm for differential file
* comparison, Bell Telephone Laboratories CSTR #41 (1976)
* http://www.cs.dartmouth.edu/~doug/
*
* Expects two arrays of strings.
*/
var equivalenceClasses;
var file2indices;
var newCandidate;
var candidates;
var line;
var c, i, j, jX, r, s;
equivalenceClasses = {};
for (j = 0; j < file2.length; j++) {
line = file2[j];
if (equivalenceClasses[line]) {
equivalenceClasses[line].push(j);
} else {
equivalenceClasses[line] = [j];
}
}
candidates = [{file1index: -1,
file2index: -1,
chain: null}];
for (i = 0; i < file1.length; i++) {
line = file1[i];
file2indices = equivalenceClasses[line] || [];
r = 0;
c = candidates[0];
for (jX = 0; jX < file2indices.length; jX++) {
j = file2indices[jX];
for (s = 0; s < candidates.length; s++) {
if ((candidates[s].file2index < j) &&
((s == candidates.length - 1) ||
(candidates[s + 1].file2index > j)))
break;
}
if (s < candidates.length) {
newCandidate = {file1index: i,
file2index: j,
chain: candidates[s]};
if (r == candidates.length) {
candidates.push(c);
} else {
candidates[r] = c;
}
r = s + 1;
c = newCandidate;
if (r == candidates.length) {
break; // no point in examining further (j)s
}
}
}
candidates[r] = c;
}
// At this point, we know the LCS: it's in the reverse of the
// linked-list through .chain of
// candidates[candidates.length - 1].
return candidates[candidates.length - 1];
},
diff_comm: function(file1, file2) {
// We apply the LCS to build a "comm"-style picture of the
// differences between file1 and file2.
var result = [];
var tail1 = file1.length;
var tail2 = file2.length;
var common = {common: []};
function processCommon() {
if (common.common.length) {
common.common.reverse();
result.push(common);
common = {common: []};
}
}
for (var candidate = Diff.longest_common_subsequence(file1, file2);
candidate !== null;
candidate = candidate.chain)
{
var different = {file1: [], file2: []};
while (--tail1 > candidate.file1index) {
different.file1.push(file1[tail1]);
}
while (--tail2 > candidate.file2index) {
different.file2.push(file2[tail2]);
}
if (different.file1.length || different.file2.length) {
processCommon();
different.file1.reverse();
different.file2.reverse();
result.push(different);
}
if (tail1 >= 0) {
common.common.push(file1[tail1]);
}
}
processCommon();
result.reverse();
return result;
},
diff_patch: function(file1, file2) {
// We apply the LCD to build a JSON representation of a
// diff(1)-style patch.
var result = [];
var tail1 = file1.length;
var tail2 = file2.length;
function chunkDescription(file, offset, length) {
var chunk = [];
for (var i = 0; i < length; i++) {
chunk.push(file[offset + i]);
}
return {offset: offset,
length: length,
chunk: chunk};
}
for (var candidate = Diff.longest_common_subsequence(file1, file2);
candidate !== null;
candidate = candidate.chain)
{
var mismatchLength1 = tail1 - candidate.file1index - 1;
var mismatchLength2 = tail2 - candidate.file2index - 1;
tail1 = candidate.file1index;
tail2 = candidate.file2index;
if (mismatchLength1 || mismatchLength2) {
result.push({file1: chunkDescription(file1,
candidate.file1index + 1,
mismatchLength1),
file2: chunkDescription(file2,
candidate.file2index + 1,
mismatchLength2)});
}
}
result.reverse();
return result;
},
invert_patch: function(patch) {
// Takes the output of Diff.diff_patch(), and inverts the
// sense of it, so that it can be applied to file2 to give
// file1 rather than the other way around.
for (var i = 0; i < patch.length; i++) {
var chunk = patch[i];
var tmp = chunk.file1;
chunk.file1 = chunk.file2;
chunk.file2 = tmp;
}
},
patch: function (file, patch) {
// Applies a patch to a file.
//
// Given file1 and file2, Diff.patch(file1,
// Diff.diff_patch(file1, file2)) should give file2.
var result = [];
var commonOffset = 0;
function copyCommon(targetOffset) {
while (commonOffset < targetOffset) {
result.push(file[commonOffset]);
commonOffset++;
}
}
for (var chunkIndex = 0; chunkIndex < patch.length; chunkIndex++) {
var chunk = patch[chunkIndex];
copyCommon(chunk.file1.offset);
for (var lineIndex = 0; lineIndex < chunk.file2.length; lineIndex++) {
result.push(chunk.file2.chunk[lineIndex]);
}
commonOffset += chunk.file1.length;
}
copyCommon(file.length);
return result;
},
diff_indices: function(file1, file2) {
// We apply the LCS to give a simple representation of the
// offsets and lengths of mismatched chunks in the input
// files. This is used by diff3_merge_indices below.
var result = [];
var tail1 = file1.length;
var tail2 = file2.length;
for (var candidate = Diff.longest_common_subsequence(file1, file2);
candidate !== null;
candidate = candidate.chain)
{
var mismatchLength1 = tail1 - candidate.file1index - 1;
var mismatchLength2 = tail2 - candidate.file2index - 1;
tail1 = candidate.file1index;
tail2 = candidate.file2index;
if (mismatchLength1 || mismatchLength2) {
result.push({file1: [tail1 + 1, mismatchLength1],
file2: [tail2 + 1, mismatchLength2]});
}
}
result.reverse();
return result;
},
diff3_merge_indices: function (a, o, b) {
// Given three files, A, O, and B, where both A and B are
// independently derived from O, returns a fairly complicated
// internal representation of merge decisions it's taken. The
// interested reader may wish to consult
//
// Sanjeev Khanna, Keshav Kunal, and Benjamin C. Pierce. "A
// Formal Investigation of Diff3." In Arvind and Prasad,
// editors, Foundations of Software Technology and Theoretical
// Computer Science (FSTTCS), December 2007.
//
// (http://www.cis.upenn.edu/~bcpierce/papers/diff3-short.pdf)
var i;
var m1 = Diff.diff_indices(o, a);
var m2 = Diff.diff_indices(o, b);
var hunks = [];
function addHunk(h, side) {
hunks.push([h.file1[0], side, h.file1[1], h.file2[0], h.file2[1]]);
}
for (i = 0; i < m1.length; i++) { addHunk(m1[i], 0); }
for (i = 0; i < m2.length; i++) { addHunk(m2[i], 2); }
hunks.sort();
var result = [];
var commonOffset = 0;
function copyCommon(targetOffset) {
if (targetOffset > commonOffset) {
result.push([1, commonOffset, targetOffset - commonOffset]);
commonOffset = targetOffset;
}
}
for (var hunkIndex = 0; hunkIndex < hunks.length; hunkIndex++) {
var firstHunkIndex = hunkIndex;
var hunk = hunks[hunkIndex];
var regionLhs = hunk[0];
var regionRhs = regionLhs + hunk[2];
while (hunkIndex < hunks.length - 1) {
var maybeOverlapping = hunks[hunkIndex + 1];
var maybeLhs = maybeOverlapping[0];
if (maybeLhs >= regionRhs) break;
regionRhs = maybeLhs + maybeOverlapping[2];
hunkIndex++;
}
copyCommon(regionLhs);
if (firstHunkIndex == hunkIndex) {
if (hunk[4] > 0) {
result.push([hunk[1], hunk[3], hunk[4]]);
}
} else {
var regions = [a.length, -1, regionLhs, regionRhs, b.length, -1];
for (i = firstHunkIndex; i <= hunkIndex; i++) {
var side = hunks[i][1];
var lhs = hunks[i][3];
var rhs = lhs + hunks[i][4];
var ri = side * 2;
regions[ri] = Math.min(lhs, regions[ri]);
regions[ri+1] = Math.max(rhs, regions[ri+1]);
}
result.push([-1,
regions[0], regions[1] - regions[0],
regions[2], regions[3] - regions[2],
regions[4], regions[5] - regions[4]]);
}
commonOffset = regionRhs;
}
copyCommon(o.length);
return result;
},
diff3_merge: function (a, o, b, excludeFalseConflicts) {
// Applies the output of Diff.diff3_merge_indices to actually
// construct the merged file; the returned result alternates
// between "ok" and "conflict" blocks.
var result = [];
var files = [a, o, b];
var indices = Diff.diff3_merge_indices(a, o, b);
var okLines = [];
function flushOk() {
if (okLines) {
result.push({ok: okLines});
}
okLines = [];
}
function pushOk(xs) {
for (var j = 0; j < xs.length; j++) {
okLines.push(xs[j]);
}
}
function isTrueConflict(rec) {
if (rec[2] != rec[6]) return true;
var aoff = rec[1];
var boff = rec[5];
for (var j = 0; j < rec[2]; j++) {
if (a[j + aoff] != b[j + boff]) return true;
}
return false;
}
for (var i = 0; i < indices.length; i++) {
var x = indices[i];
var side = x[0];
if (side == -1) {
if (excludeFalseConflicts && !isTrueConflict(x)) {
pushOk(files[0].slice(x[1], x[1] + x[2]));
} else {
flushOk();
result.push({conflict: {a: a.slice(x[1], x[1] + x[2]),
aIndex: x[1],
o: o.slice(x[3], x[3] + x[4]),
oIndex: x[3],
b: b.slice(x[5], x[5] + x[6]),
bIndex: x[5]}});
}
} else {
pushOk(files[side].slice(x[1], x[1] + x[2]));
}
}
flushOk();
return result;
}
};
// Copyright (c) 2008 Tony Garnock-Jones <tonyg@lshift.net>
// Copyright (c) 2008 LShift Ltd. <query@lshift.net>
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation files
// (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software,
// and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
// BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
DrawDvcs = {
renderRepository: function (repo) {
var childCount = {};
var ordering = [];
var i, j, item, parent, column, row;
var worklist = repo.childlessRevisions();
while (worklist.length) {
item = worklist.shift();
ordering.push(item);
var parents = repo.lookupParents(item);
for (i = 0; i < parents.length; i++) {
parent = parents[i];
if (childCount[parent] == undefined) {
childCount[parent] = (repo.children[parent] || []).length;
}
childCount[parent] = childCount[parent] - 1;
if (childCount[parent] === 0) {
worklist.push(parent);
}
}
}
var slots = [];
var assignments = {};
function allocateSlot(item) {
var column = assignments[item];
if (typeof(column) != 'number') {
column = null;
for (var j = 0; j < slots.length; j++) {
if (slots[j] === null) {
column = j;
break;
}
}
if (column === null) {
slots.push(item);
column = slots.length - 1;
}
}
return column;
}
var finalAssignments = [];
var cells = [];
var oldrow = [];
for (i = 0; i < ordering.length; i++) {
item = ordering[i];
var hasKid = typeof(assignments[item]) == 'number';
column = allocateSlot(item);
var parentIds = repo.lookupParents(item);
var parentColumns = [];
slots[column] = null;
for (j = 0; j < parentIds.length; j++) {
parent = parentIds[j];
var c2 = (j === 0)
? (typeof(assignments[parent]) == 'number'
? allocateSlot(parent)
: column)
: allocateSlot(parent);
parentColumns.push(c2);
slots[c2] = parent;
assignments[parent] = c2;
}
finalAssignments.push(column);
row = [];
for (j = 0; j < slots.length; j++) {
var oldCell = (oldrow.length >= j ? oldrow[j] : 0);
if (oldCell & 16) {
row[j] = (oldCell & 4) ? 1 : 0;
} else {
row[j] = (oldCell & (1 | 4 | 8)) ? 1 : 0;
}
}
row[column] = 16 | (hasKid ? 1 : 0);
for (j = 0; j < parentColumns.length; j++) {
var parentColumn = parentColumns[j];
var n1 = Math.min(parentColumn, column) + 1;
var n2 = Math.max(parentColumn, column);
for (var k = n1; k < n2; k++) {
row[k] = row[k] | 2;
}
if (parentColumn == column) {
row[parentColumn] = row[parentColumn] | 4;
} else {
row[parentColumn] = row[parentColumn] | (column > parentColumn ? 8 : 4);
row[column] = row[column] | (column > parentColumn ? 2 : 8);
}
}
cells.push(row);
oldrow = row;
}
var results = [];
for (i = 0; i < ordering.length; i++) {
item = ordering[i];
column = finalAssignments[i];
row = cells[i];
var result = {revId: item, pictures: []};
for (j = 0; j < row.length; j++) {
var v = row[j];
result.pictures.push((v & 16 ? "blob_" : "stick_") + (v & 15) + ".png");
}
results.push(result);
}
return results;
},
simpleRenderRepository: function (repo) {
var ordering = DrawDvcs.renderRepository(repo);
var html = "";
for (var i = 0; i < ordering.length; i++) {
var item = ordering[i];
var rev = repo.lookupRev(item.revId);
var pictures = item.pictures;
for (var j = 0; j < pictures.length; j++) {
html = html + "<img src='img/" + pictures[j] + "' />";
}
html = html+" "+item.revId+" ("+rev.branch+") "+(rev.metadata||{}).summary+"<br />\n";
}
return "<p style='line-height: 0px; white-space: nowrap;'>" + html + "</p>";
}
};
// Copyright (c) 2008 Tony Garnock-Jones <tonyg@lshift.net>
// Copyright (c) 2008 LShift Ltd. <query@lshift.net>
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation files
// (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software,
// and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
// BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
var Dvcs = {
_debugMode: false,
Util: {
random_hex_string: function(n) {
var digits = "0123456789abcdef";
var result = "";
for (var i = 0; i < n; i++) {
result = result + digits[Math.floor(Math.random() * 16)];
}
return result;
},
random_uuid: function() {
if (Dvcs._debugMode) {
return Dvcs.Util.random_hex_string(8);
} else {
return [Dvcs.Util.random_hex_string(8),
Dvcs.Util.random_hex_string(4),
"4" + Dvcs.Util.random_hex_string(3),
((Math.floor(Math.random() * 256) & ~64) | 128).toString(16) +
Dvcs.Util.random_hex_string(2),
Dvcs.Util.random_hex_string(12)].join("-");
}
},
dict_union: function(s1, s2) {
var result = {};
var k;
for (k in s2) { result[k] = s2[k]; }
for (k in s1) { result[k] = s1[k]; }
return result;
},
dict_difference: function(s1, s2) {
var result = {};
var k;
for (k in s1) { result[k] = s1[k]; }
for (k in s2) { delete result[k]; }
return result;
},
dict_to_set: function(d) {
for (var k in d) { d[k] = 1; }
return d;
},
deepCopy: function(obj) {
// Courtesy of
// http://keithdevens.com/weblog/archive/2007/Jun/07/javascript.clone
//
// Does not handle recursive structures.
if (obj === null || typeof(obj) != 'object') {
return obj;
}
var temp = obj.constructor();
for (var key in obj) {
temp[key] = Dvcs.Util.deepCopy(obj[key]);
}
return temp;
}
},
Mergers: {
simpleScalarMerger: function(v1, v0, v2) {
if (v1 == v2) return [{ok: v1}];
if (v1 == v0) return [{ok: v2}];
if (v2 == v0) return [{ok: v1}];
return [{conflict: {a: v1, o: v0, b: v2}}];
},
simpleTextualMerger: function(v1, v0, v2) {
return Diff.diff3_merge(v1, v0, v2, true);
},
Defaults: {}
},
Checkout: function(directParent, additionalParent, currentBranch) {
this.inodes = {};
this.directParent = directParent;
this.additionalParent = additionalParent;
this.dirty = {};
this.anyDirty = false;
this.currentBranch = currentBranch;
},
Repository: function() {
this.bodies = {};
this.revisions = {};
this.children = {};
}
};
Dvcs.Mergers.Defaults["text"] = Dvcs.Mergers.simpleTextualMerger;
Dvcs.Checkout.prototype.setDirty = function(uuid) {
this.dirty[uuid] = uuid;
this.anyDirty = true;
}
Dvcs.Checkout.prototype.createFile = function() {
var uuid = Dvcs.Util.random_uuid();
if (Dvcs._debugMode) { uuid = "inode-" + uuid; }
this.inodes[uuid] = {};
this.setDirty(uuid);
return uuid;
};
Dvcs.Checkout.prototype.deleteFile = function(uuid) {
if (!this.inodes[uuid]) return false;
delete this.inodes[uuid];
this.anyDirty = true;
return true;
};
Dvcs.Checkout.prototype.fileExists = function(uuid) {
return !!(this.inodes[uuid]);
};
Dvcs.Checkout.prototype.hasProp = function(uuid, prop) {
var inode = this.inodes[uuid];
if (!inode) return null;
return (inode[prop] !== undefined);
}
Dvcs.Checkout.prototype.getProp = function(uuid, prop, defaultValue) {
var inode = this.inodes[uuid];
if (!inode) return null;
var v = inode[prop];
if (v === undefined) {
return defaultValue;
} else {
return Dvcs.Util.deepCopy(v);
}
};
Dvcs.Checkout.prototype.setProp = function(uuid, prop, value) {
var inode = this.inodes[uuid];
if (!inode) return false;
inode[prop] = value;
this.setDirty(uuid);
return true;
};
Dvcs.Checkout.prototype.clearProp = function(uuid, prop) {
var inode = this.inodes[uuid];
if (!inode) return null;
if (inode[prop] !== undefined) {
delete inode[prop];
this.setDirty(uuid);
}
return true;
}
Dvcs.Checkout.prototype.forEachProp = function(uuid, f) {
var inode = this.inodes[uuid];
if (!inode) return null;
for (var prop in inode) {
f(prop, inode[prop]);
}
}
Dvcs.Checkout.prototype.forEachFile = function(f) {
for (var uuid in this.inodes) {
f(uuid);
}
};
Dvcs.Checkout.prototype.getBranch = function() {
return this.currentBranch;
};
Dvcs.Checkout.prototype.setBranch = function(newBranch) {
this.currentBranch = newBranch;
};
Dvcs.Checkout.prototype.clone = function() {
var result = new Dvcs.Checkout(this.directParent,
this.additionalParent,
this.currentBranch);
result.inodes = Dvcs.Util.deepCopy(this.inodes);
return result;
};
Dvcs.Repository.prototype.resolveRevId = function(revId) {
if (this.revisions[revId]) {
return revId;
} else {
return this.branchTip(revId);
}
};
Dvcs.Repository.prototype.lookupRev = function(revId, shouldResolve) {
var candidate = this.revisions[revId];
if (!candidate && (shouldResolve !== false)) {
// shouldResolve is an optional parameter, hence the odd test in the line above
candidate = this.revisions[this.branchTip(revId)];
}
return candidate
|| { alive: {},
dead: {},
changed: [],
branch: null,
timestamp: 0,
metadata: null,
directParent: null,
additionalParent: null };
};
Dvcs.Repository.prototype.getMetadata = function(revId, shouldResolve) {
return this.lookupRev(revId, shouldResolve).metadata;
};
Dvcs.Repository.prototype.getBody = function(revRecord, aliveInodeId) {
var bodyId = revRecord.alive[aliveInodeId];
if (!bodyId) return {};
return Dvcs.Util.deepCopy(this.bodies[bodyId]);
};
Dvcs.Repository.prototype.update = function(unresolvedRevId) {
var revId = this.resolveRevId(unresolvedRevId);
var rev = this.revisions[revId];
if (!rev) {
if (unresolvedRevId === null) {
// meaning "default branch". We only get here if the user
// asked for the default branch and there are currently no
// commits at all in the repo. Hand back an empty
// checkout.
return new Dvcs.Checkout(null, null, null);
} else {
// Couldn't find what the user asked for.
return null;
}
}
var fs = new Dvcs.Checkout(revId, null, rev.branch);
for (var inode in rev.alive) {
fs.inodes[inode] = this.getBody(rev, inode);
}
return fs;
};
Dvcs.Repository.prototype.commit = function(fs, metadata) {
if (!fs.anyDirty) {
return null;
}
var directParentRev = this.lookupRev(fs.directParent);
var additionalParentRev = this.lookupRev(fs.additionalParent);
var oldAlive = Dvcs.Util.dict_union(directParentRev.alive, additionalParentRev.alive);
var oldDead = Dvcs.Util.dict_union(directParentRev.dead, additionalParentRev.dead);
var newChanged = [];
var newAlive = {};
for (var inodeId in fs.inodes) {
if (fs.dirty[inodeId]) {
var newBodyId = Dvcs.Util.random_uuid();
if (Dvcs._debugMode) { newBodyId = "body-" + newBodyId; }
this.bodies[newBodyId] = Dvcs.Util.deepCopy(fs.inodes[inodeId]);
newAlive[inodeId] = newBodyId;
newChanged.push(inodeId);
} else {
newAlive[inodeId] = oldAlive[inodeId];
}
}
var newDead = Dvcs.Util.dict_to_set(Dvcs.Util.dict_union(oldDead,
Dvcs.Util.dict_difference(oldAlive,
newAlive)));
var rev = { alive: newAlive,
dead: newDead,
changed: newChanged,
branch: fs.getBranch(),
timestamp: (new Date()).getTime(),
metadata: metadata,
directParent: fs.directParent,
additionalParent: fs.additionalParent };
var newRevId = Dvcs.Util.random_uuid();
if (Dvcs._debugMode) { newRevId = "rev-" + newRevId; }
this.recordRevision(newRevId, rev);
fs.directParent = newRevId;
fs.additionalParent = null;
fs.dirty = {};
fs.anyDirty = false;
return newRevId;
};
Dvcs.Repository.prototype.lookupParents = function (revId) {
var r = this.lookupRev(revId);
var result = [];
if (r.directParent) result.push(r.directParent);
if (r.additionalParent) result.push(r.additionalParent);
return result;
};
Dvcs.Repository.prototype.canMerge = function(r1, r2) {
var $elf = this;
function lookupParents(revId) { return $elf.lookupParents(revId); }
var ancestorRevId = Graph.least_common_ancestor(lookupParents, r1, r2);
return !(r1 == ancestorRevId || r2 == ancestorRevId);
}
Dvcs.Repository.prototype.merge = function(r1, r2) {
var rev1 = this.lookupRev(r1);
var rev2 = this.lookupRev(r2);
var $elf = this;
function lookupParents(revId) { return $elf.lookupParents(revId); }
var ancestorRevId = Graph.least_common_ancestor(lookupParents, r1, r2);
var ancestorRev = this.lookupRev(ancestorRevId, false);
if (r1 == ancestorRevId || r2 == ancestorRevId) {
return null;
}
var fs = this.update(r1);
fs.additionalParent = r2;
fs.anyDirty = true;
var conflicts = [];
for (var deadInode in rev2.dead) {
fs.deleteFile(deadInode);
}
for (var aliveInode in rev2.alive) {
if (fs.fileExists(aliveInode)) {
if (ancestorRev.alive[aliveInode] != rev1.alive[aliveInode] ||
ancestorRev.alive[aliveInode] != rev2.alive[aliveInode])
{
// It has a different body from the ancestor in one or
// both of the revs being merged.
var body0 = this.getBody(ancestorRev, aliveInode);
var body1 = fs.inodes[aliveInode];
var body2 = this.getBody(rev2, aliveInode);
this.mergeBodies(body1, body0, body2,
function (mergedBody) {
fs.inodes[aliveInode] = mergedBody;
fs.setDirty(aliveInode);
},
function (partialResult, conflictDetails) {
conflicts.push({inode: aliveInode,
partialResult: partialResult,
conflictDetails: conflictDetails});
});
} else {
// It is unchanged. Leave it alone.
}
} else if (!rev1.dead[aliveInode]) {
fs.inodes[aliveInode] = this.getBody(rev2, aliveInode);
fs.setDirty(aliveInode);
}
}
return {files: fs, conflicts: conflicts, ancestor: ancestorRevId};
};
Dvcs.Repository.prototype.lookupMerger = function(prop) {
return Dvcs.Mergers.Defaults[prop] || Dvcs.Mergers.simpleScalarMerger;
};
Dvcs.Repository.prototype.mergeBodies = function(bThis, bBase, bOther, kSuccess, kConflict) {
var props = Dvcs.Util.dict_union(bThis, bOther);
var bResult = {};
var failures = {};
var haveConflicts = false;
for (var prop in props) {
var merger = this.lookupMerger(prop);
var mergedPropValue = merger(bThis[prop], bBase[prop], bOther[prop]);
if (mergedPropValue.length == 1 && mergedPropValue[0].ok) {
bResult[prop] = mergedPropValue[0].ok;
} else {
failures[prop] = mergedPropValue;
haveConflicts = true;
}
}
if (haveConflicts) {
return kConflict(bResult, failures);
} else {
return kSuccess(bResult);
}
};
Dvcs.Repository.prototype.recordRevision = function(newRevId, rev) {
var $elf = this;
function addChild(parentId) {
if (parentId === null) return;
if (!$elf.children[parentId]) {
$elf.children[parentId] = [newRevId];
} else {
$elf.children[parentId].push(newRevId);
}
}
this.revisions[newRevId] = rev;
addChild(rev.directParent);
addChild(rev.additionalParent);
};
Dvcs.Repository.prototype.exportRevisions = function(revIds) {
if (revIds) {
var revs = {};
for (var i = 0; i < revIds; i++) {
var rev = this.revisions[revIds[i]];
if (rev) revs[revIds[i]] = rev;
}
var bodies = {};
for (var revId in revs) {
var alive = revs[revId].alive;
for (var inodeId in alive) {
var bodyId = alive[inodeId];
bodies[bodyId] = this.bodies[bodyId];
}
}
return {revisions: revs, bodies: bodies};
} else {
// Shortcut for all revisions. Be warned: shares structure!
return {revisions: this.revisions, bodies: this.bodies};
}
};
Dvcs.Repository.prototype.importRevisions = function(e) {
var stats = {
bodyCount: 0,
bodyDups: 0,
revCount: 0,
revDups: 0
};
for (var bodyId in e.bodies) {
if (!this.bodies[bodyId]) {
this.bodies[bodyId] = e.bodies[bodyId];
stats.bodyCount++;
} else {
stats.bodyDups++;
}
}
for (var revId in e.revisions) {
if (!this.revisions[revId]) {
this.recordRevision(revId, e.revisions[revId]);
stats.revCount++;
} else {
stats.revDups++;
}
}
return stats;
};
Dvcs.Repository.prototype.allRevisions = function() {
return Dvcs.Util.dict_to_set(this.revisions);
};
Dvcs.Repository.prototype.branchHeads = function(branch) {
var result = [];
for (var revId in this.revisions) {
var rev = this.revisions[revId];
if (rev.branch == branch) {
var hasChildrenWithinBranch = false;
var kids = this.children[revId] || [];
for (var i = 0; i < kids.length; i++) {
if (this.revisions[kids[i]].branch == branch) {
hasChildrenWithinBranch = true;
break;
}
}
if (!hasChildrenWithinBranch) {
result.push(revId);
}
}
}
return result;
};
Dvcs.Repository.prototype.branchTip = function(branch) {
var newestHead = null;
var newestRev = null;
var branchHeads = this.branchHeads(branch);
for (var i = 0; i < branchHeads.length; i++) {
var id = branchHeads[i];
var rev = this.lookupRev(id);
if (newestHead === null || newestRev.timestamp < rev.timestamp) {
newestHead = id;
newestRev = rev;
}
}
return newestHead;
};
Dvcs.Repository.prototype.allBranches = function() {
var branches = {};
for (var revId in this.revisions) {
var rev = this.revisions[revId];
var branch = rev.branch;
var branchRecord = branches[branch];
if (!branchRecord) {
branchRecord = { active: false, heads: [] };
branches[branch] = branchRecord;
}
var hasChildrenWithinBranch = false;
var kids = this.children[revId] || [];
for (var i = 0; i < kids.length; i++) {
if (this.revisions[kids[i]].branch == branch) {
hasChildrenWithinBranch = true;
break;
}
}
if (!hasChildrenWithinBranch) {
branchRecord.heads.push(revId);
if (kids.length === 0) {
branchRecord.active = true;
}
}
}
return branches;
};
Dvcs.Repository.prototype.childlessRevisions = function() {
var result = [];
for (var revId in this.revisions) {
var kids = this.children[revId] || [];
if (kids.length === 0) {
result.push(revId);
}
}
var revs = this.revisions;
result.sort(function (r1, r2) { return revs[r2].timestamp - revs[r1].timestamp; });
return result;
};
Dvcs.Repository.prototype.fileRevisions = function(uuid) {
var result = {};
for (var revId in this.revisions) {
var rev = this.revisions[revId];
for (var i = rev.changed.length - 1; i >= 0; i--) {
if (uuid == rev.changed[i]) {
result[revId] = rev;
break;
}
}
}
return result;
};
// Copyright (c) 2008 Tony Garnock-Jones <tonyg@lshift.net>
// Copyright (c) 2008 LShift Ltd. <query@lshift.net>
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation files
// (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software,
// and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
// BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
Graph = {
_foreach: function(arr, f) {
for (var i = 0; i < arr.length; i++) {
f(arr[i]);
}
},
least_common_ancestor: function(parentsFun, leafId1, leafId2) {
/* This is a pretty crude approximation. Since we're working
with DAGs, rather than trees, it may not return the very very
least common ancestor. */
var potentialMatches = {};
function augmentPotentialMatches(nodeId) {
if (!potentialMatches[nodeId]) {
potentialMatches[nodeId] = nodeId;
Graph._foreach(parentsFun(nodeId), augmentPotentialMatches);
}
}
augmentPotentialMatches(leafId2);
var searchOrder = [leafId1];
function queueForExamination(nodeId) {
searchOrder.push(nodeId);
}
while (searchOrder.length) {
var candidateId = searchOrder.shift();
if (potentialMatches[candidateId]) {
return candidateId;
} else {
Graph._foreach(parentsFun(candidateId), queueForExamination);
}
}
return null; // no LCA found.
}
};
/*
http://www.JSON.org/json2.js
2008-06-08
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This file creates a global JSON object containing two methods: stringify
and parse.
JSON.stringify(value, replacer, space)
value any JavaScript value, usually an object or array.
replacer an optional parameter that determines how object
values are stringified for objects without a toJSON
method. It can be a function or an array.
space an optional parameter that specifies the indentation
of nested structures. If it is omitted, the text will
be packed without extra whitespace. If it is a number,
it will specify the number of spaces to indent at each
level. If it is a string (such as '\t' or ' '),
it contains the characters used to indent at each level.
This method produces a JSON text from a JavaScript value.
When an object value is found, if the object contains a toJSON
method, its toJSON method will be called and the result will be
stringified. A toJSON method does not serialize: it returns the
value represented by the name/value pair that should be serialized,
or undefined if nothing should be serialized. The toJSON method
will be passed the key associated with the value, and this will be
bound to the object holding the key.
For example, this would serialize Dates as ISO strings.
Date.prototype.toJSON = function (key) {
function f(n) {
// Format integers to have at least two digits.
return n < 10 ? '0' + n : n;
}
return this.getUTCFullYear() + '-' +
f(this.getUTCMonth() + 1) + '-' +
f(this.getUTCDate()) + 'T' +
f(this.getUTCHours()) + ':' +
f(this.getUTCMinutes()) + ':' +
f(this.getUTCSeconds()) + 'Z';
};
You can provide an optional replacer method. It will be passed the
key and value of each member, with this bound to the containing
object. The value that is returned from your method will be
serialized. If your method returns undefined, then the member will
be excluded from the serialization.
If the replacer parameter is an array, then it will be used to
select the members to be serialized. It filters the results such
that only members with keys listed in the replacer array are
stringified.
Values that do not have JSON representaions, such as undefined or
functions, will not be serialized. Such values in objects will be
dropped; in arrays they will be replaced with null. You can use
a replacer function to replace those with JSON values.
JSON.stringify(undefined) returns undefined.
The optional space parameter produces a stringification of the
value that is filled with line breaks and indentation to make it
easier to read.
If the space parameter is a non-empty string, then that string will
be used for indentation. If the space parameter is a number, then
then indentation will be that many spaces.
Example:
text = JSON.stringify(['e', {pluribus: 'unum'}]);
// text is '["e",{"pluribus":"unum"}]'
text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
text = JSON.stringify([new Date()], function (key, value) {
return this[key] instanceof Date ?
'Date(' + this[key] + ')' : value;
});
// text is '["Date(---current time---)"]'
JSON.parse(text, reviver)
This method parses a JSON text to produce an object or array.
It can throw a SyntaxError exception.
The optional reviver parameter is a function that can filter and
transform the results. It receives each of the keys and values,
and its return value is used instead of the original value.
If it returns what it received, then the structure is not modified.
If it returns undefined then the member is deleted.
Example:
// Parse the text. Values that look like ISO date strings will
// be converted to Date objects.
myData = JSON.parse(text, function (key, value) {
var a;
if (typeof value === 'string') {
a =
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
if (a) {
return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
+a[5], +a[6]));
}
}
return value;
});
myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
var d;
if (typeof value === 'string' &&
value.slice(0, 5) === 'Date(' &&
value.slice(-1) === ')') {
d = new Date(value.slice(5, -1));
if (d) {
return d;
}
}
return value;
});
This is a reference implementation. You are free to copy, modify, or
redistribute.
This code should be minified before deployment.
See http://javascript.crockford.com/jsmin.html
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD THIRD PARTY
CODE INTO YOUR PAGES.
*/
/*jslint evil: true */
/*global JSON */
/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", call,
charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, getUTCMinutes,
getUTCMonth, getUTCSeconds, hasOwnProperty, join, lastIndex, length,
parse, propertyIsEnumerable, prototype, push, replace, slice, stringify,
test, toJSON, toString
*/
if (!this.JSON) {
// Create a JSON object only if one does not already exist. We create the
// object in a closure to avoid global variables.
JSON = function () {
function f(n) {
// Format integers to have at least two digits.
return n < 10 ? '0' + n : n;
}
Date.prototype.toJSON = function (key) {
return this.getUTCFullYear() + '-' +
f(this.getUTCMonth() + 1) + '-' +
f(this.getUTCDate()) + 'T' +
f(this.getUTCHours()) + ':' +
f(this.getUTCMinutes()) + ':' +
f(this.getUTCSeconds()) + 'Z';
};
var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
escapeable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
gap,
indent,
meta = { // table of character substitutions
'\b': '\\b',
'\t': '\\t',
'\n': '\\n',
'\f': '\\f',
'\r': '\\r',
'"' : '\\"',
'\\': '\\\\'
},
rep;
function quote(string) {
// If the string contains no control characters, no quote characters, and no
// backslash characters, then we can safely slap some quotes around it.
// Otherwise we must also replace the offending characters with safe escape
// sequences.
escapeable.lastIndex = 0;
return escapeable.test(string) ?
'"' + string.replace(escapeable, function (a) {
var c = meta[a];
if (typeof c === 'string') {
return c;
}
return '\\u' + ('0000' +
(+(a.charCodeAt(0))).toString(16)).slice(-4);
}) + '"' :
'"' + string + '"';
}
function str(key, holder) {
// Produce a string from holder[key].
var i, // The loop counter.
k, // The member key.
v, // The member value.
length,
mind = gap,
partial,
value = holder[key];
// If the value has a toJSON method, call it to obtain a replacement value.
if (value && typeof value === 'object' &&
typeof value.toJSON === 'function') {
value = value.toJSON(key);
}
// If we were called with a replacer function, then call the replacer to
// obtain a replacement value.
if (typeof rep === 'function') {
value = rep.call(holder, key, value);
}
// What happens next depends on the value's type.
switch (typeof value) {
case 'string':
return quote(value);
case 'number':
// JSON numbers must be finite. Encode non-finite numbers as null.
return isFinite(value) ? String(value) : 'null';
case 'boolean':
case 'null':
// If the value is a boolean or null, convert it to a string. Note:
// typeof null does not produce 'null'. The case is included here in
// the remote chance that this gets fixed someday.
return String(value);
// If the type is 'object', we might be dealing with an object or an array or
// null.
case 'object':
// Due to a specification blunder in ECMAScript, typeof null is 'object',
// so watch out for that case.
if (!value) {
return 'null';
}
// Make an array to hold the partial results of stringifying this object value.
gap += indent;
partial = [];
// If the object has a dontEnum length property, we'll treat it as an array.
if (typeof value.length === 'number' &&
!(value.propertyIsEnumerable('length'))) {
// The object is an array. Stringify every element. Use null as a placeholder
// for non-JSON values.
length = value.length;
for (i = 0; i < length; i += 1) {
partial[i] = str(i, value) || 'null';
}
// Join all of the elements together, separated with commas, and wrap them in
// brackets.
v = partial.length === 0 ? '[]' :
gap ? '[\n' + gap +
partial.join(',\n' + gap) + '\n' +
mind + ']' :
'[' + partial.join(',') + ']';
gap = mind;
return v;
}
// If the replacer is an array, use it to select the members to be stringified.
if (rep && typeof rep === 'object') {
length = rep.length;
for (i = 0; i < length; i += 1) {
k = rep[i];
if (typeof k === 'string') {
v = str(k, value, rep);
if (v) {
partial.push(quote(k) + (gap ? ': ' : ':') + v);
}
}
}
} else {
// Otherwise, iterate through all of the keys in the object.
for (k in value) {
if (Object.hasOwnProperty.call(value, k)) {
v = str(k, value, rep);
if (v) {
partial.push(quote(k) + (gap ? ': ' : ':') + v);
}
}
}
}
// Join all of the member texts together, separated with commas,
// and wrap them in braces.
v = partial.length === 0 ? '{}' :
gap ? '{\n' + gap +
partial.join(',\n' + gap) + '\n' +
mind + '}' :
'{' + partial.join(',') + '}';
gap = mind;
return v;
}
}
// Return the JSON object containing the stringify, parse, and quote methods.
return {
stringify: function (value, replacer, space) {
// The stringify method takes a value and an optional replacer, and an optional
// space parameter, and returns a JSON text. The replacer can be a function
// that can replace values, or an array of strings that will select the keys.
// A default replacer method can be provided. Use of the space parameter can
// produce text that is more easily readable.
var i;
gap = '';
indent = '';
if (space) {
// If the space parameter is a number, make an indent string containing that
// many spaces.
if (typeof space === 'number') {
for (i = 0; i < space; i += 1) {
indent += ' ';
}
// If the space parameter is a string, it will be used as the indent string.
} else if (typeof space === 'string') {
indent = space;
}
}
// If there is a replacer, it must be a function or an array.
// Otherwise, throw an error.
rep = replacer;
if (replacer && typeof replacer !== 'function' &&
(typeof replacer !== 'object' ||
typeof replacer.length !== 'number')) {
throw new Error('JSON.stringify');
}
// Make a fake root object containing our value under the key of ''.
// Return the result of stringifying the value.
return str('', {'': value});
},
parse: function (text, reviver) {
// The parse method takes a text and an optional reviver function, and returns
// a JavaScript value if the text is a valid JSON text.
var j;
function walk(holder, key) {
// The walk method is used to recursively walk the resulting structure so
// that modifications can be made.
var k, v, value = holder[key];
if (value && typeof value === 'object') {
for (k in value) {
if (Object.hasOwnProperty.call(value, k)) {
v = walk(value, k);
if (v !== undefined) {
value[k] = v;
} else {
delete value[k];
}
}
}
}
return reviver.call(holder, key, value);
}
// Parsing happens in four stages. In the first stage, we replace certain
// Unicode characters with escape sequences. JavaScript handles many characters
// incorrectly, either silently deleting them, or treating them as line endings.
cx.lastIndex = 0;
if (cx.test(text)) {
text = text.replace(cx, function (a) {
return '\\u' + ('0000' +
(+(a.charCodeAt(0))).toString(16)).slice(-4);
});
}
// In the second stage, we run the text against
// regular expressions that look for non-JSON patterns. We are especially
// concerned with '()' and 'new' because they can cause invocation, and '='
// because it can cause mutation. But just to be safe, we want to reject all
// unexpected forms.
// We split the second stage into 4 regexp operations in order to work around
// crippling inefficiencies in IE's and Safari's regexp engines. First we
// replace all backslash pairs with '@' (a non-JSON character). Second, we
// replace all simple value tokens with ']' characters. Third, we delete all
// open brackets that follow a colon or comma or that begin the text. Finally,
// we look to see that the remaining characters are only whitespace or ']' or
// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
if (/^[\],:{}\s]*$/.test(text.replace(/\\["\\\/bfnrtu]/g, '@').
replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').
replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
// In the third stage we use the eval function to compile the text into a
// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
// in JavaScript: it can begin a block or an object literal. We wrap the text
// in parens to eliminate the ambiguity.
j = eval('(' + text + ')');
// In the optional fourth stage, we recursively walk the new structure, passing
// each name/value pair to a reviver function for possible transformation.
return typeof reviver === 'function' ?
walk({'': j}, '') : j;
}
// If the text is not JSON parseable, then a SyntaxError is thrown.
throw new SyntaxError('JSON.parse');
}
};
}();
}
/***
|''Name:''|synchroAltPlugin|
|''Description:''|an alternative take on DVCS with TiddlyWiki|
|''Author:''|MartinBudden and TonyGarnockJones|
|''Version:''|0.0.1|
|''Date:''|June 15, 2008|
|''License:''|[[Creative Commons Attribution-ShareAlike 3.0 License|http://creativecommons.org/licenses/by-sa/3.0/]] |
|''~CoreVersion:''|2.4.0|
!!Description
//!!TODO write a brief description of the plugin here
!!Usage
//!!TODO describe how to use the plugin - how a user should include it in their TiddlyWiki, parameters to the plugin etc
***/
//{{{
// Ensure that the plugin is only installed once.
if(!version.extensions.synchroAltPlugin) {
version.extensions.synchroAltPlugin = {installed:true};
var revisionStore = null;
function Synchrotron()
{
//Dvcs._debugMode = true;
this.repo = new Dvcs.Repository();
this.checkout = this.repo.update(null);
return this;
}
Synchrotron.repositoryTiddlerTitle = '_synchrotronRepository';
Synchrotron.prototype.importFromFile = function(path) {
var importStore = new TiddlyWiki();
var tw = loadFile(path);
if (window.netscape !== undefined) {
tw = convertUTF8ToUnicode(tw);
}
importStore.importTiddlyWiki(tw);
var repoTiddler = importStore.getTiddler(Synchrotron.repositoryTiddlerTitle);
if (!repoTiddler) {
alert("Repository Tiddler not found in " + path +
"; is it really a Synchrotron-enabled TiddlyWiki?");
return;
}
var stats = this.import(repoTiddler.text);
if (stats) {
alert("Imported " + (stats.revCount || "no") + " new revisions." +
(stats.revDups ?
" The file" + (stats.revCount ? " also" : "") + " contained " + stats.revDups +
" revisions that were already present in this TiddlyWiki."
: ""));
}
refreshDisplay();
};
Synchrotron.prototype.export = function()
{
var repoExt = this.repo.exportRevisions();
var repoText = uneval(repoExt);
return repoText;
};
Synchrotron.prototype.import = function(repoText)
{
if (repoText) {
var repoExt = eval(repoText);
return this.repo.importRevisions(repoExt);
} else {
return null;
}
};
Synchrotron.prototype.getUuid = function(tiddler) {
if (!tiddler.fields.uuid) {
tiddler.fields.uuid = this.checkout.createFile();
}
return tiddler.fields.uuid;
};
Dvcs.Mergers.Defaults["tags"] = Dvcs.Mergers.simpleTextualMerger;
Synchrotron.prototype.commitAllChanges = function() {
var $this = this;
var seenTiddlers = {};
store.forEachTiddler(checkForChanges);
function checkForChanges(title, tiddler) {
if (title != Synchrotron.repositoryTiddlerTitle &&
!tiddler.doNotSave() &&
!tiddler.isTagged("systemConfig"))
{
var id = $this.getUuid(tiddler);
seenTiddlers[id] = id;
function maybeStore(key, value) {
if (value !== $this.checkout.getProp(id, key)) {
$this.checkout.setProp(id, key, value);
}
}
function maybeStoreText(key, value) {
var oldText = $this.checkout.getProp(id, key);
if (!oldText || value.join('\n') !== oldText.join('\n')) {
$this.checkout.setProp(id, key, value);
}
}
function storeSingleField(tiddler, fieldName, value) {
if (!fieldName.match(/^temp\./)) {
if (typeof value != "string") {
value = "";
}
maybeStore('field-' + fieldName, value);
}
}
maybeStore('title', tiddler.title);
maybeStore('created', tiddler.created.convertToYYYYMMDDHHMM());
maybeStore('modified', tiddler.modified.convertToYYYYMMDDHHMM());
maybeStore('modifier', tiddler.modifier);
tiddler.tags.sort();
maybeStoreText('tags', tiddler.tags);
maybeStoreText('text', tiddler.text.split('\n'));
store.forEachField(tiddler, storeSingleField, true);
}
}
$this.checkout.forEachFile(deleteUnseen);
function deleteUnseen(repoId) {
if (!(seenTiddlers[repoId])) {
$this.checkout.deleteFile(repoId);
}
}
$this.repo.commit($this.checkout, { committer: config.options.txtUserName });
};
Synchrotron.prototype.syncUItoCheckout = function() {
var $this = this;
var toDelete = {};
var existingTiddlers = {};
store.forEachTiddler(detectDeletable);
function detectDeletable(title, tiddler) {
if (title != Synchrotron.repositoryTiddlerTitle &&
!tiddler.isTagged("systemConfig"))
{
var id = $this.getUuid(tiddler);
if (!$this.checkout.fileExists(id)) {
toDelete[id] = tiddler;
} else {
existingTiddlers[id] = tiddler;
}
}
}
for (var id in toDelete) {
var tiddler = toDelete[id];
store.removeTiddler(tiddler.title);
story.closeTiddler(tiddler.title, true);
}
$this.checkout.forEachFile(reflectFileInUI);
function reflectFileInUI(id) {
var tiddler = existingTiddlers[id];
if (!tiddler) {
tiddler = store.createTiddler($this.checkout.getProp(id,'title'));
tiddler.fields.uuid = id;
}
var newTitle = $this.checkout.getProp(id, 'title', tiddler.title);
var newCreated = Date.convertFromYYYYMMDDHHMM($this.checkout.getProp(id, 'created', tiddler.created.convertToYYYYMMDDHHMM()));
var newModified = Date.convertFromYYYYMMDDHHMM($this.checkout.getProp(id, 'modified', tiddler.modified.convertToYYYYMMDDHHMM()));
var newModifier = $this.checkout.getProp(id, 'modifier', tiddler.modifier);
var newTags = $this.checkout.getProp(id, 'tags', tiddler.tags);
var newText = $this.checkout.getProp(id, 'text', tiddler.text.split('\n')).join('\n');
var newFields = {};
$this.checkout.forEachProp(id, function(propName, propValue) {
if (propName.match(/^field-/)) {
newFields[propName.substring(6)] = propValue;
}
});
tiddler.assign(newTitle, newText, newModifier, newModified, newTags, newCreated, newFields);
}
story.forEachTiddler(refreshDisplayedTiddler);
function refreshDisplayedTiddler(title, e) {
if (store.tiddlerExists(title) || store.isShadowTiddler(title)) {
story.refreshTiddler(title, null, true);
} else {
story.closeTiddler(title);
}
}
};
Synchrotron.prototype.updateToRevision = function(revId) {
if ((store && store.isDirty && store.isDirty()) ||
(story && story.areAnyDirty && story.areAnyDirty()))
{
if (!confirm(config.messages.confirmExit))
return false;
}
this.checkout = this.repo.update(revId);
this.syncUItoCheckout();
store.setDirty(false);
story.forEachTiddler(function (title) { story.setDirty(title, false); });
refreshDisplay();
return true;
};
Synchrotron.prototype.revertCheckout = function() {
return this.updateToRevision(this.checkout.directParent);
};
Synchrotron.prototype.mergeWithRevision = function(revId) {
if (this.revertCheckout()) {
var openForEditing = {};
var merger = this.repo.merge(this.checkout.directParent, revId);
var fs = merger.files;
for (var i = 0; i < merger.conflicts.length; i++) {
var conflictRecord = merger.conflicts[i];
var inode = conflictRecord.inode;
for (var okProp in conflictRecord.partialResult) {
fs.setProp(inode, okProp, conflictRecord.partialResult[okProp]);
}
var winner;
if (!("modified" in conflictRecord.partialResult)) {
if ("modified" in conflictRecord.conflictDetails) {
var aModified = conflictRecord.conflictDetails["modified"][0].conflict.a;
var bModified = conflictRecord.conflictDetails["modified"][0].conflict.b;
fs.setProp(inode, "modified", aModified > bModified ? aModified : bModified);
winner = aModified > bModified ? "a" : "b";
} else {
fs.setProp(inode, "modified", new Date().convertToYYYYMMDDHHMM());
winner = "a";
}
}
for (var badProp in conflictRecord.conflictDetails) {
if (badProp != "modified") {
var r = conflictRecord.conflictDetails[badProp];
if (badProp == "text") {
fs.setProp(inode, "text", Synchrotron.buildConflictMarkers(r));
} else if (badProp == "tags") {
fs.setProp(inode, "tags", Synchrotron.mergeConflictingTags(r));
} else {
fs.setProp(inode, badProp, r[0].conflict[winner]);
}
}
}
openForEditing[inode] = fs.getProp(inode, "title");
}
store.setDirty(true);
this.checkout = fs;
this.syncUItoCheckout();
refreshDisplay();
for (var inodeToEdit in openForEditing) {
story.displayTiddler(null, openForEditing[inodeToEdit], DEFAULT_EDIT_TEMPLATE);
}
}
};
Synchrotron.buildConflictMarkers = function(r) {
var lines = [];
for (var i = 0; i < r.length; i++) {
var item = r[i];
if (item.ok) {
lines = lines.concat(item.ok);
} else {
lines = lines.concat([" < < < < < < < < <"], item.conflict.a,
[" ============"], item.conflict.b,
[" > > > > > > > > >"]);
}
}
return lines;
}
Synchrotron.mergeConflictingTags = function(r) {
var lines = [];
for (var i = 0; i < r.length; i++) {
var item = r[i];
if (item.ok) {
lines = lines.concat(item.ok);
} else {
lines = lines.concat(item.conflict.a, item.conflict.b);
}
}
var t = {}
for (i = 0; i < lines.length; i++) {
t[lines[i]] = true;
}
lines = [];
for (i in t) {
lines.push(i);
}
lines.sort();
return lines;
}
restartSynchrotron = restart;
function restart()
{
restartSynchrotron();
revisionStore = new Synchrotron();
revisionStore.import(store.getTiddlerText(Synchrotron.repositoryTiddlerTitle));
revisionStore.checkout = revisionStore.repo.update(null);
revisionStore.syncUItoCheckout();
}
saveChangesSynchrotron = saveChanges;
function saveChanges(onlyIfDirty,tiddlers)
{
revisionStore.commitAllChanges();
var tiddler = new Tiddler(Synchrotron.repositoryTiddlerTitle);
tiddler.text = '//{{{\n' + revisionStore.export() + '\n//}}}\n';
tiddler.tags = ['excludeLists','excludeSearch'];
store.addTiddler(tiddler);
saveChangesSynchrotron(onlyIfDirty,tiddlers);
refreshDisplay();
}
config.shadowTiddlers.SideBarTabs =
config.shadowTiddlers.SideBarTabs
.replace(/>>$/, ' "Versions" "Repository History" TabVersions>>');
merge(config.shadowTiddlers, {
TabVersions: '<<synchrotronHistory>>'
});
Synchrotron.images = {
"blob_0.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAIdJREFUOI3tkjEKwzAMRV+6CnwmjTpFl1yshwnkLp5TNP4u9tJ2cWsohTzQIqEnGwlO/ooFuAIbcG+xtdzyiewGyMzk7nJ3mZkAtdqQdAUUEcpMdTJTEdGl64hwL6Wo1qpnaq0qpQjYR4RHRLzIOu2Vx7vGy8iUb5j+5elLmX42XTrtsE9+yANzZprVJVS76gAAAABJRU5ErkJggg=="
,"blob_1.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJZJREFUOI3tkjEOAjEMBPdoLflNLv0KmvsYjznpep7h+lAqtDROAwiSUwQFjLRNooxieYE2zpm3HBqFzfyg8BUTgCOABcA1s+TZtEd2AkARoZnRzCgiBMC865LOAOjuLKWwUkqhu1fp3CNcVZURwXsigqpKAGuPcHP3B1klf7k9e/ixLQ8fefhShtemSmuxL5ndxf7zRW4Gj5yRa/KFewAAAABJRU5ErkJggg=="
,"blob_10.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAKVJREFUOI3tkrEJwzAQRZ/AnUCQQoOkSaFKpaZI48UyhgcwuMkk6oPKn0ZuEhliYzABP7jmjv/gpIOTv8IAd2AEXrXG2jNbZA9A1lrFGBVjlLVWgOpslbQHlFJSKUUzpRSllGZpv0Y4OeeUc9YnOWc55wRMrWAHPBv9awgB7/3XwHtPCIFhGG6tbAdcGsJf3scsZJtsXnmJ3T9l97OZpbsd9smBvAHQ9YOCh41JCAAAAABJRU5ErkJggg=="
,"blob_11.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAALVJREFUOI3tkjEKAjEQRd/KdoGARQ5iY5EqZU5hsxfzGDnAwjZWHiO9pJKxSRrNanZZsNAHv5lhHmQy0MY15yO7RmEzPyh8RwecgBG454y51q2RnQFRSolzTpxzopQSQHJvkXQAxHsvKSUppJTEe1+kwxLhpLWWGKM8E2MUrbUAU22wBy6V+sFaizHmpWGMwVpLCOFYm+2BfUXYsp9uZrbK6ifPsfmnbH42RVoO+5az+rD/fJEHZB6FPnyuglsAAAAASUVORK5CYII="
,"blob_12.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJxJREFUOI3tkjEKAyEUBceQThByI8t/ijR7sRxmYZtUewzrBKvlpdHGFIkbm8AOvEZlvuKDg7/CAVdgBp4lc1lze2Q3QN57xRgVY5T3XoDKXpd0AmRmyjmrknOWmVXp1CNcQghKKaklpaQQgoClR/gwszdZpdxyA+5tzj1TGhxw+fbw8CcP/5ThtanSWuytZHexW9aSj5x+nXQIeQEBLaCqFSFpfQAAAABJRU5ErkJggg=="
,"blob_13.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJ5JREFUOI3tlDEKAyEQRZ8hnSDkRpZzijR7sRxmYZtUOYZ1wGr5abQxkGiQNMmD3zjyVGYQ+riVvOXQKezmB4WvcMAZWIG9ZC1r7hPZBZD3XjFGxRjlvRegUhuSLoDMTDlnVXLOMrMqXUaEWwhBKSW1pJQUQhCwjQjvZvYkq5Rb7sC1zXHklAYHnHo3T3/y9KZMH5sqnTbYLf/v64vCB5RHomZlltYsAAAAAElFTkSuQmCC"
,"blob_14.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAALJJREFUOI3tkjEOwiAUhr+abiQkDhzExYGJkVO49GIegwM06eLkMdgNk3kusFQaLXYx6Ze85b38HwEe7PwVHXABRuCRa8y9rkV2BUQpJc45cc6JUkoAybNV0gEQ772klKSQUhLvfZEOa4ST1lpijDInxihaawGmWrAHbpX+yVqLMeZtYIzBWksI4VzL9sCxIvzmfbqFbJXmKy+x+adsvjZFWhb7mat5sefcc33k8OtJu5AXRsKFPuF7sfwAAAAASUVORK5CYII="
,"blob_15.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAALVJREFUOI3tlLENwyAQRR+ROySkFAySJgUVJVOk8WIZwwNYcpMqY7AAVXRpoHFwgi0rTfKka+70nwScgDbuuT5yaBQ284PCdyjgAozAI9eYe2qL7AqI1lq89+K9F621AJJnq6Q9ICEESSlJIaUkIYQi7dcIJ2OMxBhlToxRjDECTLVgB9wq/ZNzDmvty8Bai3OOYRjOtWwHHCvClvtRC9kqm4+8xO6PsvvaFOluiz3n/319UfgE2dyG+rvKV2wAAAAASUVORK5CYII="
,"blob_2.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJNJREFUOI3tkjEKAjEQRd+CXSDgjaacU9jsxTzMwjaeJPVKKvk2SaMRiQZE2Ae/mZBHZjKw81dMwAlYgGvJUmrTJ7IzoBCCzExmphCCAJWzLukMyN2Vc1Yl5yx3r9K5R7jGGJVS0iMpJcUYBayvLl8aubn7k6xSXrm1ZAfg2Kh3D/0dX7XcYvinDF+bKh222Ds/5A5/457uDkGvZQAAAABJRU5ErkJggg=="
,"blob_3.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAKNJREFUOI3tkr0KwjAYRU/FLRDwjTJ+T+HSF/NhCl2cfIzMSqZyXZJFo01rwUEP3OULOeTnQhuXnFl2jcJmflD4jg44AgMw5Qx51q2RnQA55xRCUAhBzjkBymuLpD0gM1NKSYWUksysSPslwtF7rxijHokxynsvYHy1+VzJZGZPskI+5bUm2wOHynzxo8/x0ZVrbP4pm9emSEuxbzmri/3ni9wBEwygqo8e4tAAAAAASUVORK5CYII="
,"blob_4.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJVJREFUOI3tkjEKwzAMRX+6CnQmjTpFl1yshwlk7zE0p2gqv4u8pIXi1EtpH/zFxs82+sCfr2ICcAawALhVllqbjsguACgiNDOaGUWEAFh7XdIZAN2dmclGZtLdm3TuEa6qyojgnoigqhLA2iPc3P1J1qhXbq8Onnpu+YThXx4+lOG1adJW7HvlcLH3XCtvGT7lHxQ+AOkknJHNxLgkAAAAAElFTkSuQmCC"
,"blob_5.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJZJREFUOI3tlDEKwzAMRX+6CnQmjTpFl1yshwlk7zE0BzSV38Ve0tLaxWRpHmix8MPiCwNt3Et95dIobOYPhZ+YAFwBLAAepZZyNv0iuwGgiNDMaGYUEQJg6XVJZwB0d2YmK5lJd6/SuUe4qiojgnsigqpKAGuPcHP3F1mlvHJ7d/GwlIePPDyU4WtTpcMWe8/5fR0ofAJ8TZ5N0sDKDwAAAABJRU5ErkJggg=="
,"blob_6.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJ9JREFUOI3tkrEKwyAURU9KN0HoHzm+r+iSH+vHBLJ0ymc4tziF20WX1BJMshRy4C5PPD71wclf0QF3YADeOUOudVtkD0DOOYUQFEKQc06A8lqTtAdkZkopqZBSkpkVad8iHL33ijFqSYxR3nsB46/Nz0pmM/uSFXKXr5rsCtwq9eZHX2PXlWsc/imHj02RlsGeczYP9pIpZ5XL3pNOIR/1oaCqrqJp9wAAAABJRU5ErkJggg=="
,"blob_7.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAKNJREFUOI3tlLEKwjAURU/FLRDwjzK+r3Dpj/kxhS5O/YzMQqZyXZKlRttocdEDd3khh7zkEdjGlLPKYaNwMz8ofEUHnIEBmHOGXOvekV0AOecUQlAIQc45AcprTdIekJkppaRCSklmVqR9i3D03ivGqCUxRnnvBYzPNl8rmc3sQVbIp7zVZEfgVKk3X/oaH7VcY/dH2X1sinS3wV7y/76+KLwDiMqiZru+wK0AAAAASUVORK5CYII="
,"blob_8.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJBJREFUOI3tkjEKAjEQRV/ALjDgjaacU9jsxTzMwjaeJLWSSr5N0qyNkYAI++A3yfAyYQYO/ooEXIAVeLSs7Sx9I7sCyjnL3eXuyjkLULsbki6AIkK1VnVqrYqILl1GhJuZqZSiPaUUmZmAbUR4j4g3Wad1+QRu+5xGXtmRgPOnxdO/PH0o09emS6ct9sEPeQGLYJ7ucs6fnQAAAABJRU5ErkJggg=="
,"blob_9.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJ9JREFUOI3tkjEKAyEUBceQThByI8t/ijR7sRxmYZtUOYZ1gtXy0mizgUQXIUUy8BqV8YsP2riVfOTQKGzmB4XvcMAZmIG1ZC5rbo/sAsh7rxijYozy3gtQ2euSToDMTDlnVXLOMrMqnXqESwhBKSVtSSkphCBg6RHezexFVilTrsB1m2PPLRsccGo9PPzJwz9leG2qtBb7UbK72H++yBMeiaCqdfixnAAAAABJRU5ErkJggg=="
,"slide_l.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAADFJREFUOI1jYBgFo2AYAkYqmsXMwMAQSE3DVjEwMPyntmGrqG0Y86hho4YhQBixhgEAQRwWyV5wCkoAAAAASUVORK5CYII="
,"slide_m.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAE9JREFUOI3t0zEKgDAMBdAHvaJ6yF5SByuIgxUasEP+FggPQhLeU1CxY+30dnPHaqsTS6wlFBOIFSycHxCBXZMO57mDUGye60jsZwy2r9gB/Z0tlT2EWtcAAAAASUVORK5CYII="
,"slide_r.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAADpJREFUOI3t06ENACAMRcFLmJElWRIEFSgwVaTP/aQ5V+41DEz0x+2zExuxCyssSsVkY+wPSMOq6ssWvM8WywislYYAAAAASUVORK5CYII="
,"stick_0.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAABVJREFUOI1jYBgFo2AUjIJRMAqoAwAGVAAB8lwiXwAAAABJRU5ErkJggg=="
,"stick_1.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAACNJREFUOI1jYCAOXIJigoCJSAOJBqMGjho4auCogaMGDhUDAZwOAcsorz0zAAAAAElFTkSuQmCC"
,"stick_10.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJVJREFUOI3t07sJAlEQRuHPt2IgC4Z2YGIJlmBPYgOmYgkbiLGhmX2YrqkgGuw1MViXe41kTzIMDId/BoaGhj+khUuiY4QJxuh1kSWIMgxD/8QjRjTALggKbLCIDKWPU5AdMY0VvdkH2RbtVNkyyA7opMrgjJsfrAlzZbr1t8G6d1iFmscm+iTHXfkIldRNOMNVuXYlL+XfFT2H2O6WAAAAAElFTkSuQmCC"
,"stick_11.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAALVJREFUOI3t0ztuAkEMgOEvYQkQChQpp6DikrkALcohUOrcgIqCjj5FilDQ8UixlngosN5su780Gllj/bLHMjmWcSp5TArTtMJW+A8esEjkjeNe/fE2wAhDdAu8JISduM9zBxH3Iz5in3DhcvV6mIXgB2+YZEXXwid8huwDr3VF18L3kE01HOgS65DNnf60kXCLjYo2s2X38axs9btRacGXst3a07zFBgflItwl23KBnbLKu/wCR20gpGTSl3wAAAAASUVORK5CYII="
,"stick_12.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAANNJREFUOI3t07FKA0EQgOHvoijaxuBDaCEEe5uUwUeyEDurtEHfwECQlNopCKnsrUJqFcFCQs7i5sgVeuxhJ/nLnZl/d2ZY1qz5h2SYYo5nTPCEvIHjAKc4xj684DMkeYj7CaITPFbqvjArgy10cYmPSLjGzg+ibQwj5w0XOKq7uYObKLjHbiW2hbuI3WIvoRMUsx1UXlpyFWeD6KoRGUYh6ClmlmOMjaaykjZeFcN/wLsGbf7GmdUmz/8qg8OKsHabqbSwwFIx11o2E4TLEGYSftA3PXkxeOJzoewAAAAASUVORK5CYII="
,"stick_13.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAANtJREFUOI3t07FKA0EQBuDvTlG0VfEhtAgEe19AfCQLsbNKK/oGCiIpYykEUtlrI9YqooVFziJzuEg896JlftjmduZj9+aOvNzG+jVlJpidOTgHZ8giRng0+XD7GKJqYWxhHzvYhDu8B1IFvPetadqfsoubpO8DD/VmiS6O8RoFZ1iZAi7jJGqecYRO0xU2cB4N11hNwCUMYu8K601QmgK95KQ1eBrPemYYaIGLAO5N3nWFSyy0xeqs4QlvsV60uOZPOfA1ycO/YrCdgI3TzE2JcYDFf4ACHOcUfgK/fDpV7BBCtAAAAABJRU5ErkJggg=="
,"stick_14.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAM1JREFUOI3t0rFKA0EQgOFvY2KMFiKat7AQ8gI2PpeF2FmlFX0DA2Jtuvg4apAYCHpnkbl4CDnvsJP81c7O7r8z7LBhwz8kYYYF5phG3IQe9rGHTgpZO+QifsZ7DdEBdiLO8VkkWxjgCm+RvI1LP+niOs684hInVS/3cRcXxtgt5bbxGLkHHP3SxYqEYanSgpvYG0ZXjUgYheAMp7G+x1ZTWcEhXvCEieUU1G5zHedRWY6Lv8rguCSs/M26tPCBzPesrqVdQ5iFMFlWWckXLE8s0STxUmsAAAAASUVORK5CYII="
,"stick_15.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAOFJREFUOI3t071KA0EQwPHfnt9aiKidTyApBB/QQuys0oq+gYJY60NYpItVaj+QKAgmFpmTNcTcGtv8Ydmdm50/c8wdZdzHaqQqFBYzF86FM5DQxwfe8RLxOPuxdybk1rCJDSylkC2GXMSPeMuK9mLvjYm2sBrxEJ91ssIhTvEayYso4uevt4KzuPOMExxM6PybXVxGwR3WM+EybiN3g51popyEdtZpLTyPZ20zDDThKgQP6Mb5Ggt/ldVs48lo8n2jr6D4NX/jKDob4vi/MmhlwqnTLKXCIISp4W4xg1iNfAH/IDYHUEEa4gAAAABJRU5ErkJggg=="
,"stick_2.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAACRJREFUOI1jYBgFo2AYAkYGBoYz1DSQhYGBQZCaBo6CUTAsAQAO/gDjGameSwAAAABJRU5ErkJggg=="
,"stick_3.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAD9JREFUOI1jYCAOXIJigoCJSAOJBqMGjhpIBmBkYGA4Q4Q6LSh9jZBCFgYGBkEiDGSG0sSoJQqMZr1RA4eUgQCBQAVfOGtUugAAAABJRU5ErkJggg=="
,"stick_4.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJBJREFUOI3tzjEOAUEYBeBvV0UrEncQlTOoROJGLqByADdYjV6pUumVEp1C0KEwiUZiYqaSfcmfaV6+edSp84dpYIsRerjhkIruccUj3A7jVLTEADOcA7xAMxWGDqqArtHKgRaYey/NkgLLgA5zoW2csMkFwtRrZT+mXEZ0qvBOfl306dMLVrHlb7njiG4M+ATgfRo0TB7IrwAAAABJRU5ErkJggg=="
,"stick_5.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAKJJREFUOI3t0zEKwjAYgNFncVBX8RZunsObOYgH8Aa6uboLTu66CS4iKDqpdWgKxaWh7dgPsoVHEvIT1yGs0pJIMLoWbMEKdbHHWfZxN9ghrYMe8QpIGuDp357oSclLMMEMjwAv0a8KFhthFdAtBnVB6GBROGltMEfXAT01AcIQNzxjwbJ/eMVc9o69WkcrNJZd+9IUmOCDe+zmsr54y6aqtB8W9CgIIj5T8QAAAABJRU5ErkJggg=="
,"stick_6.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAI9JREFUOI3tzjEOAVEUheFvJhpakdiEyhr0dmQDqlmAHYxGr7QWFREZkilQeKKRePFeJfM3997k5L+Hjo4/pECDFlecwp0kbNELu3AfcEkRl5hiiTPuWKGfIn0xQh2kWwxySAtU3k2zUGAdpLNc0iGO2OUSwsKz5SQmXEZk6jDnvzb69LTBJjb8jRv2GMcIHzSiGs7D32QGAAAAAElFTkSuQmCC"
,"stick_7.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAALBJREFUOI3t1D1qAkEUwPGfi4WmFbucIKTzmimCB/AGegQPYZEylYWNhigqLH4V84RFAjtkt/QPw5thHn/efJLHIlotRaYwm6fwKfwHHexR4ojfGD/yFvErR1iiG30x3uBQyXuNuMyttMAIH9jhign6MZ/99P5iiGlI53hpKiQtf1yptLHwLp2F9LsNIQzwI518K9/XGp/SPvYalVbhXVr2qi1hgTO2ucl1XHCSLn8tN1MaJxupl4lMAAAAAElFTkSuQmCC"
,"stick_8.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAJNJREFUOI3t0yEOwkAQRuEPSOACJBhugMHgewO4U8MFsIQjVBA0Ei6CwILFFLGLQdBmt4r0JZs1k5d/JjP09Pwhgw4cC6yxwixHVOCKOr4XbimiCfZR8sAWy9RUY5yj7IRpqujDIcp2GObKiig7YpQrgwueOmiTsBo1yqbCtnPYxL9KTfRNJexZ4yG0TTjHXWj7J2/dMhe9PX35ywAAAABJRU5ErkJggg=="
,"stick_9.png": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH2AYFChQyYckycwAAAKNJREFUOI3t0zEOAUEUBuAPG0QtcQiNRu8GTuUCWnEIUWsdQK/SKBS20Iig2NFssLNWuX8y3cyX9+dliMsunMI0I8Ho1GAN/pDkD8YQU4wxiH307qdMsMUjnCsOv4AdLAJyxgyjWCgPtrEJ2Br9slAeXAZsruJCd9gHbIVWFewFXpAqqBk7dhc9WdVTpdFCjrK6pbf5KSnuaBRdjK2c4Cab8muerVAjt5zCDvoAAAAASUVORK5CYII="
};
config.macros.synchrotronHistory = {};
config.macros.synchrotronHistory.handler = function(place) {
var repo = revisionStore.repo;
var ordering = DrawDvcs.renderRepository(repo);
createTiddlyButton(place,
"Import...",
"Import revisions from another TiddlyWiki file",
config.macros.synchrotronHistory.importButtonClicked);
var para = document.createElement("p");
para.style.cssText = 'line-height: 0px; white-space: nowrap;';
for (var i = 0; i < ordering.length; i++) {
var item = ordering[i];
var rev = repo.lookupRev(item.revId);
var pictures = item.pictures;
for (var j = 0; j < pictures.length; j++) {
var img = document.createElement('img');
img.src = Synchrotron.images[pictures[j]];
para.appendChild(img);
}
var summary =
(rev.metadata||{}).committer + " " + new Date(rev.timestamp||0).convertToYYYYMMDDHHMM();
var s = createTiddlyButton(para,
summary,
"Click for a menu of options for this revision",
config.macros.synchrotronHistory.revisionClicked);
s.revisionId = item.revId;
if (revisionStore.checkout.directParent == item.revId) {
s.style.cssText = 'background-color: blue; color: white;';
}
if (revisionStore.checkout.additionalParent == item.revId) {
s.style.cssText = 'background-color: #00cc00; color: white;';
}
para.appendChild(document.createElement("br"));
}
place.appendChild(para);
};
config.macros.synchrotronHistory.importButtonClicked = function(event) {
var e = (event || window.event);
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(Components.interfaces.nsIFilePicker);
fp.init(window, "Choose a TiddlyWiki to import from", 0);
if (fp.show() == 0 && fp.file.exists()) {
// OK clicked, and selected file exists.
revisionStore.importFromFile(fp.file.path);
}
} catch (ex) {
alert(ex);
}
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
return false;
};
config.macros.synchrotronHistory.revisionClicked = function(event) {
var e = (event || window.event);
var revId = e.target.revisionId;
var popup = Popup.create(this);
createTiddlyText(createTiddlyElement(popup, "li", null, "listTitle"), "Revision " + revId);
if (revId != revisionStore.checkout.directParent || store.isDirty()) {
createTiddlyButton(createTiddlyElement(popup, "li"),
(revId == revisionStore.checkout.directParent) ? "Revert" : "Checkout",
"Displays this revision as a base to edit from",
function () {
revisionStore.updateToRevision(revId);
});
} else {
createTiddlyText(createTiddlyElement(popup, "li", null, "disabled"), "Checkout");
}
if (revisionStore.repo.canMerge(revisionStore.checkout.directParent,
revId)) {
createTiddlyButton(createTiddlyElement(popup, "li"),
"Merge",
"Merges this revision into the current revision",
function () {
revisionStore.mergeWithRevision(revId);
});
} else {
createTiddlyText(createTiddlyElement(popup, "li", null, "disabled"), "Merge");
}
Popup.show();
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
return false;
};
}//# end of 'install only once'
//}}}