- 8BIT, http://8bit.io, @8BIT
- marek-saji, http://github.com/marek-saji
Using the Konami code, easily configure and Easter Egg for your page or any element on the page.
-
cheat
(function)The callback function to fire once the cheat code has been entered.
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!');
});
- Web: http://github.com/marek-saji
- Twitter: @saji_
MIT license: http://www.opensource.org/licenses/mit-license.php