jQuery Konami Code Plugin Demo
[up up down down left right left right b a]
Four konami code event handlers are attached to this window.
- A global handler is attached to the window.
- A handler is attached to input 1.
- A handler is attached to input 2.
- A handler is attached to odd-numbered inputs (1&3).
When you enter the komami code while the caret is in input1, you should see three alerts.