From 36f7dd0eca7263dd1caf2f19a354e3202ba92238 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 26 Mar 2022 16:36:15 -0700 Subject: [PATCH] Tighten up sunglasses reveal conditions. This will make it quite a bit more rare, but I don't like coming back to the page after being tabbed away and suddenly getting the sunglasses since it triggered some time ago. You've got to earn them. You heard me right, I leave my own homepage open in the background. --- voussoir.net/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voussoir.net/index.html b/voussoir.net/index.html index 8ec6acd..2bfdbaa 100644 --- a/voussoir.net/index.html +++ b/voussoir.net/index.html @@ -1128,7 +1128,7 @@ function splash_fade_in() { HEADLINE_SPLASH.classList.remove("shrink_out"); const new_text = next_splash_text(); - if (SUNGLASSES_SPLASHES.indexOf(new_text) > -1) + if (SUNGLASSES_SPLASHES.indexOf(new_text) > -1 && document.hasFocus() && (! document.body.classList.contains("justthesplash"))) { reveal_sunglasses(); }