|
|
|
|
| View previous topic :: View next topic |
| Author |
Message |
Zag
Unintentionally offensive old coot
|
Posted: Mon Jan 02, 2012 5:02 am Post subject: 1 |
|
|
A new member has mentioned to me that the spoilers don't work on iPad or iPhone. Selecting the text doesn't make it show up, and he has to copy and paste into some other application. (I pointed out that he could reply or quote, since text isn't spoilered in the thread summary below a reply, and is obviously available while you're editing the quoted text, but that is a rather unsatisfactory answer.)
Anyway, if we change the CSS definitions, then we can give a "hover" behavior to the quoted text, changing its color to be visible. Here is a sample: http://zag.net/test.html . Highlighting the text as you do today will continue to work, as well.
Any objections to making this change? It does mean that if you sweep your cursor over a page with a lot of spoilered text, the text will flash, even though you're not selecting anything.
I'm not sure I still know the password to get at the FTP connection. I've changed computers since I had it set up. If you want to send it to me again, I'll be glad to make the change. Otherwise, what is needed is for viewtopic.php to have this change:
It currently has these lines:
td.row1 span.spoil { color: #F7F7F7; }
td.row2 span.spoil { color: #DEDFDF; }
td.row3 span.spoil { color: #FFFFFF; }
td.quote span.spoil { color: #FEFEFE; }
Near those, we would add these lines:
td.row1 span.spoil:hover { color: #8080f0; }
td.row2 span.spoil:hover { color: #8080f0; }
td.row3 span.spoil:hover { color: #8080f0; }
td.quote span.spoil:hover { color: #8080f0; }
(or maybe a slightly darker color. I was trying to pick something that showed it was still spoilered, didn't completely jump out at you, but was still readable. I haven't tried it against all the backgrounds.) |
|
| Back to top |
|
 |
Quailman
His Postmajesty
|
Posted: Mon Jan 02, 2012 8:14 am Post subject: 2 |
|
|
| I always hit reply on my iPad because it's sort of a pain in the ass to select text. |
|
| Back to top |
|
 |
Jack_Ian
Big Endian
|
Posted: Mon Jan 02, 2012 2:01 pm Post subject: 3 |
|
|
There is no "hover" on an iPhone or iPad, as there is no mouse cursor.
You can add bookmarks though, that perform JavaScript. Known as bookmarklets.
For example:
| Code: |
| javascript:%20var%20sourceWindow%20%3D%20window.open%28%27about%3Ablank%27%29%3B%20%0Avar%20newDoc%20%3D%20sourceWindow.document%3B%20%0AnewDoc.open%28%29%3B%20%0AnewDoc.write%28%27%3Chtml%3E%3Chead%3E%3Ctitle%3ESource%20of%20%27%20%2B%20document.location.href%20%2B%20%27%3C/title%3E%3C/head%3E%3Cbody%3E%3C/body%3E%3C/html%3E%27%29%3B%20%0AnewDoc.close%28%29%3B%20%0Avar%20pre%20%3D%20newDoc.body.appendChild%28newDoc.createElement%28%22pre%22%29%29%3B%20%0Apre.appendChild%28newDoc.createTextNode%28document.documentElement.innerHTML%29%29%3B |
will allow you to see the page source. Just select the bookmark and it will execute the JavaScript on the current page.
It should be relatively easy to show the selected text in this way. Anyone care to write the code for it? |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|