Skip to content

Instantly share code, notes, and snippets.

@MD4
Created February 26, 2016 14:34
Show Gist options
  • Save MD4/4d574524ed7226efb784 to your computer and use it in GitHub Desktop.
Save MD4/4d574524ed7226efb784 to your computer and use it in GitHub Desktop.
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