Created
May 12, 2016 14:42
-
-
Save leandromoreira/84093d8d25596071a48a3897101c22b3 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 a = []; document.onkeyup=function(e){a+=[(e||self.event).keyCode-37] ; if (/113302022928/.test(a)) { alert('Konami Code'); a = ""}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment