Skip to content

palmerj3/konami-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();
}());

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •