contact section

This commit is contained in:
2025-08-03 16:11:00 -07:00
parent 12545d5ae6
commit e8068ee8c2

View File

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