nasg/templates/konami.js

18 lines
396 B
JavaScript
Raw Permalink Normal View History

2019-01-15 21:28:58 +00:00
function kcl(cb) {
var input = '';
var key = '38384040373937396665';
document.addEventListener('keydown', function (e) {
input += ("" + e.keyCode);
if (input === key) {
return cb();
}
if (!key.indexOf(input)) return;
input = ("" + e.keyCode);
});
}
kcl(function () {
2019-05-22 13:17:39 +01:00
var st = document.getElementById('css_surprise');
st.setAttribute('media', 'all');
2019-01-15 21:28:58 +00:00
})