- 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="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!');
});
- Web: http://github.com/marek-saji
- Twitter: @saji_
MIT license: http://www.opensource.org/licenses/mit-license.php