> Are there any suggestions how to hide and show *bits* of a tiddler? 
> For example, I want to show this first half of this sentence but this 
> second half only if some criteria is fulfilled. 
>

Last year, Brent Bartlett posted [1] a link to his SpoilerText plugin [2]. 
He created a formatter so that any text surrounded by %% was hidden by 
changing the background to black until moused over. The application was for 
a flashcard system, and I've used it to hide answers to study questions.

He did this by just setting onmouseover and onmouseout to change the CSS 
background color attributes of the text. But, you could adapt this easily, 
testing for your criterion (perhaps readOnly or a successfully entered 
password?) and toggling display:none instead.

[1] 
https://groups.google.com/forum/?fromgroups#!topic/tiddlywiki/Rf307bV45S8
[2] http://starjelly.net/portfolio/esperanto.html

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/jja7BcLgAesJ.
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.

Reply via email to