Spoiler tag | |
rich (21:15 7/7/2009) tribbles (08:36 8/7/2009) rich (09:03 8/7/2009) tribbles (09:11 8/7/2009) rich (09:20 8/7/2009) rich (09:24 8/7/2009) tribbles (09:28 8/7/2009) rich (09:40 8/7/2009) tribbles (10:03 8/7/2009) rich (10:11 8/7/2009) tribbles (10:18 8/7/2009) rich (10:45 8/7/2009) monkeyson2 (22:13 8/7/2009) Phlamethrower (22:26 8/7/2009) rich (23:13 8/7/2009) tribbles (07:52 9/7/2009) monkeyson2 (08:50 9/7/2009) Phlamethrower (10:39 9/7/2009) rich (14:30 9/7/2009) richcheng (08:47 9/7/2009) monkeyson2 (09:33 8/7/2009) |
|
Richard Goodwin | Message #110506, posted by rich at 21:15, 7/7/2009 |
Dictator for life Posts: 6828 |
[ spoiler ] your text here [ /spoiler ] ________ Cheers, Rich. |
[ Log in to reply ] | |
Jason Tribbeck | Message #110514, posted by tribbles at 08:36, 8/7/2009, in reply to message #110506 |
Captain Helix Posts: 929 |
|
[ Log in to reply ] | |
Richard Goodwin | Message #110515, posted by rich at 09:03, 8/7/2009, in reply to message #110514 |
Dictator for life Posts: 6828 |
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. |
[ Log in to reply ] | |
Jason Tribbeck | Message #110516, posted by tribbles at 09:11, 8/7/2009, in reply to message #110515 |
Captain Helix Posts: 929 |
True; I probably would've used CSS to hide it, and then Javascript to reveal it, but that would be even less browser-agnostic. Pity you can't spoiler a quote though |
[ Log in to reply ] | |
Richard Goodwin | Message #110517, posted by rich at 09:20, 8/7/2009, in reply to message #110516 |
Dictator for life Posts: 6828 |
True; I probably would've used CSS to hide it, and then Javascript to reveal it, but that would be even less browser-agnostic.Exactly - most RISC OS browsers don't have CSS, or Javascript, or both. And this is, to some extent, a RISC OS website. Pity you can't spoiler a quote thoughYou can, but that's CSS changing the quote Fixable, if necessary. More to the point, do you need to? ________ Cheers, Rich. |
[ Log in to reply ] | |
Richard Goodwin | Message #110518, posted by rich at 09:24, 8/7/2009, in reply to message #110517 |
Dictator for life Posts: 6828 |
________ Cheers, Rich. |
[ Log in to reply ] | |
Jason Tribbeck | Message #110519, posted by tribbles at 09:28, 8/7/2009, in reply to message #110517 |
Captain Helix Posts: 929 |
No, probably not. I just like pushing the boundaries of things and seeing how far they bendPity you can't spoiler a quote thoughYou can, but that's CSS changing the quote Fixable, if necessary. [Edited by tribbles at 10:29, 8/7/2009] |
[ Log in to reply ] | |
Phil Mellor | Message #110520, posted by monkeyson2 at 09:33, 8/7/2009, in reply to message #110506 |
Please don't let them make me be a monkey butler
Posts: 12380 |
|
[ Log in to reply ] | |
Richard Goodwin | Message #110521, posted by rich at 09:40, 8/7/2009, in reply to message #110519 |
Dictator for life Posts: 6828 |
There might be circumstances where a spoiler is a quote from somewhere else I guess, so I've fixed the CSS.No, probably not. I just like pushing the boundaries of things and seeing how far they bendPity you can't spoiler a quote thoughYou can, but that's CSS changing the quote Fixable, if necessary. 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. |
[ Log in to reply ] | |
Jason Tribbeck | Message #110522, posted by tribbles at 10:03, 8/7/2009, in reply to message #110521 |
Captain Helix Posts: 929 |
Or you could do it server-side, and have a button "Show me the spoilers" - that would even work on Lynx |
[ Log in to reply ] | |
Richard Goodwin | Message #110523, posted by rich at 10:11, 8/7/2009, in reply to message #110522 |
Dictator for life Posts: 6828 |
Or you could do it server-side, and have a button "Show me the spoilers" - that would even work on LynxI 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. ________ Cheers, Rich. |
[ Log in to reply ] | |
Jason Tribbeck | Message #110524, posted by tribbles at 10:18, 8/7/2009, in reply to message #110523 |
Captain Helix Posts: 929 |
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? [Edited by tribbles at 11:19, 8/7/2009] |
[ Log in to reply ] | |
Richard Goodwin | Message #110525, posted by rich at 10:45, 8/7/2009, in reply to message #110524 |
Dictator for life Posts: 6828 |
D'oh!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. |
[ Log in to reply ] | |
Phil Mellor | Message #110536, posted by monkeyson2 at 22:13, 8/7/2009, in reply to message #110525 |
Please don't let them make me be a monkey butler
Posts: 12380 |
Hmm. I have discovered a flaw: you can't read spoilers using an iPhone. |
[ Log in to reply ] | |
Jeffrey Lee | Message #110537, posted by Phlamethrower at 22:26, 8/7/2009, in reply to message #110536 |
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100 |
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 |
[ Log in to reply ] | |
Richard Goodwin | Message #110538, posted by rich at 23:13, 8/7/2009, in reply to message #110537 |
Dictator for life Posts: 6828 |
It's quite simple - just select some text, like you would for cutting and pasting. Oh, wait...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 I'm sure someone will write an app for it. After all, most of the apps seems to be reworkings of either web pages, or the calculator*. * based purely on that stupid advert ________ Cheers, Rich. |
[ Log in to reply ] | |
Jason Tribbeck | Message #110539, posted by tribbles at 07:52, 9/7/2009, in reply to message #110538 |
Captain Helix Posts: 929 |
Actually, that does basically work on OS 3.x - select the area around the spoiler, go to Notes and then paste it...It's quite simple - just select some text, like you would for cutting and pasting. Oh, wait...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 |
[ Log in to reply ] | |
richard cheng | Message #110540, posted by richcheng at 08:47, 9/7/2009, in reply to message #110538 |
Posts: 655 |
After all, most of the apps seems to be reworkings of either web pages, or the calculator*.I am sorely tempted to write an Icon Bar app, now. |
[ Log in to reply ] | |
Phil Mellor | Message #110542, posted by monkeyson2 at 08:50, 9/7/2009, in reply to message #110539 |
Please don't let them make me be a monkey butler
Posts: 12380 |
Yay!Actually, that does basically work on OS 3.x - select the area around the spoiler, go to Notes and then paste it...It's quite simple - just select some text, like you would for cutting and pasting. Oh, wait...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 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. |
[ Log in to reply ] | |
Jeffrey Lee | 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. |
[ Log in to reply ] | |
Richard Goodwin | Message #110545, posted by rich at 14:30, 9/7/2009, in reply to message #110543 |
Dictator for life Posts: 6828 |
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).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. 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. |
[ Log in to reply ] | |