konami-js


A quick and easy way to add the Konami Code easter egg to any site. iPhone compatible!

Konami-JS

http://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Gnome-joystick.svg/60px-Gnome-joystick.svg.png

Every site should have an implementation of the Konami Code. It makes things more fun. If you're unfamiliar with it, the Konami Code is a "cheat code" that appeared in many of Konami's video games going all the way back to 1986. It was typically entered on a Nintendo controller. Recently, ESPN received attention for the funny, flashy things that would happen when the code was entered on their website. Those shenanigans were the inspiration for whipping up this script.

iOS & Android Support

http://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Phone-apple-iphone.svg/48px-Phone-apple-iphone.svg.png

As of version 1.1, Konami-JS includes support for gestures on iOS devices such as the iPhone, iPod Touch and iPad. It has also been tested on the default Android 2.x browser and Dolphin Browser HD. Technically the code is now "up, up, down, down, left, right, left, right, tap, tap, tap," on these devices but that's close enough!

Support for touch gestures is automatically loaded when you call konami.load(). See the examples page for details on how to deliver touch-specific easter eggs.

Now on Github

If that's more your thing:

https://github.com/georgemandis/konami-js

As Seen On..

Using Konami-JS?

Have you used Konami-JS on a site? Get in touch so I can continue building a list of sites that are using it.

Project Information

  • License: GNU GPL v3
  • 84 stars
  • svn-based source control

Labels:
konami javascript konamicode iphone eastereggs android