-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
19 lines (15 loc) · 706 Bytes
/
README
File metadata and controls
19 lines (15 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.
}
});
});