News for hackers. Stuff that matters.
Re:Show HN: MineSweeper implemented in 100% CSS and HTML – n... by James0x57 on Thursday July 23, 2020 @10:56AM (#23927977)
OHHH I wish the others would have been more specific other than "it doesn't work". Thank you!

The way that random thing works is:

1) #randommenu:target shows the overlay (based on hash in the url)

2) the overlay has a link to "#" (fullscreen) that says "click-click"

3) Then rendered ontop of the link, all 16 level labels are full screen & transparent

4) Animations loop through them (hard-coded random scramble) to change their z-index to be on top, one at a time, for about 0.25s each

5) Clicking on any of the labels causes that layer to disappear, exposing the "#" link

6) Clicking again changes the url to "#" so #randommenu is no longer :target, thus closing the overlay

My guess is it's probably flashing too fast for iOS/Safari to register a full click.. I could probably fix it by making the random sequence take longer.

Can you confirm the URL never changes to "#" and stays stuck on "#randommenu"?

Re:Show HN: MineSweeper implemented in 100% CSS and HTML – n... by Diskutant on Friday July 24, 2020 @09:50AM (#23939447)
Yes it’s stuck on #randommenu

Sometimes it works though, needs some „clicking“ (touching), eventually it will (might) work.