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?

This ticket is a proposal for the core that would enable one to set the
sidebar status according to a comparison with the URL, so you could do
exactly what you're asking:

https://github.com/Jermolene/TiddlyWiki5/issues/1438

Best wishes

Jeremy


On Fri, Feb 13, 2015 at 6:13 PM, Tobias Beer <[email protected]> wrote:

> 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.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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.

Reply via email to