From 195320ac8217ddaff29a9f05c642da4fb23f0513 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Wed, 28 Jan 2026 01:18:31 +1000 Subject: [PATCH 1/2] Creat 5th secret --- src/assets/js/script.js | 46 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/src/assets/js/script.js b/src/assets/js/script.js index aa5e945..025812b 100644 --- a/src/assets/js/script.js +++ b/src/assets/js/script.js @@ -699,6 +699,8 @@ function triggerSecretUnlock(type) { addExperience(500); // Massive bonus for the long code } else if (type === "gravity" || type === "matrix") { addExperience(45); // 1 full level + } else if (type === "pulse") { + addExperience(180); // 4 levels } else { addExperience(75); // 2 full levels } @@ -710,6 +712,48 @@ function triggerSecretUnlock(type) { } } +/** + * Initialize the Easter Egg functionality for the talent directory status dot. + */ +function initDotEasterEgg() { + const dot = document.querySelector(".animate-pulse"); + + if (!dot) return; // Exit if the dot isn't found + + dot.style.cursor = "pointer"; + + // Define the hover behavior + dot.onmouseover = function () { + this.style.backgroundColor = "#fbbf24"; // Change to a "gold" color + this.classList.remove("animate-pulse"); + this.style.transform = "scale(2.5)"; + this.style.transition = "transform 0.2s ease-in-out"; + }; + + dot.onmouseout = function () { + this.style.backgroundColor = ""; // Reset to original green + this.style.transform = "scale(1)"; + this.classList.add("animate-pulse"); + }; + + // Define the click behavior (The Easter Egg) + dot.onclick = function () { + console.log("Easter egg triggered pulse egg active!"); + // Example: Rotate the dot 360 degrees and change the text nearby + this.animate( + [{ transform: "rotate(0)" }, { transform: "rotate(360deg)" }], + { duration: 500 }, + ); + + // Bonus: You could trigger a custom event or reveal hidden content here + // document.body.classList.add("pulse-egg-active"); + triggerSecretUnlock("pulse"); + }; +} + +// Call the function once the DOM is ready +document.addEventListener("DOMContentLoaded", initDotEasterEgg); + const konamiCode = [ "arrowup", "arrowup", @@ -1296,6 +1340,8 @@ function initSkillXP() { // Re-initialize skills after Surprise scroll or any DOM changes window.addEventListener("DOMContentLoaded", initSkillXP); +// Call the function once the DOM is ready +document.addEventListener("DOMContentLoaded", initDotEasterEgg); /** * SYS ADMIN XP (Level 6 Mechanic) From 660f18133484fbe12d36f46998e83a8aa136c956 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Wed, 28 Jan 2026 01:21:41 +1000 Subject: [PATCH 2/2] fixups --- src/assets/js/script.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/assets/js/script.js b/src/assets/js/script.js index 025812b..086f968 100644 --- a/src/assets/js/script.js +++ b/src/assets/js/script.js @@ -1340,8 +1340,6 @@ function initSkillXP() { // Re-initialize skills after Surprise scroll or any DOM changes window.addEventListener("DOMContentLoaded", initSkillXP); -// Call the function once the DOM is ready -document.addEventListener("DOMContentLoaded", initDotEasterEgg); /** * SYS ADMIN XP (Level 6 Mechanic)