| 70 | | {name: null, notify: refreshMenu}, |
|---|
| 71 | | {name: null, notify: refreshStory}, |
|---|
| 72 | | {name: null, notify: refreshTabs}, |
|---|
| 73 | | {name: "SiteTitle", notify: refreshTitle}, |
|---|
| 74 | | {name: "SiteSubtitle", notify: refreshSubtitle}, |
|---|
| 75 | | {name: "SideBarOptions", notify: refreshSidebar} |
|---|
| | 70 | {name: "PageTemplate", notify: refreshPageTemplate}, |
|---|
| | 71 | {name: null, notify: refreshDisplay} |
|---|
| 211 | | config.shadowTiddlers.StyleSheetColors = "body {\n background: #fff;\n}\n\n#titleLine {\n color: #fff;\n background: #300;\n}\n\n#titleLine a {\n color: #cf6;\n}\n\n#mainMenu {\n color: #000;\n}\n\n#mainMenu .tiddlyLink {\n color: #963;\n}\n\n#mainMenu .tiddlyLink:hover {\n background: #963;\n color: #fff;\n}\n\n#mainMenu .externalLink {\n color: #963;\n}\n\n#mainMenu .externalLink:hover {\n background: #963;\n color: #fff;\n}\n\n#mainMenu .button {\n color: #930;\n}\n\n#mainMenu .button:hover {\n color: #cf6;\n background: #930;\n}\n\n#messageArea {\n background: #930;\n color: #fff;\n}\n\n#messageArea a:link, #messageArea a:visited {\n color: #c90;\n}\n\n#messageArea a:hover {\n color: #963;\n}\n\n#messageArea a:active {\n color: #fff;\n}\n\n.popup {\n background: #eea;\n border: 1px solid #930;\n}\n\n.popup hr {\n color: #963;\n background: #963;\n border: 0;\n}\n\n.popup li.disabled {\n color: #ba9;\n}\n\n.popup li a, .popup li a:visited {\n color: #300;\n}\n\n.popup li a:hover {\n background: #930;\n color: #eea;\n}\n\n.tabSelected {\n background: #eea;\n}\n\n.tabUnselected {\n background: #c90;\n}\n\n.tabContents {\n background: #eea;\n}\n\n.tiddler .button {\n color: #930;\n}\n\n.tiddler .button:hover {\n color: #cf6;\n background: #930;\n}\n\n.tiddler .button:active {\n color: #fff;\n background: #c90;\n}\n\n.toolbar {\n color: #aaa;\n}\n\n.footer {\n color: #ddd;\n}\n\n.selectedTiddler .footer {\n color: #888;\n}\n\n.viewer {\n color: #000;\n}\n\n.viewer a:link, .body a:visited {\n color: #963;\n}\n\n.viewer a:hover {\n color: #fff;\n background: #963;\n}\n\n.viewer .button {\n background: #c90;\n color: #300;\n border-right: 1px solid #300;\n border-bottom: 1px solid #300;\n}\n\n.viewer .button:hover {\n background: #eea;\n color: #c90;\n}\n\n.viewer blockquote {\n border-left: 3px solid #666;\n}\n\n.viewer h1,.viewer h2,.viewer h3,.viewer h4,.viewer h5 {\n background: #cc9;\n}\n\n.viewer table {\n border: 2px solid #303030;\n}\n\n.viewer th {\n background: #996;\n border: 1px solid #606060;\n color: #fff;\n}\n\n.viewer td, .viewer tr {\n border: 1px solid #606060;\n}\n\n.viewer pre {\n color: #000000;\n border: 1px solid #963;\n background: #eea;\n}\n\n.viewer code {\n color: #630;\n}\n\n.viewer hr {\n border-top: dashed 1px #606060;\n border-left: none;\n border-right: none;\n border-bottom: none;\n color: #666;\n}\n\n.highlight, .marked {\n color: #000;\n background: #ffe72f;\n}\n\n.editor {\n color: #402C74;\n}\n\n.editor input {\n border: 1px solid #000000;\n}\n\n.editor textarea {\n border: 1px solid #000000;\n width: 100%;\n}\n\n.editorFooter {\n color: #aaa;\n}\n\n.editorFooter A {\n color: #930;\n}\n\n.editorFooter A:hover {\n color: #cf6;\n background: #930;\n}\n\n.editorFooter A:active {\n color: #fff;\n background: #c90;\n}\n\n#sidebar {\n color: #000;\n}\n\n#sidebarOptions {\n background: #c90;\n}\n\n#sidebarOptions .button {\n color: #930;\n}\n\n#sidebarOptions .button:hover {\n color: #cf6;\n background: #930;\n}\n\n#sidebarOptions .button:active {\n color: #930;\n background: #cf6;\n}\n\n#sidebarOptions .sliderPanel {\n background: #eea;\n}\n\n#sidebarOptions .sliderPanel A {\n color: #930;\n}\n\n#sidebarOptions .sliderPanel A:hover {\n color: #cf6;\n background: #930;\n}\n\n#sidebarOptions .sliderPanel A:active {\n color: #930;\n background: #cf6;\n}\n\n.sidebarSubHeading {\n color: #300;\n}\n\n#sidebarTabs {\n background: #c90;\n}\n\n#sidebarTabs .tabSelected {\n color: #cf6;\n background: #963;\n}\n\n#sidebarTabs .tabUnselected {\n color: #cf6;\n background: #930;\n}\n\n#sidebarTabs .tabContents {\n background: #963;\n}\n\n\n#sidebarTabs .txtMoreTab .tabSelected {\n background: #930;\n}\n\n#sidebarTabs .txtMoreTab .tabUnselected {\n background: #300;\n}\n\n#sidebarTabs .txtMoreTab .tabContents {\n background: #930;\n}\n\n#sidebarTabs .tabContents .tiddlyLink {\n color: #cf6;\n}\n\n#sidebarTabs .tabContents .tiddlyLink:hover {\n background: #ccff66;\n color: #300;\n}\n\n#sidebarTabs .tabContents .button {\n color: #cf6;\n}\n\n#sidebarTabs .tabContents .button:hover {\n color: #300;\n background: #cf6;\n}\n\n.sparkline {\n background: #eea;\n border: 0;\n}\n\n.sparktick {\n background: #930;\n}\n\n.errorNoSuchMacro {\n color: #ff0;\n background: #f00;\n}\n\n.zoomer {\n color: #963;\n border: 1px solid #963;\n}"; |
|---|
| 212 | | config.shadowTiddlers.StyleSheetLayout = "body {\n font-size: 9pt;\n font-family: verdana,arial,helvetica;\n margin: 0;\n padding: 0;\n position: relative;\n z-index: 0;\n}\n\na:link, a:visited, a:hover, a:active{\n text-decoration: none;\n}\n\n#contentWrapper {\n position: relative;\n}\n\n#titleLine {\n padding: 5em 1em 1em 1em;\n}\n\n#siteTitle {\n font-size: 26pt;\n}\n\n#siteSubtitle {\n padding-left: 1em;\n font-size: 10pt;\n}\n\n#mainMenu {\n position: absolute;\n left: 0em;\n width: 10em;\n line-height: 166%;\n padding: 1.5em 0.5em 0.5em 0.5em;\n font-size: 10pt;\n text-align: right;\n}\n\n\n#mainMenu .externalLink {\n text-decoration: underline;\n}\n\n#displayArea {\n margin: 1em 17em 0em 14em;\n}\n\n#messageArea {\n padding: 0.5em;\n\n}\n\n#messageArea a:link, #messageArea a:visited {\n display: inline;\n text-decoration: underline;\n}\n\n.popup {\n font-size: 8pt;\n list-style: none;\n padding: 0.2em;\n margin: 0;\n}\n\n.popup hr {\n display: block;\n height: 1px;\n width: auto;\n padding: 0;\n margin: 0.2em 0em;\n}\n\n.popup li {\n display: block;\n padding: 0;\n}\n\n.popup li.disabled {\n padding: 0.2em;\n}\n\n.popup li a, .popup li a:visited {\n display: block;\n text-decoration: none;\n padding: 0.2em;\n}\n\n.tabset {\n padding: 1em 0em 0em 0.5em;\n}\n\n.tab {\n margin: 0em 0em 0em 0.25em;\n padding: 2px;\n}\n\n.tabContents {\n padding: 0.5em;\n}\n\n.tabContents ul, .tabContents ol {\n margin: 0;\n padding: 0;\n}\n\n.tabContents li {\n list-style: none;\n}\n\n.tabContents li.listLink {\n margin-left: .75em;\n}\n\n.tiddler {\n padding: 0;\n padding: 1em 1em 0em 1em;\n font-size: 9pt;\n}\n\n\n/* Can these styles be moved to the previous rule?\n.selectedTiddler {\n padding: 1em 1em 0em 1em;\n font-size: 9pt;\n}\n\n.unselectedTiddler {\n padding: 1em 1em 0em 1em;\n font-size: 9pt;\n} */\n\n.tiddler a.tiddlyLinkExisting {\n font-weight: bold;\n}\n\n.tiddler a.tiddlyLinkNonExisting {\n font-style: italic;\n}\n\n.tiddler a.tiddlyLinkNonExisting.shadow {\n font-weight: bold;\n}\n\n.tiddler a.externalLink {\n text-decoration: underline;\n}\n\n.tiddler .button {\n padding: 0.2em 0.4em;\n}\n\n.tiddler .button:hover {\n text-decoration: none;\n}\n\n.title {\n font-size: 10pt;\n font-weight: bold;\n}\n\n.shadow .title {\n color: #888888;\n}\n\n.toolbar {\n text-align: right;\n font-weight: normal;\n font-size: 8pt;\n padding: 0;\n padding-bottom: 2em;\n visibility: hidden;\n}\n\n.selectedTiddler .toolbar {\n visibility: visible;\n}\n\n.footer {\n/* Isn't 'clear:both' the right rule? */\n clear: left;\n clear: right;\n font-weight: normal;\n font-size: 8pt;\n margin: 0;\n padding: 0;\n}\n\n.body {\n padding-top: 0.5em;\n}\n\n.viewer {\n line-height: 140%;\n}\n\n.viewer .button {\n margin: 0em 0.25em;\n padding: 0em 0.25em;\n}\n\n.viewer blockquote {\n font-size: 8pt;\n line-height: 150%;\n padding-left: 0.8em;\n margin-left: 2.5em;\n}\n\n.viewer ul {\n margin-left: 0.5em;\n padding-left: 1.5em;\n}\n\n.viewer ol {\n margin-left: 0.5em;\n padding-left: 1.5em;\n}\n\n.viewer h1,.viewer h2,.viewer h3,.viewer h4,.viewer h5 {\n font-weight: bold;\n text-decoration: none;\n padding-left: 0.4em;\n}\n\n.viewer h1 {font-size: 12pt;}\n.viewer h2 {font-size: 11pt;}\n.viewer h3 {font-size: 10pt;}\n.viewer h4 {font-size: 9pt;}\n.viewer h5 {font-size: 8pt;}\n\n.viewer table {\n border-collapse: collapse;\n margin: 0.8em 1.0em;;\n font-size: 100%;\n}\n\n.viewer th, .viewer td, .viewer tr,.viewer caption{\n padding: 3px;\n}\n\n.viewer pre {\n padding: 0.5em;\n margin-left: 0.5em;\n font-size: 100%;\n line-height: 1.4em;\n overflow: auto;\n}\n\n.viewer code {\n font-size: 100%;\n line-height: 1.4em;\n}\n\n.viewer hr {\n height: 1px;\n}\n\n.editor {\n font-size: 8pt;\n font-weight: normal;\n}\n\n.editor input {\n display: block;\n width: 100%;\n}\n\n.editor textarea {\n display: block;\n font: inherit;\n width: 100%;\n}\n\n.editorFooter {\n padding: 0.25em 0em;\n font-size: 8pt;\n}\n\n.editorFooter A {\n padding: 0.2em 0.4em;\n}\n\n.editorFooter A:hover {\n text-decoration: none;\n}\n\n#sidebar {\n position: absolute;\n right: 0em;\n width: 16em;\n font-size: 8pt;\n}\n\n#sidebarOptions {\n padding-top: 0em;\n}\n\n#sidebarOptions .button {\n padding: 0.3em 0.2em 0.3em 1em;\n display: block;\n}\n\n#sidebarOptions input {\n margin: 0.4em 0em 0.3em 1em;\n}\n\n#sidebarOptions .sliderPanel {\n padding: 0.5em;\n font-size: 7pt;\n}\n\n#sidebarOptions .sliderPanel A {\n font-weight: bold;\n}\n\n#sidebarOptions .sliderPanel input {\n margin: 0;\n margin-bottom: 0.3em;\n}\n\n.sidebarSubHeading {\n font-size: 7pt;\n}\n\n#sidebarTabs .tabSelected {\n position: relative;\n top: -2px;\n}\n\n\n#sidebarTabs .tabContents {\n width: 15em;\n overflow: hidden;\n}\n\n.sparkline {\n line-height: 100%;\n}\n\n.sparktick {\n outline: 0;\n}\n\n.zoomer {\n font-size: 10pt;\n position: absolute;\n padding: 1em;\n}\n"; |
|---|
| | 207 | config.shadowTiddlers.StyleSheetColors = "/***\n!Generic Rules\n***/\nbody {\n background: #fff;\n color: #000;\n}\n\n#titleLine {\n color: #fff;\n background: #300;\n}\n\n#titleLine a {\n color: #cf6;\n}\n\n#titleLine a:hover {\n background: transparent;\n}\n\na{\n color: #963;\n}\n\na:hover{\n background: #963;\n color: #fff;\n}\n\n#mainMenu .button {\n color: #930;\n}\n\n#mainMenu .button:hover {\n color: #cf6;\n background: #930;\n}\n\n#messageArea {\n background: #930;\n color: #fff;\n}\n\n#messageArea a:link, #messageArea a:visited {\n color: #c90;\n}\n\n#messageArea a:hover {\n color: #963;\nbackground: transparent;\n}\n\n#messageArea a:active {\n color: #fff;\n}\n\n.popup {\n background: #eea;\n border: 1px solid #930;\n}\n\n.popup hr {\n color: #963;\n background: #963;\n border-bottom: 1px;\n}\n\n.popup li.disabled {\n color: #ba9;\n}\n\n.popup li a, .popup li a:visited {\n color: #300;\n}\n\n.popup li a:hover {\n background: #930;\n color: #eea;\n}\n\n.tabSelected,.tabContents {\n background: #eea;\n}\n\n.tabUnselected {\n background: #c90;\n}\n\n.tiddler .button {\n color: #930;\n}\n\n.tiddler .button:hover {\n color: #cf6;\n background: #930;\n}\n\n.tiddler .button:active {\n color: #fff;\n background: #c90;\n}\n\n.shadow .title {\n color: #888;\n}\n\n.toolbar {\n color: #aaa;\n}\n\n.footer {\n color: #ddd;\n}\n\n.selectedTiddler .footer {\n color: #888;\n}\n\n.viewer .button {\n background: #c90;\n color: #300;\n border-right: 1px solid #300;\n border-bottom: 1px solid #300;\n}\n\n.viewer .button:hover {\n background: #eea;\n color: #c90;\n}\n\n.viewer blockquote {\n border-left: 3px solid #666;\n}\n\nh1,h2,h3,h4,h5 {\n background: #cc9;\n}\n\n.viewer table {\n border: 2px solid #303030;\n}\n\n.viewer th {\n background: #996;\n border: 1px solid #606060;\n color: #fff;\n}\n\n.viewer td, .viewer tr {\n border: 1px solid #606060;\n}\n\n.viewer pre {\n border: 1px solid #963;\n background: #eea;\n}\n\n.viewer code {\n color: #630;\n}\n\n.viewer hr {\n border: 0;\n border-top: dashed 1px #606060;\n color: #666;\n}\n\n.highlight, .marked {\n background: #ffe72f;\n}\n\n.editor {\n color: #402C74;\n}\n\n.editor input {\n border: 1px solid #000;\n}\n\n.editor textarea {\n border: 1px solid #000;\n width: 100%;\n}\n\n.editorFooter {\n color: #aaa;\n}\n\n.editorFooter a {\n color: #930;\n}\n\n.editorFooter a:hover {\n color: #cf6;\n background: #930;\n}\n\n.editorFooter a:active {\n color: #fff;\n background: #c90;\n}\n/***\n!On the sidebar buttons and tiddlylinks are treated the same\n***/\n#sidebarOptions {\n background: #c90;\n}\n\n#sidebarOptions a{\n color: #930;\n}\n\n#sidebarOptions a:hover {\n color: #cf6;\n background: #930;\n}\n\n#sidebarOptions a:active {\n color: #930;\n background: #cf6;\n}\n\n#sidebarOptions .sliderPanel {\n background: #eea;\n}\n\n#sidebarOptions .sliderPanel a {\n color: #930;\n}\n\n#sidebarOptions .sliderPanel a:hover {\n color: #cf6;\n background: #930;\n}\n\n#sidebarOptions .sliderPanel a:active {\n color: #930;\n background: #cf6;\n}\n/***\n!Sidebar tabs are styled \n***/\n#sidebarTabs {\n background: #c90;\n}\n\n#sidebarTabs .tabSelected{\n color: #cf6;\n background: #963;\n}\n\n#sidebarTabs .tabUnselected {\n color: #cf6;\n background: #930;\n}\n\n#sidebarTabs .tabContents{\n background: #963;\n}\n\n#sidebarTabs .txtMoreTab .tabSelected,\n#sidebarTabs .txtMoreTab .tabSelected:hover{\n background: #930;\n color: #cf6;\n}\n\n#sidebarTabs .txtMoreTab .tabUnselected,\n#sidebarTabs .txtMoreTab .tabUnselected:hover{\n background: #300;\n color: #cf6;\n}\n\n#sidebarTabs .txtMoreTab .tabContents {\n background: #930;\n}\n\n#sidebarTabs .tabContents a {\n color: #cf6;\n}\n\n#sidebarTabs .tabContents a:hover {\n background: #cf6;\n color: #300;\n}\n\n\n.sparkline {\n background: #eea;\n border: 0;\n}\n\n.sparktick {\n background: #930;\n}\n\n.errorNoSuchMacro {\n color: #ff0;\n background: #f00;\n}\n\n.zoomer {\n color: #963;\n border: 1px solid #963;\n}"; |
|---|
| | 208 | config.shadowTiddlers.StyleSheetLayout = "/***\n!The layout stylesheet is divided into following sections:\n***/\n/*{{{*/\nbody {\n font-size: .75em;\n font-family: verdana,arial,helvetica;\n position: relative;\n margin: 0;\n/* Padding required for Opera */\n padding: 0;\n}\n\na{\n text-decoration: none;\n}\n\n#titleLine {\n padding: 5em 1em 1em 1em;\n}\n\n#siteTitle {\n font-size: 3em;\n}\n\n#siteSubtitle {\n padding-left: 1em;\n font-size: 1.1em;\n}\n\n#mainMenu {\n position: absolute;\n left: 0;\n width: 10em;\n text-align: right;\n line-height: 1.6em;\n padding: 1.5em 0.5em 0.5em 0.5em;\n font-size: 1.1em;\n}\n\n/***\n!Link Styles\n***/\n.externalLink {\n text-decoration: underline;\n}\n\n.tiddlyLinkExisting {\n font-weight: bold;\n}\n\n.tiddlyLinkNonExisting {\n font-style: italic;\n}\n\n/* the 'a' is required for IE, otherwise it renders the whole tiddler a bold */\na.tiddlyLinkNonExisting.shadow {\n font-weight: bold;\n}\n\n/***\n!Exceptions to common link styles\n***/\n#mainMenu .tiddlyLinkExisting, \n#mainMenu .tiddlyLinkNonExisting,\n#sidebarTabs .tiddlyLinkExisting,\n#sidebarTabs .tiddlyLinkNonExisting,\n#siteTitle .tiddlyLinkExisting,\n#siteTitle .tiddlyLinkNonExisting{\n font-weight: normal;\n font-style: normal;\n}\n\n#displayArea {\n margin: 1em 17em 0em 14em;\n}\n\n#messageArea {\n padding: 0.5em;\n}\n\n#messageArea a{\n text-decoration: underline;\n}\n\n\n.popup {\n font-size: .9em;\n padding: 0.2em;\n list-style: none;\n margin: 0;\n}\n\n.popup hr {\n display: block;\n height: 1px;\n width: auto;\n padding: 0;\n margin: 0.2em 0em;\n}\n\n.popup li.disabled {\n padding: 0.2em;\n}\n\n.popup li a{\n display: block;\n padding: 0.2em;\n}\n\n\n.tabset {\n padding: 1em 0em 0em 0.5em;\n}\n\n.tab {\n margin: 0em 0em 0em 0.25em;\n padding: 2px;\n}\n\n.tabContents {\n padding: 0.5em;\n}\n\n.tabContents ul, .tabContents ol {\n margin: 0;\n padding: 0;\n}\n\n.tabContents li {\n list-style: none;\n}\n\n.tabContents li.listLink {\n margin-left: .75em;\n}\n\n.toolbar {\n text-align: right;\n font-size: .9em;\n visibility: hidden;\n}\n\n.selectedTiddler .toolbar {\n visibility: visible;\n}\n\n.tiddler {\n padding: 1em 1em 0em 1em;\n}\n\n.title {\n font-size: 1.1em;\n font-weight: bold;\n}\n\n/* I'm not a fan of how button look in tiddlers... */\n.tiddler .button {\n padding: 0.2em 0.4em;\n}\n\n.footer {\n font-size: .9em;\n}\n\n.body {\n padding-top: 0.5em;\n}\n\n\n.viewer {\n line-height: 1.4em;\n}\n\n.viewer .button {\n margin: 0em 0.25em;\n padding: 0em 0.25em;\n}\n\n.viewer blockquote {\n line-height: 1.5em;\n padding-left: 0.8em;\n margin-left: 2.5em;\n}\n\n.viewer ul, .viewer ol{\n margin-left: 0.5em;\n padding-left: 1.5em;\n}\n\nh1,h2,h3,h4,h5 {\n font-weight: bold;\n text-decoration: none;\n padding-left: 0.4em;\n}\n\nh1 {font-size: 1.35em;}\nh2 {font-size: 1.25em;}\nh3 {font-size: 1.1em;}\nh4 {font-size: 1em;}\nh5 {font-size: .9em;}\n\n.viewer table {\n border-collapse: collapse;\n margin: 0.8em 1.0em;\n}\n\n.viewer th, .viewer td, .viewer tr,.viewer caption{\n padding: 3px;\n}\n\n.viewer pre {\n padding: 0.5em;\n margin-left: 0.5em;\n font-size: 1.2em;\n line-height: 1.4em;\n overflow: auto;\n}\n\n.viewer code {\n font-size: 1.2em;\n line-height: 1.4em;\n}\n\nhr {\n height: 1px;\n}\n\n.editor {\n font-size: 0.9em;\n}\n\n.editor input, .editor textarea {\n display: block;\n width: 100%;\n font: inherit;\n}\n\n.editorFooter {\n padding: 0.25em 0em;\n font-size: .9em;\n}\n\n#sidebar {\n position: absolute;\n right: 0em;\n width: 16em;\n font-size: .9em;\n}\n\n#sidebarOptions .button {\n padding: 0.3em 1em;\n display: block;\n}\n\n#sidebarOptions input {\n margin: 0.4em 1em;\n}\n\n#sidebarOptions .sliderPanel {\n padding: 0.5em;\n font-size: .85em;\n}\n\n#sidebarOptions .sliderPanel a {\n font-weight: bold;\n}\n\n#sidebarOptions .sliderPanel input {\n margin: 0 0 .3em 0;\n}\n\n\n#sidebarTabs .tabContents {\n width: 15em;\n overflow: hidden;\n}\n\n#sidebarTabs .tabSelected {\n position: relative;\n top: -2px;\n}\n\n.sparkline {\n line-height: 1em;\n}\n\n.sparktick {\n outline: 0;\n}\n\n.zoomer {\n font-size: 1.1em;\n position: absolute;\n padding: 1em;\n}\n/*}}}*/"; |
|---|
| | 209 | config.shadowTiddlers.PageTemplate = "<div id='header'>\n<div id='titleLine'>\n<span id='siteTitle' refresh='content' tiddler='SiteTitle'></span>\n<span id='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span>\n</div>\n</div>\n<div id='sidebar'>\n<div id='sidebarOptions' refresh='content' tiddler='SideBarOptions'></div>\n<div id='sidebarTabs' refresh='content' force='true' tiddler='SideBarTabs'></div>\n</div>\n<div id='mainMenu' refresh='content' tiddler='MainMenu'></div>\n<div id='displayArea'>\n<div id='messageArea'></div>\n<div id='tiddlerDisplay'></div>"; |
|---|
| 2269 | | function refreshStory(hint) |
|---|
| 2270 | | { |
|---|
| 2271 | | var hits = hint ? store.getReferringTiddlers(hint) : null; |
|---|
| 2272 | | var displayNodes = document.getElementById("tiddlerDisplay").childNodes; |
|---|
| 2273 | | for(var t=0;t<displayNodes.length;t++) |
|---|
| 2274 | | { |
|---|
| 2275 | | var theId = displayNodes[t].id; |
|---|
| 2276 | | if(theId && theId.substr(0,7) == "tiddler") |
|---|
| 2277 | | { |
|---|
| 2278 | | var title = theId.substr(7); |
|---|
| 2279 | | if(hint) |
|---|
| 2280 | | { |
|---|
| 2281 | | var f = false; |
|---|
| 2282 | | for(var h=0; h<hits.length; h++) |
|---|
| 2283 | | if(hits[h].title == title) |
|---|
| 2284 | | f = true |
|---|
| 2285 | | if(f) |
|---|
| 2286 | | refreshTiddler(title); |
|---|
| 2287 | | } |
|---|
| 2288 | | else |
|---|
| 2289 | | refreshTiddler(title); |
|---|
| 2290 | | } |
|---|
| 2291 | | } |
|---|
| 2292 | | } |
|---|
| 2293 | | |
|---|
| 2294 | | function refreshTabs(hint) |
|---|
| 2295 | | { |
|---|
| 2296 | | refreshSpecialItem("sidebarTabs","SideBarTabs","SideBarTabs"); |
|---|
| 2297 | | } |
|---|
| 2298 | | |
|---|
| 2299 | | function refreshMenu(hint) |
|---|
| 2300 | | { |
|---|
| 2301 | | refreshSpecialItem("mainMenu","MainMenu","MainMenu"); |
|---|
| 2302 | | } |
|---|
| 2303 | | |
|---|
| 2304 | | function refreshTitle(title) |
|---|
| 2305 | | { |
|---|
| 2306 | | refreshSpecialItem("siteTitle",title,"SiteTitle"); |
|---|
| 2307 | | refreshPageTitle(); |
|---|
| 2308 | | } |
|---|
| 2309 | | |
|---|
| 2310 | | function refreshSubtitle(title) |
|---|
| 2311 | | { |
|---|
| 2312 | | refreshSpecialItem("siteSubtitle",title,"SiteSubtitle"); |
|---|
| 2313 | | refreshPageTitle(); |
|---|
| | 2274 | config.refreshers = { |
|---|
| | 2275 | link: function(e,changeList) |
|---|
| | 2276 | { |
|---|
| | 2277 | var title = e.getAttribute("tiddlyLink"); |
|---|
| | 2278 | refreshTiddlyLink(e,title); |
|---|
| | 2279 | }, |
|---|
| | 2280 | |
|---|
| | 2281 | content: function(e,changeList) |
|---|
| | 2282 | { |
|---|
| | 2283 | var title = e.getAttribute("tiddler"); |
|---|
| | 2284 | var force = e.getAttribute("force"); |
|---|
| | 2285 | if(force != null || changeList == null || changeList.find(title) != null) |
|---|
| | 2286 | { |
|---|
| | 2287 | removeChildren(e); |
|---|
| | 2288 | wikify(store.getTiddlerText(title,title),e,null,null); |
|---|
| | 2289 | } |
|---|
| | 2290 | }, |
|---|
| | 2291 | |
|---|
| | 2292 | tiddler: function(e,changeList) |
|---|
| | 2293 | { |
|---|
| | 2294 | } |
|---|
| | 2295 | }; |
|---|
| | 2296 | |
|---|
| | 2297 | function refreshElements(root,changeList) |
|---|
| | 2298 | { |
|---|
| | 2299 | var nodes = root.childNodes; |
|---|
| | 2300 | for(var c=0; c<nodes.length; c++) |
|---|
| | 2301 | { |
|---|
| | 2302 | var e = nodes[c],type; |
|---|
| | 2303 | if(e.getAttribute) |
|---|
| | 2304 | type = e.getAttribute("refresh"); |
|---|
| | 2305 | else |
|---|
| | 2306 | type = null; |
|---|
| | 2307 | var refresher = config.refreshers[type]; |
|---|
| | 2308 | if(refresher == undefined) |
|---|
| | 2309 | { |
|---|
| | 2310 | if(e.hasChildNodes()) |
|---|
| | 2311 | refreshElements(e,changeList); |
|---|
| | 2312 | } |
|---|
| | 2313 | else |
|---|
| | 2314 | refresher(e,changeList); |
|---|
| | 2315 | } |
|---|
| | 2316 | } |
|---|
| | 2317 | |
|---|
| | 2318 | function refreshPageTemplate(title) |
|---|
| | 2319 | { |
|---|
| | 2320 | var display = document.getElementById("tiddlerDisplay"); |
|---|
| | 2321 | var stash = document.getElementById("contentStash"); |
|---|
| | 2322 | var nodes; |
|---|
| | 2323 | removeChildren(stash); |
|---|
| | 2324 | if(display) |
|---|
| | 2325 | { |
|---|
| | 2326 | nodes = display.childNodes; |
|---|
| | 2327 | for(var t=nodes.length-1; t>=0; t--) |
|---|
| | 2328 | stash.appendChild(nodes[t]); |
|---|
| | 2329 | } |
|---|
| | 2330 | var wrapper = document.getElementById("contentWrapper"); |
|---|
| | 2331 | if(!title) |
|---|
| | 2332 | title = "PageTemplate"; |
|---|
| | 2333 | var html = store.getTiddlerText(title); |
|---|
| | 2334 | wrapper.innerHTML = html; |
|---|
| | 2335 | refreshElements(wrapper,null); |
|---|
| | 2336 | display = document.getElementById("tiddlerDisplay"); |
|---|
| | 2337 | if(!display) |
|---|
| | 2338 | display = createTiddlyElement(wrapper,"div","tiddlerDisplay"); |
|---|
| | 2339 | nodes = stash.childNodes; |
|---|
| | 2340 | for(t=nodes.length-1; t>=0; t--) |
|---|
| | 2341 | display.appendChild(nodes[t]); |
|---|
| | 2342 | } |
|---|
| | 2343 | |
|---|
| | 2344 | function refreshDisplay(hint) |
|---|
| | 2345 | { |
|---|
| | 2346 | var e = document.getElementById("contentWrapper"); |
|---|
| | 2347 | refreshElements(e,hint == null ? null : [hint]); |
|---|
| 4018 | | <div id="contentWrapper"> |
|---|
| 4019 | | <div id="header"> |
|---|
| 4020 | | <div id="titleLine"> |
|---|
| 4021 | | <span id="siteTitle"></span> |
|---|
| 4022 | | <span id="siteSubtitle"></span> |
|---|
| 4023 | | </div> |
|---|
| 4024 | | </div> |
|---|
| 4025 | | <div id="sidebar"> |
|---|
| 4026 | | <div id="sidebarOptions"></div> |
|---|
| 4027 | | <div id="sidebarTabs"></div> |
|---|
| 4028 | | </div> |
|---|
| 4029 | | <div id="mainMenu"></div> |
|---|
| 4030 | | <div id="displayArea"> |
|---|
| 4031 | | <div id="messageArea"></div> |
|---|
| 4032 | | <div id="tiddlerDisplay"></div> |
|---|
| 4033 | | </div> |
|---|
| 4034 | | </div> |
|---|
| 4035 | | <div id="storeArea"><div tiddler="DefaultTiddlers" modified="200511100024" modifier="JeremyRuston" tags="systemTiddlers">HelloThere [[10 November 2005]] [[30 October 2005]] [[29 October 2005]] [[26 October 2005]] [[18 October 2005]] [[3 October 2005]] [[28 September 2005]] [[27 September 2005]]</div> |
|---|
| 4036 | | <div tiddler="MainMenu" modified="200510302117" modifier="JeremyRuston" tags="systemTiddlers">HelloThere\nTiddlyWiki\nMainFeatures\n[[TiddlyWiki/Dev]]\nGettingStarted\nUsingThisSite\n[[Community]]\nDownloadSoftware\nPluginsAndMacros\n[[ThankYou]]\n[[RSS|RssFeed]]\n\n© [[osmosoft|http://www.osmosoft.com]] 2005\n\n\n<<newTiddler>>\n<<newJournal "DD MMM YYYY">></div> |
|---|
| | 4048 | <div id="contentWrapper"></div> |
|---|
| | 4049 | <div id="contentStash"></div> |
|---|
| | 4050 | <div id="storeArea"><div tiddler="DefaultTiddlers" modified="200511100033" modifier="JeremyRuston" tags="systemTiddlers">HelloThere [[Revision 1.2.39 (beta 1)]]</div> |
|---|
| | 4051 | <div tiddler="MainMenu" modified="200510270833" modifier="JeremyRuston" tags="systemTiddlers">HelloThere\nDownloadSoftware\n[[ThankYou]]\n[[RSS|RssFeed]]\n\n© [[osmosoft|http://www.osmosoft.com]] 2005\n\n\n<<newTiddler>>\n<<newJournal "DD MMM YYYY">></div> |
|---|