Deploy: Fri May 15 14:02:26 UTC 2026
This commit is contained in:
commit
884ab01739
900 changed files with 23978 additions and 0 deletions
14
docs/static/scripts/ccd.js
vendored
Normal file
14
docs/static/scripts/ccd.js
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const konamiCode = ['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight', 'KeyB', 'KeyA'];
|
||||
let keyIndex = 0;
|
||||
|
||||
document.addEventListener('keydown', function(event) {
|
||||
if (event.code === konamiCode[keyIndex]) {
|
||||
keyIndex++;
|
||||
if (keyIndex === konamiCode.length) {
|
||||
window.location.href = `${rootPrefix}static/toyourdreams.txt`
|
||||
keyIndex = 0;
|
||||
}
|
||||
} else {
|
||||
keyIndex = 0;
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue