Skip to content
Komani Code™ JavaScript minimalistic implementation
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
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.

You can’t perform that action at this time.