Live data from Hacker News

Cheet.js: Easter eggs (Konami Code, etc.) for your site

namuol.github.io

11–15 of 15 posts

Re: Cheet.js: Easter eggs (Konami Code, etc.) for your site

#13
post #9

Nice! Another idea would be to use events in stead of keys in the sequence, something like: "click:#elem1 click:#elem2 keyup:13" That would enable you to make slightly more advanced easter eggs or "cheets"

I went ahead and made this[1]. The implementation is a little different from the way you do it, and it uses jQuery to create the events, but it supports sequences of click events using jQuery selectors like in my original comment, other events could be added without much effort.

The implementation is not at all as neat as the original, and i haven't done thorough testing, i just had an idea and tried it out.

[1] https://github.com/jonlt/cheet.js

Re: Cheet.js: Easter eggs (Konami Code, etc.) for your site

#15
post #13
post #9

Nice! Another idea would be to use events in stead of keys in the sequence, something like: "click:#elem1 click:#elem2 keyup:13" That would enable you to make slightly more advanced easter eggs or "cheets"

I went ahead and made this[1]. The implementation is a little different from the way you do it, and it uses jQuery to create the events, but it supports sequences of click events using jQuery selectors like in my original comment, other events could be added without much effort. The implementation is not at all as neat as the original, and i haven't done thorough testing, i just had an idea and tried it out. [1] http…

Good idea; I'd incorporate your changes but I'm trying to keep it dependency-free, for now.

I could support '#id' without any dependencies pretty easily, though...

Post reply on HN