Created
April 1, 2012 16:23
-
-
Save kakuno/2276767 to your computer and use it in GitHub Desktop.
konami
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ( window.addEventListener ) { | |
| var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65"; | |
| window.addEventListener("keydown", function(e){ | |
| kkeys.push( e.keyCode ); | |
| if ( kkeys.toString().indexOf( konami ) >= 0 ) | |
| window.location = "http://ejohn.org/apps/hero/"; | |
| }, true); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment