12 lines
381 B
JavaScript
12 lines
381 B
JavaScript
const $ = (id) => document.getElementById(id);
|
|
const infoContainer = $("contact-info-container");
|
|
|
|
infoContainer.addEventListener("click", () => {
|
|
fetch("contact-info.obfuscated")
|
|
.then((response) => response.text())
|
|
.then((text) => {
|
|
infoContainer.innerHTML = atob(text);
|
|
infoContainer.style.background = "transparent";
|
|
});
|
|
});
|