Skip to content

marek-saji/jquery.konami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Konami Code For jQuery

About

Using the Konami code, easily configure and Easter Egg for your page or any element on the page.

Parameters

  1. cheat (function)

    The callback function to fire once the cheat code has been entered.

Instructions

Include the plugin in the header of your page:

<script src="proxy.php?url=http%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.6.1%2Fjquery.min.js" type="text/javascript"></script>
<script src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fjquery.konami.js" type="text/javascript"></script>

Specify a callback to fire once the code has been entered:

$.konami(function() {
    alert('Cheat code activated!');
});

Or bind to specific element:

$('textarea').konami(function() {
    alert('Cheat code activated!');
});

Contact

License

MIT license: http://www.opensource.org/licenses/mit-license.php

About

A jQuery Plugin for easily integrating an easter egg in your project to be triggered via the Konami code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors