Konami Code

A quick and easy way to add some easter egg-ey goodness.


require([ "lib/utils/konami" ], function(Konami) {
  new Konami();

Hooking in

After having initialised, whenever the konami code is entered, a :konami event will get triggered on the body .

You can therefore hook in as follows:

$("body").on(":konami", function() {
  // Your ├╝ber clever easter egg code here.