From 2f27dfa84bd4b023f119b73c72bd6f8c73eec1f2 Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Sun, 17 Dec 2023 20:51:09 -0600 Subject: [PATCH] colors only in easteregg version --- 2024/call/call.html | 5 +++-- 2024/call/index.html | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/2024/call/call.html b/2024/call/call.html index 3a9fc63..85d67c5 100644 --- a/2024/call/call.html +++ b/2024/call/call.html @@ -179,7 +179,7 @@ var dropdown = dropdowns[random]; var random_option = Math.floor(Math.random() * dropdown.options.length); dropdown.selectedIndex = random_option; - var color = "black"; // pickcolor(); // michael: 17 dec tho i liked the colors, i found myself not reading the lines... trying monochrome + var color = easteregg ? pickcolor() : "black"; // ; // michael: 17 dec tho i liked the colors, i found myself not reading the lines... trying monochrome var backgroundcolor = pickcolor(); var font = pickfont(); dropdown.style.width = "auto"; @@ -241,7 +241,8 @@ makedrop(); var checking = new URLSearchParams(window.location.search); - if(checking.get('easteregg') == "true"){ + var easteregg = (checking.get('easteregg') == "true"); + if (easteregg){ alert("🪄 You found the secret treasure word🌟. Its called 'Special tissue'🤧! Please mention it in your application 🪄"); } diff --git a/2024/call/index.html b/2024/call/index.html index 3a9fc63..85d67c5 100644 --- a/2024/call/index.html +++ b/2024/call/index.html @@ -179,7 +179,7 @@ var dropdown = dropdowns[random]; var random_option = Math.floor(Math.random() * dropdown.options.length); dropdown.selectedIndex = random_option; - var color = "black"; // pickcolor(); // michael: 17 dec tho i liked the colors, i found myself not reading the lines... trying monochrome + var color = easteregg ? pickcolor() : "black"; // ; // michael: 17 dec tho i liked the colors, i found myself not reading the lines... trying monochrome var backgroundcolor = pickcolor(); var font = pickfont(); dropdown.style.width = "auto"; @@ -241,7 +241,8 @@ makedrop(); var checking = new URLSearchParams(window.location.search); - if(checking.get('easteregg') == "true"){ + var easteregg = (checking.get('easteregg') == "true"); + if (easteregg){ alert("🪄 You found the secret treasure word🌟. Its called 'Special tissue'🤧! Please mention it in your application 🪄"); }