contact section
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
const $ = (id) => document.getElementById(id);
|
||||
const infoContainer = $("contact-info-container");
|
||||
|
||||
infoContainer.addEventListener("click", () => {
|
||||
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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user