The Grey Labyrinth is a collection of puzzles, riddles, mind games, paradoxes and other intellectually challenging diversions. Related topics: puzzle games, logic puzzles, lateral thinking puzzles, philosophy, mind benders, brain teasers, word problems, conundrums, 3d puzzles, spatial reasoning, intelligence tests, mathematical diversions, paradoxes, physics problems, reasoning, math, science.

   
The Grey Labyrinth Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Spoilers not working on iPad and iPhone

 
Reply to topic    The Grey Labyrinth Forum Index -> Feature Requests / Site Problems
View previous topic :: View next topic  
Author Message
Zag
Unintentionally offensive old coot



PostPosted: Mon Jan 02, 2012 5:02 am    Post subject: 1 Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Quailman
His Postmajesty



PostPosted: Mon Jan 02, 2012 8:14 am    Post subject: 2 Reply with quote

I always hit reply on my iPad because it's sort of a pain in the ass to select text.
Back to top
View user's profile Send private message Send e-mail
Jack_Ian
Big Endian



PostPosted: Mon Jan 02, 2012 2:01 pm    Post subject: 3 Reply with quote

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
View user's profile Send private message
Display posts from previous: by   
Reply to topic    The Grey Labyrinth Forum Index -> Feature Requests / Site Problems All times are GMT
Page 1 of 1

 
Jump to:  
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
Site Design by Wx3