Skip to content

zbicin/konami-code-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 is pretty self explanatory and I totally recommend reading through it. However, if you are impatient:

<script type="text/javascript" src="../lib/konami-code.min.js"></script>
<script type="text/javascript">
  function onKonamiCode() {
    console.log('konami code!');
  }
  function onKonamiCodeGesture(event) {
      console.log(event.detail.name);
  }
  document.addEventListener('konamiCode', onKonamiCode);
  document.addEventListener('konamiCodeGesture', onKonamiCodeGesture);
</script>

About

Konami Code implementation for JavaScript with touchscreen support.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published