How do you add the show/hide feature to a deck?
TappedOut forum
Posted on Feb. 3, 2015, 8:51 a.m. by bananamaniaman
The title is pretty self-explanatory, you now the thing on the modern format primer and other decks where you click on the triangle to show you about that topic or category, and then you click again to hide it.
There's femmes way or you can just use html 5 which all browsers should adopt soon.
For that way it's -
((Details))((summary))Title of section((/summary))
Text here((/details))
Replace curved brackets with square ones
February 3, 2015 9:06 a.m.
Femmes way works on more browsers but is slower to use and has some bugs.
The html 5 way is flawless but only works on a few browsers. It doesn't work on Firefox for example
February 3, 2015 9:17 a.m.
bananamaniaman says... #6
I only really use chrome, so I'll give your way a shot ChiefBell
February 3, 2015 9:33 a.m.
It's the browser the other user reads the text on, not the browser you used to write the text, that matters
February 3, 2015 9:36 a.m.
bananamaniaman says... #8
What do you mean replace all curved brackets with square ones?
And what are the differences in the two "summaries" and "details" what is different about them and what specifically should I type in each one?
February 3, 2015 9:37 a.m.
sorry I made a mistake.
(( becomes < and )) becomes >
Triangle bracket.
All of the stuff within the brackets you can't change - you have to type that. The only bit you change are where I said title and your text.
February 3, 2015 9:41 a.m.
bananamaniaman says... #11
So just follow exactly what you said in your second comment. Only type the title and text to what I want. You said you made a mistake. But I don't understand what you did with the becomes and thing
February 3, 2015 9:54 a.m.
< details > < summary > title < / summary >
Text < / details >
Delete the spaces.
February 3, 2015 9:57 a.m.
hyperlocke says... #13
Personally, I like spoiler buttons and being able to spoil block elements (images, lists etc.), which you can't do using Femme's code (well, you can, with minor justifications). I have rewritten and uploaded it here.
February 3, 2015 10:27 a.m.
bananamaniaman says... #14
Thanks hyperlocke, ChiefBell and Femme_Fatale for all of the advice
February 3, 2015 3:33 p.m.
bananamaniaman says... #16
Yeah, I tried it out and it worked. Thanks again
Femme_Fatale says... #2
I have a tutorial for it on here: Ack! Run Hans Run! The Slivers Are Coming!!
February 3, 2015 9:01 a.m.