Skip to content

tzvetkoff/konamijs

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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.

About

Komani Code™ JavaScript minimalistic implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published