Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
jQuery plugin that fires a custom callback if one types the Konami Code (or a custom code of your choice [via watchFor])
tree: 3e7dcd8b75

updated readme again

making watchFor sequence more clear
latest commit 3e7dcd8b75
Kyle Bragger authored
Failed to load latest commit information.
README updated readme again
konamicode.js updated readme

README

    jQuery Konami Code Plugin
    by Kyle Bragger <kyle@kylebragger.com>
    Created May 11, 2009
    Do with it what you will.

    Usage:
    
    $(document).ready(function(){
        $('body').upUpDownDown({
            watchFor: [38,38,40,40,37,39,37,39,66,65], // Array of keyCode and charCodes to watch for
                                                       // This represents a sequence, ordered left (first) to right (last), so:
                                                       // [38,38,40,40,37,39,37,39,66,65] == up up down down left right left right B A, in that order
            callback: function(){
                // Do some fancy shit here.
            }
        });
    });


Something went wrong with that request. Please try again.