links for contact and maybe more?

This commit is contained in:
2025-08-05 09:20:21 -07:00
parent 4a495ec6f3
commit 995aa402b0
4 changed files with 78 additions and 52 deletions

View File

@@ -1,14 +1,14 @@
const $ = (id) => document.getElementById(id);
const infoContainer = $("contact-info-container");
infoContainer.addEventListener("mousedown", loadContactInfo);
infoContainer.addEventListener("click", loadContactInfo);
function loadContactInfo() {
fetch("contact-info.obfuscated")
.then((response) => response.text())
.then((text) => {
infoContainer.innerHTML = atob(text);
infoContainer.classList.remove("cover");
infoContainer.removeEventListener("click", loadContactInfo);
});
infoContainer.innerHTML = atob(
"PGRpdj4KICAgIDxpbWcKICAgICAgICBjbGFzcz0iYnVsbGV0LWltZyIKICAgICAgICBzcmM9ImRpc2NvcmQucG5nIgogICAgICAgIGFsdD0iRGlzY29yZCIKICAgIC8+QG1pbmluZ3RjdXAKPC9kaXY+CjxkaXY+CiAgICA8aW1nCiAgICAgICAgY2xhc3M9ImJ1bGxldC1pbWciCiAgICAgICAgc3JjPSJwcm90b25tYWlsLnBuZyIKICAgICAgICBhbHQ9IkRpc2NvcmQiCiAgICAvPnRlZEBtaW5pbmd0Y3VwLm1lCjwvZGl2Pgo8ZGl2PgogICAgPGltZwogICAgICAgIGNsYXNzPSJidWxsZXQtaW1nIgogICAgICAgIHNyYz0icGhvbmUud2VicCIKICAgICAgICBhbHQ9IkRpc2NvcmQiCiAgICAvPig2NTApIDUxMi05NjM1CjwvZGl2Pgo=",
);
infoContainer.classList.remove("cover");
infoContainer.removeEventListener("mousedown", loadContactInfo);
infoContainer.removeEventListener("click", loadContactInfo);
}