- 8BIT, https://8bit.io, @8BIT
- marek-saji, https://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="https://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: https://github.com/marek-saji
- Twitter: @saji_
MIT license: https://www.opensource.org/licenses/mit-license.php