An open API service indexing awesome lists of open source software.

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.

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);

```