Skip to content

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

License

Notifications You must be signed in to change notification settings

marek-saji/jquery.konami

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="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
<script src="jquery.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

No packages published