add konami code for no reason (for now)

This commit is contained in:
2026-01-04 23:35:19 +00:00
parent 2784a7e124
commit 7dc36b1953
+17
View File
@@ -15,4 +15,21 @@
onclick="window.location.href='mailto:me@futile.eu'">futile</h1>
</body>
<script>
function onKonamiCode(callback) {
let input = '';
let konamiCode = '38384040373937396665';
document.addEventListener('keydown', (event) => {
input += ('' + event.keyCode);
if (input === konamiCode) {
return callback();
}
if (!konamiCode.indexOf(input)) return;
input = ('' + event.keyCode);
});
}
onKonamiCode(() => { alert('ough') })
</script>
</html>