Created
February 26, 2016 14:34
-
-
Save MD4/4d574524ed7226efb784 to your computer and use it in GitHub Desktop.
This file contains 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
var keys = []; | |
document.onkeyup = function(e) { | |
keys.unshift(e.keyCode); | |
keys = keys.slice(0, 10); | |
if (keys.join(';') === [65, 66, 39, 37, 39, 37, 40, 38, 40, 38].join(';')) { | |
alert('konami!'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment