Great. Glad that helped. TiddlySpace uses a similar thing on the frontpage to hide controls for non-members/non-logged in users.
Obviously if you disable styles in your browser the content reappears but it is a good trick for hiding content for every day users. http://frontpage.tiddlyspace.com/#AuthenticationCssPlugin Jon On 8 Oct, 15:53, Robert Pollard <ecology2...@gmail.com> wrote: > Jon > > Thanks. That was simple, and does just what I need. I've updated the page > athttp://www.digital-bridges.net/themes.htm > > Robert > > > > On Fri, Oct 8, 2010 at 3:22 AM, rakugo <jdlrob...@gmail.com> wrote: > > 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 -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.