Charlie,

Nice approach *"To keep things simple, I hide TiddlyWiki things when the 
sidebar is hidden, and show those TiddlyWiki things when the sidebar is 
displayed"*
 Thanks for sharing.
Tones
On Monday, 21 December 2020 at 13:02:27 UTC+11 Charlie Veniot wrote:

> My Résumé à la TiddlyWiki <https://cjveniot.neocities.org/CjVeniot.html> 
> *(very 
> early design stage)*
>
> G'day all,
>
> As I try to figure out how I want my resume to show for mere mortals 
> whilst still having access to all TiddlyWiki things, I figured I'd share 
> design so far in case there are any bits of interest to anyone.
>
> Features:
>
>    - TonGerner's  Left Menu <http://tw5leftmenu.tiddlyspot.com/>
>    - For "summary" info
>    - TobiasBeer's HideSideBarOnStartup 
>    <https://tobibeer.github.io/tb5/#Hiding%20The%20Sidebar%20On%20Startup>
>    - Mere mortals just looking at my résumé don't need to see the sidebar
>    
> Upon opening the TiddlyWiki, it just shows a left side bar and one tiddler 
> that will have everything résumé transcluded into it.
>
> To make this all look like any kind of website and make it print nicely (a 
> lot of work to be done re printing), I've done a bit of trickery to hide 
> TiddlyWiki things in the tiddler.
>
> To keep things simple, I hide TiddlyWiki things when the sidebar is 
> hidden, and show those TiddlyWiki things when the sidebar is displayed.
>
> In the $:/core/ui/ViewTemplate/title and $:/core/ui/ViewTemplate/subtitle, 
> here are some snippets of code that are part of the magic:
>
> <$vars vhide={{{[[$:/state/sidebar]get[text]]+[match[no]] display:none; 
> +[replace[no]]}}}>
>
> For anything I want hidden/shown, I add a "style=<<vhide>>" to whatever 
> HTML element.
>
> Example:  <div class="tc-subtitle" style=<<vhide>>>
>
> For your convenience, I've added a couple of screenshots below: what you 
> see when you first open the TiddlyWiki, and then what you see when you 
> unhide the sidebar.
>
> Cheers !
>
> [image: Screenshot 2020-12-20 at 9.17.56 PM.png]
>
> [image: Screenshot 2020-12-20 at 9.17.40 PM.png]
>
>
>
>
>
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/781cdffb-fb4f-4f4a-a741-0370fb77569fn%40googlegroups.com.

Reply via email to