Skip to content

SimonWaldherr/konami.js

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

#konami.js

konami.js logs every keypress and store it for later

##about

License: MIT
Version: 0.3.1
Date: 07.2013

##demo

Test this code on simonwaldherr.github.com/konami.js.

##howto

The number of the last pressed key is stored in konamidb['lastkey'], to get the associated Char use String.fromCharCode(konamidb['lastkey']). To get the status of a key, use konamidb['65'].status or konamidb['a'.charCodeAt(0)].status.
Take a look at the index.html to see which informations are stored and how.

##contact

Feel free to contact me via eMail, App.net or on Twitter. This software will be continually developed. Suggestions and tips are always welcome.