Konami code for your website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
konami.js/konami.min.js

6 lines
400 B

/*! konami.js
https://github.com/MightyPork/konami.js
(c) MightyPork 2015, MIT License
Usage: konami(callback);
*/
!function(n){"use strict";var e=n.document,o=[38,38,40,40,37,39,37,39,66,65],t=0;n.konami=function(n){var i=function(e){e.keyCode==o[t]?++t==o.length&&(console.log("コナミ"),"function"==typeof n&&n(),t=0):t=0};e.addEventListener?e.addEventListener("keyup",i):e.onkeyup=i}}(window);