Page 1 of 1

Request: Inline hide tag

Posted: Mon Jun 13, 2011 9:24 am
by schultz
I'm doing some updates on the OBITS thread (Malkovich game results) and Chew had the good suggestion to hide the game results so people don't have to be spoiled if they don't want to.

Right now there isn't a way to cleanly hide the results (besides changing the font color - but that is still kind of clunky). I'm wondering if it would be possible to add an inline hide tag - some piece of text (maybe "Click to See") that would display the text when clicked on without adding any extra lines. I'm thinking some thing along the lines of the "Show Diagram Code" associated with the go tags.

Looking for something like this: #22 - zinger vs Araban; H: 2; Komi: 0.5; Result: [inline_hide]W+R[/inline_hide]; # of posts: 92
Resulting in this: #22 - zinger vs Araban; H: 2; Komi: 0.5; Result: Click to Show; # of posts: 92
When clicked: #22 - zinger vs Araban; H: 2; Komi: 0.5; Result: W+R Click to Hide; # of posts: 92

Just brainstorming ideas - always looking for suggestions. ;)

Hopefully that makes sense, and hopefully it is possible.

Re: Request: Inline hide tag

Posted: Mon Jun 13, 2011 12:08 pm
by Kirby
Is this what you were looking for?

#22 - zinger vs Araban; H: 2; Komi: 0.5; Result: Click to show

I didn't do the "click to hide" part, because it seemed redundant.

If this seems OK to you, please feel free to use the new "inline-hide" tag.

Re: Request: Inline hide tag

Posted: Mon Jun 13, 2011 2:13 pm
by palapiku
Kirby wrote:Is this what you were looking for?

#22 - zinger vs Araban; H: 2; Komi: 0.5; Result: Click to show

I didn't do the "click to hide" part, because it seemed redundant.

If this seems OK to you, please feel free to use the new "inline-hide" tag.

Does not work for me. Nothing happens when I click. Firefox 4.0.1 on OS X.

Re: Request: Inline hide tag

Posted: Mon Jun 13, 2011 2:20 pm
by hyperpape
Works for me in Chrome and in IE 7 or 8.

Re: Request: Inline hide tag

Posted: Mon Jun 13, 2011 2:46 pm
by Kirby
palapiku wrote:
Kirby wrote:Is this what you were looking for?

#22 - zinger vs Araban; H: 2; Komi: 0.5; Result: Click to show

I didn't do the "click to hide" part, because it seemed redundant.

If this seems OK to you, please feel free to use the new "inline-hide" tag.

Does not work for me. Nothing happens when I click. Firefox 4.0.1 on OS X.


Thanks, palapiku. I'll take a look at it when I get home today.

Re: Request: Inline hide tag

Posted: Mon Jun 13, 2011 3:09 pm
by Joaz Banbeck
Doesn't work with Firefox 3.3.6 on Ubuntu Hardy Heron. But thanks for trying, Kirby.

Re: Request: Inline hide tag

Posted: Mon Jun 13, 2011 4:33 pm
by schultz
Thanks for the work so far Kirby!

But yeah, it's not working for me in Firefox, either. It works in IE Tab (IE 8), like hyperpape is seeing.

Re: Request: Inline hide tag

Posted: Mon Jun 13, 2011 4:36 pm
by Kirby
Looks like innerText is not W3C compliant.

Does it work for you, now?

Re: Request: Inline hide tag

Posted: Mon Jun 13, 2011 4:50 pm
by schultz
Kirby wrote:Looks like innerText is not W3C compliant.

Does it work for you, now?

Roger.

That is working now. Thanks for the work Kirby!

Re: Request: Inline hide tag

Posted: Mon Jun 13, 2011 9:46 pm
by palapiku
Works!