Rather than create a new theme just for this why not do
if(window.location.protocol =="file:") {
jQuery("body").addClass("fileMode");
} else {
jQuery("body").addClass("onlineMode");
}
Now in your theme you can put specific rules for each theme.
e.g.
.onlineMode #sideBarTabs {
display: none;
}
will hide the SideBarTabs for online users.
This would be much more flexible and easier than maintaining 2 themes.
Jon
On 8 Oct, 02:30, Robert Pollard <[email protected]> wrote:
> On Thu, Oct 7, 2010 at 7:35 PM, colmjude <[email protected]> wrote:
>
> > On Oct 7, 11:58 pm, Robert Pollard <[email protected]> wrote:
> > > Colm
>
> > > Thanks for your prompt response.
>
> > No probs.
>
> > I should say that the code I gave should read
> > == "http:"
> > not
> > == "file:"
> > to apply the OnlineTheme when the protocol is http
>
> Yes, I had seen that slip (^_^)
>
> > > , however it doesn't load the styles for OnlineTheme that I have created
> > > following the format of the SampleTheme athttp://
> > tiddlywiki.org/wiki/Themes
> > > Is there something I am missing?
>
> > Is there anyway you could share the TW in question? Is it online
> > somewhere?
> > Or could you at least share the OnlineTheme and plugin you made so
> > that I could have a look? I might be able to spot something that way.
>
> http://www.digital-bridges.net/themes.htm
>
> > Colm
>
> Robert
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.