My favorites | Sign in
Logo
Project hosting will be READ-ONLY Wednesday at 8am PST due to brief network maintenance.
                
Show all Featured downloads:
konami.js konami.pack.js

Konami-JS

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.

Important update!

As of version 1.1, the old code examples at http://www.snaptortoise.com/konami-js are no longer functioning! If you linked directly to the file at http://konami-js.googlecode.com/svn/trunk/konami.js you will likely have to update your implementation. Most people will probably be able to fix their setup by adding this line before konami.load():

    var konami = new Konami();

Instead of a single konami object being declared, the Konami() function returns this object. The script was rewritten to allow multiple easter-eggs on a single page.

iPhone Support

As of version 1.1, Konami-JS includes support for iPhone gestures. Technically the code is now "up, up, down, down, left, right, left, right, tap, tap, tap," but that's close enough!

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

As Seen On..

And many more!

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.









Hosted by Google Code