Revision: 14717
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 9, 2009 18:22 by JakeCarter
Initial Code
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 ) // User entered Konami Code, do something cool!!! }, true); }
Initial URL
Initial Description
This is the code to add to a website to listen for the Konami Code (as implemented on jQuery.com"
Initial Title
jQuery Konami Code Listener
Initial Tags
jquery
Initial Language
jQuery