Jump to content
Jake

Updated the spoiler tag.

Recommended Posts

To help bring us into the 21st century, the

tag now allows you to write spoilers inline. So you can

hide sensitive information

in the middle of a sentence, and then click on it to reveal its contents.

That's all.

Share this post


Link to post
Share on other sites

But once you've clicked it, you can't un-click it!

Still

pretty

nifty

though

Share this post


Link to post
Share on other sites

Fortunately the classic "highlight to read" technique still works if you are scared.

Adding the ability to un-see it once it's been clicked would require actual knowledge of how javascript works (which I don't have), and probably more code than can be reasonably snuck into a BB tag.

Share this post


Link to post
Share on other sites
But once you've clicked it, you can't un-click it!

Still

pretty

nifty

though

Adding the ability to un-see it once it's been clicked would require actual knowledge of how javascript works (which I don't have), and probably more code than can be reasonably snuck into a BB tag.

Dan, just think of it as an old Sierra hint book where once you used the magic marker to reveal the solution, it was revealed forever.

It's all in the spirit of video games.

Share this post


Link to post
Share on other sites

it doesn't work with :shifty::shifty: !

On the MBN I use:

<small><b>Spoiler:</b></small><br />
<div style="border: 1px dashed; padding: 2px;"><div><button type="button" class="button" onclick="var visb = this.parentNode.parentNode.childNodes[1].style.display == '';  this.parentNode.parentNode.childNodes[1].style.display = visb?'none':'';" title="Click to show\hide the spoiler.">toggle spoiler</button></div><div style="display: none;">{param}</div></div>

Share this post


Link to post
Share on other sites
Seriously, what are you going to spoil with those?

ok, how about

this header_banter_logo.jpg way of spoiling

Share this post


Link to post
Share on other sites

I was going to suggest knocking together a simple function for it, but the ternary operator is pretty cool and I advocate using it whenever possible, even if it's not necessary, because I'm stupid like that. Anyway, it's a nice solution elmuerte, and I'm a little annoyed that I didn't think of it. To be honest, I didn't even know Javascript had the ternary operator.

Incidentally, highlighting doesn't seem to reveal anything in Google Chrome. I don't use it a great deal, but I thought it was worth a mention.

Share this post


Link to post
Share on other sites

Incidentally, highlighting doesn't seem to reveal anything in Google Chrome. I don't use it a great deal, but I thought it was worth a mention.

Works for me. Odd.

Share this post


Link to post
Share on other sites

One day, when civilization has collapsed and begun to rebuild itself again, people will refuse to believe that we had this spoiler tag technology, no matter what the hieroglyphics show on the tomb walls.

Share this post


Link to post
Share on other sites
One day, when civilization has collapsed and begun to rebuild itself again, people will refuse to believe that we had this spoiler tag technology, no matter what the hieroglyphics show on the tomb walls.

And in fifty years, they'll ask themselves how could we live without the spoiler tag...

Awesome Jork

(it's a new word compression from Jake and Work, I'll try to use it more.)

My question is, is there a button I don't see in the message menubar ?

Share this post


Link to post
Share on other sites
Works for me. Odd.

Oh, it does for me too, now. I think I was posting from a different computer, though. WHAT IS GOING ON?

Share this post


Link to post
Share on other sites

This is like the Ferrari of spoiler tags. In fact, you should make it red. :tup:

Share this post


Link to post
Share on other sites

Idle Thumbs' spoilers have always been black. :confused:

They looked pretty much the same as they do now, except without the click functionality and they couldn't be used inline — they'd have to rest on a new line.

Share this post


Link to post
Share on other sites

Actually, they were white before.

Awesome work though, Jake!

Share this post


Link to post
Share on other sites

So if you add the on top of one another, one click reveals all the spoilers in one place

In the example below, clicking in the middle of the line reveals the entire sentence (on safari) but clicking from the outside towards the middle you can reveal things one by one

Case 1: click in the middle

*seems

*you

*can't

make super secret spoilers ?

by*

adding*

them up*

Case 2: same sentence, click from outside in

*seems

*you

*can't

make super secret spoilers ?

by*

adding*

them up*

another example:

Here is a very long sentence that is hidden, inside the outside

spoiler tags

are little enclosures that contain hidden messages revealed

one by one

by clicking on them individually so if i tell you that

Jake Rodkin

dies in the end of the game and tha

Chris Remo

survives you can still read some of the spoiler without revealing the whole story. Of course, if by accident you were to click on a

double blacked

area you would reveal the general sentence AND this area, but there would still be some secret words :).

Share this post


Link to post
Share on other sites

That's

because

you

NESTED

them.

I love that term, it reminds me of the days when knowing tables was the height of HTML.

Oh I see what you were trying to do. Make parts that were not revealed on first click?

Share this post


Link to post
Share on other sites
Oh I see what you were trying to do. Make parts that were not revealed on first click?

No, at first I tried to make a super secret area that you'd have to click a dozen time to make visible :D

But it shows through all the black area under your cursor at one point

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×