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 🪄"); }