mersenneforum.org  

Go Back   mersenneforum.org > Other Stuff > Forum Feedback

Reply
 
Thread Tools
Old 2015-10-27, 23:50   #1
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25×257 Posts
Default Better "spoiler" tag?

We are trying to figure out how this web page implements their spoiler tag.

https://www.reddit.com/r/dailyprogra...ts_and_vowels/

For mobile users it is better because you can click on it to reveal the text.

Xyzzy is offline   Reply With Quote
Old 2015-10-28, 02:47   #2
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default

I think they just use a different style on hover. StackExchange has a similar setup, but clicking on it toggles the spoiler class. The clicking approach works even better on mobile: the hovering one only works because the invisible cursor happens to be left there if you click on it. Scrolling could undo the spoiler-revealing.

Last fiddled with by Mini-Geek on 2015-10-28 at 02:49
Mini-Geek is offline   Reply With Quote
Old 2015-10-28, 02:56   #3
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

22×1,549 Posts
Default

I am not so sure it is better. It is easy to accidentally show the text when I only wanted to reposition the cursor. And being required to keep the cursor over the text is annoying because when I want to use the scrollbar to move the display the text disappears again.
retina is online now   Reply With Quote
Old 2015-10-28, 03:19   #4
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25×257 Posts
Default

That "Fiddle" thing is very cool!

Xyzzy is offline   Reply With Quote
Old 2015-10-28, 03:37   #5
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

183416 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
That "Fiddle" thing is very cool!

Except it is JS uglyness.
retina is online now   Reply With Quote
Old 2015-10-28, 03:50   #6
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

100000001000002 Posts
Default

Please test the new spoiler tag out.

Hello!

We will try to figure out the clicky part next.

Xyzzy is offline   Reply With Quote
Old 2015-10-28, 04:01   #7
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

22·1,549 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
Please test the new spoiler tag out.

Hello!

We will try to figure out the clicky part next.

Works here as hovering will reveal the text, and selecting will also reveal the text.

And doing both hover and select together makes the world explode.
retina is online now   Reply With Quote
Old 2015-10-28, 04:28   #8
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25·257 Posts
Default

Quote:
Originally Posted by retina View Post
Works here as hovering will reveal the text, and selecting will also reveal the text.
We only need JS if we want it to be clickable, so maybe this is best?

The time delay for the fade effect can be changed. Right now it is set for two seconds.

Xyzzy is offline   Reply With Quote
Old 2015-10-28, 05:42   #9
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

22·1,549 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
The time delay for the fade effect can be changed. Right now it is set for two seconds.
I don't see that effect. Everything happens, in what appears to me to be, instantly.
retina is online now   Reply With Quote
Old 2015-10-28, 08:19   #10
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

2×3×1,693 Posts
Default

Works well in FF 35.0.
kladner is offline   Reply With Quote
Old 2015-10-28, 08:34   #11
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

22·33·89 Posts
Default

Works well in FF 41 too.
The time could be a bit longer, just to avoid revealing by mistake.
LaurV is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
GQQ: a "deterministic" "primality" test in O(ln n)^2 Chair Zhuang Miscellaneous Math 21 2018-03-26 22:33
Stockfish game: "Move 8 poll", not "move 3.14159 discussion" MooMoo2 Other Chess Games 5 2016-10-22 01:55
Aouessare-El Haddouchi-Essaaidi "test": "if Mp has no factor, it is prime!" wildrabbitt Miscellaneous Math 11 2015-03-06 08:17
Would Minimizing "iterations between results file" may reveal "is not prime" earlier? nitai1999 Software 7 2004-08-26 18:12

All times are UTC. The time now is 13:36.


Sat Jul 17 13:36:59 UTC 2021 up 50 days, 11:24, 1 user, load averages: 1.47, 1.59, 1.58

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.