Add the Konami Code as an easter egg to your web project. Compatible with keyboards and touch events.
For example and additional information please visit: https://snaptortoise.github.io/konami-js/
- Download the latest source and include konami.js in your project
- Install with npm:
npm install konami
- Install with bower:
bower install konami-js
I would love the community's help in any of this
Notable instances of Konami-JS in the wild include:
- Almost half the sites in this Mashable article
- Smashing Magazine
- The History of Gaming Conventions
- ...and MANY more!
If you'd prefer to use a coffeescript version you can find one here:
If you are looking for GamePad support check out this fork:
Your pull requests are welcome! Emphasis on small footprints, speed and broad device/browser compatability. Less interested in package manager and toolchain integrations.