Library of The Week: Egg.js

Let's have some fun this week with something a bit less serious.

First press the following keys in order: E, G, G.

Woo hoo, you just used the Egg.js library!

As the name suggests, Egg.js is library for adding "Easter eggs" to a page. Let's take a closer look at the example from this page.

var egg = new Egg();
egg.addCode("e,g,g", function() {
  // show the rest of the page
}).listen();

No magic; you just define the trigger sequence and register a handler for it.

Having fun yet? Continue with the A, S, D or W key to see another example of Egg.js in action.