https://github.com/zbicin/konami-code-js
Konami Code implementation for JavaScript with touchscreen support.
https://github.com/zbicin/konami-code-js
easter-egg javascript konamicode
Last synced: about 2 months ago
JSON representation
Konami Code implementation for JavaScript with touchscreen support.
- Host: GitHub
- URL: https://github.com/zbicin/konami-code-js
- Owner: zbicin
- Created: 2017-07-07T19:58:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-20T14:57:51.000Z (about 6 years ago)
- Last Synced: 2024-10-18T13:56:46.497Z (7 months ago)
- Topics: easter-egg, javascript, konamicode
- Language: JavaScript
- Homepage: https://zbicin.github.io/konami-code-js
- Size: 43.9 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# konami-code.js
Konami Code implementation for JavaScript with touchscreen support.## Demo
https://zbicin.github.io/konami-code-js## How to use?
The [demo file in docs](docs/index.html) is pretty self explanatory and I totally recommend reading through it. However, if you are impatient:```html
function onKonamiCode() {
console.log('konami code!');
}
function onKonamiCodeGesture(event) {
console.log(event.detail.name);
}
document.addEventListener('konamiCode', onKonamiCode);
document.addEventListener('konamiCodeGesture', onKonamiCodeGesture);```