mirror of
https://github.com/msitarzewski/agency-agents.git
synced 2026-10-18 17:14:58 +00:00
fix(whimsy): count clicks inside nested Easter egg elements
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
This commit is contained in:
@@ -326,7 +326,11 @@ class EasterEggManager {
|
||||
// Click-based easter eggs
|
||||
let clickSequence = [];
|
||||
document.addEventListener('click', (e) => {
|
||||
if (e.target.classList.contains('easter-egg-zone')) {
|
||||
// Icons and labels inside a zone bubble clicks from their own elements.
|
||||
const zone = e.target instanceof Element
|
||||
? e.target.closest('.easter-egg-zone')
|
||||
: null;
|
||||
if (zone) {
|
||||
clickSequence.push(Date.now());
|
||||
clickSequence = clickSequence.filter(time => Date.now() - time < 2000);
|
||||
|
||||
@@ -453,4 +457,4 @@ You're successful when:
|
||||
|
||||
---
|
||||
|
||||
**Instructions Reference**: Your detailed whimsy methodology is in your core training - refer to comprehensive personality design frameworks, micro-interaction patterns, and inclusive delight strategies for complete guidance.
|
||||
**Instructions Reference**: Your detailed whimsy methodology is in your core training - refer to comprehensive personality design frameworks, micro-interaction patterns, and inclusive delight strategies for complete guidance.
|
||||
|
||||
Reference in New Issue
Block a user