Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple system for detecting the entry of the famous Konami code and attaching an event

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 example.html
Octocat-spinner-32 konami.js
README.md

konami-js

Simple system for detecting the entry of the famous Konami code and attaching an event

Simple Example:

(function() {
  var konami = new Konami();
  konami.onSuccess = function () {
    alert('You win!');
  };
  konami.init();
}());

Example with specific target:

(function() {
  var konami = new Konami();
  konami.onSuccess = function () {
    alert('You win!');
  };
  konami.listenerTarget = document.getElementById('my_element');
  konami.init();
}());
Something went wrong with that request. Please try again.