convert to static html website

This commit is contained in:
2026-07-11 05:40:51 +01:00
parent 6139e1fea8
commit 776fc5d450
15 changed files with 114 additions and 1901 deletions
+22
View File
@@ -0,0 +1,22 @@
function onKonamiCode(callback) {
let input = "";
const konami =
"arrowuparrowuparrowdownarrowdownarrowleftarrowrightarrowleftarrowrightba";
document.addEventListener("keydown", (e) => {
input = (input + e.key.toLowerCase()).slice(-konami.length);
if (input === konami) callback();
});
}
onKonamiCode(() => {
const body = document.body;
const header = document.getElementById("header");
if (body.style.backgroundColor === "white") {
body.style.backgroundColor = "black";
header.style.color = "white";
} else {
body.style.backgroundColor = "white";
header.style.color = "black";
}
});