Message #110515, posted by rich at 09:03, 8/7/2009, in reply to message #110514
Dictator for life
Posts: 6821
We've been all through this - there's no perfect solution for making a spoiler tag that works on all browsers. Frankly, Lynx users are not our core audience.
Smileys are graphics. If you don't want them to show, don't use them.
I'm struggling to think of a solution that *would* work on Lynx that doesn't involve removing text altogether and putting them on a completely different page, which is not convenient for people with proper browsers.
Personally I don't want to use a table and font tag combo to implement it, the standards police will have more to say about that I'm sure - a div tag would have been a much nicer solution. But it wouldn't necessarily have blocked the text in browsers people actually use in numbers on this site. ________ Cheers, Rich.
Message #110521, posted by rich at 09:40, 8/7/2009, in reply to message #110519
Dictator for life
Posts: 6821
Pity you can't spoiler a quote though
You can, but that's CSS changing the quote Fixable, if necessary.
More to the point, do you need to?
No, probably not. I just like pushing the boundaries of things and seeing how far they bend
There might be circumstances where a spoiler is a quote from somewhere else I guess, so I've fixed the CSS.
The caveat is that I've just fixed ".spoiler a" to be black, where the nested quotes are different greys; plus, some browsers might need ".spoiler a:something" to fully fix it. But it works in Firefox, which is what I have to test it in.
I'm sure there are other CSS issues that need overriding, but I can't be arsed.
Ponders: if I make spoilers have an "a name" tag, can I use a:hover to reveal...? Then again, you'd probably need a different name for each spoiler tag, and if there's multiple spoilers in a post, there's no nice way of doing that: I was considering just the id of the post. Maybe a random number on the end... and a letter at the start because you can't have things starting in numbers, or is that just when you're using javascript?
Sounds like a lot of faff actually. ________ Cheers, Rich.
Message #110523, posted by rich at 10:11, 8/7/2009, in reply to message #110522
Dictator for life
Posts: 6821
Or you could do it server-side, and have a button "Show me the spoilers" - that would even work on Lynx
I already said...
I'm struggling to think of a solution that *would* work on Lynx that doesn't involve removing text altogether and putting them on a completely different page, which is not convenient for people with proper browsers.
Message #110525, posted by rich at 10:45, 8/7/2009, in reply to message #110524
Dictator for life
Posts: 6821
D'oh!
How about AJAX for more modern browsers to fetch the spoiler messages and fill it in; for earlier browsers, it becomes a link.
Or are you claiming to incorporate that in your earlier message?
I'm confused why you think I should do any of this at all now I've already got a working solution, just to support a browser I've already said I'm not bothered about?
The standard thing people do is change the colour of the text. Clicking a button to reveal it is nice, sure, but I don't think anyone goes to the trouble of doing AJAX fetches. It's a sledgehammer to crack a nut.
When all's said and done, even screenreaders for the blind will say "Spoiler" before getting to the text. If you don't want spoilers, don't read on. ________ Cheers, Rich.
Hmm. I have discovered a flaw: you can't read spoilers using an iPhone.
That's a flaw with your iPhone, not with the spoiler system
It's quite simple - just select some text, like you would for cutting and pasting. Oh, wait...
Actually, that does basically work on OS 3.x - select the area around the spoiler, go to Notes and then paste it...
Yay!
Or, to avoid switching apps, I can paste it into a new message or the search box. For some reason I was thinking it would copy the black-on-black formatting as well, but obviously that wouldn't happen in many situations.
Message #110543, posted by Phlamethrower at 10:39, 9/7/2009, in reply to message #110542
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100
Or, to avoid switching apps, I can paste it into a new message or the search box. For some reason I was thinking it would copy the black-on-black formatting as well, but obviously that wouldn't happen in many situations.
Or for the OS 2.x compatible way, hit the 'reply and quote' link and read it there.
Message #110545, posted by rich at 14:30, 9/7/2009, in reply to message #110543
Dictator for life
Posts: 6821
Or, to avoid switching apps, I can paste it into a new message or the search box. For some reason I was thinking it would copy the black-on-black formatting as well, but obviously that wouldn't happen in many situations.
Or for the OS 2.x compatible way, hit the 'reply and quote' link and read it there.
There is that - so that quoting worked I had to add the code as a sort of last-minute processing so that the spoiler tags were retained everywhere except the final HTML (otherwise, the system blocks things like table tags in posts).
In fact the reply page has a function for last minute display changes*, so I had to implement it a second time, but if I reset the reply page you would see the spoiler in-situ.
Hmm, that's almost a "spoiler on another page" thing Jason wanted - apart from the removing it from the main page which would be silly
As for writing a TIB App, it would probably be easier to just figure out the magic combination of JS and CSS that would allow you to click on the -- Spoiler ----- legend and change the text colour of this.foo to white (as opposed to the background colour of several classes).
* Why doesn't the view thread page use the same processing function as the reply page, you say? Probably because it does things to the reply version that would bugger up the view thread page, although it might be possible to bang it into shape. ________ Cheers, Rich.