Komani Code™ JavaScript minimalistic implementation
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
index.html
konami.js

README.md

konami.js

A minimalistic & library-independent Konami Code™ easter egg implementation in JavaScript.

How to use?

Load the konami.js file in your HTML page and drop a piece of JavaScript somewhere in the code:

<script type="text/javascript" src="konami.js"></script>
<script type="text/javascript">
  //<![CDATA[
  konami(function() {
    alert('ninja!');
  });
  //]]>
</script>

Open the page in your browser and do the cheat by pressing B A consecutively.