hi Dave,
> Is there, or could there be, a plugin or snippet of something to put in a
> TiddlyWiki so that when it is viewed locally, the sidebar is visible, but
> when viewed online, the sidebar is hidden?
>
I don't think there is yet and while possibly easy to create this is
definitely core territory.
As for me it could work like this...
On startup TiddlyWiki sets a css class to the html-element corresponding to
the protocol.
<html class="http"/>
or, exceptionally...
<html class="http https"/>
or...
<html class="file"/>
That way, you could define multiple, location dependent styles or do work
things differently in some js code...
.site-foo .tc-sidebar-scrollable {
display:none;
}
By the way, it's a bit confusing that the class would be "tc-sidebar-
*scrollable"*, why is that?
Best wishes, Tobias.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.