contact section
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
const $ = (id) => document.getElementById(id);
|
||||
const infoContainer = $("contact-info-container");
|
||||
|
||||
$("contact-info-container").addEventListener("click", () => {
|
||||
infoContainer.addEventListener("click", () => {
|
||||
fetch("contact-info.obfuscated")
|
||||
.then((response) => response.text())
|
||||
.then((text) => {
|
||||
$("contact-info-container").innerHTML = atob(text);
|
||||
infoContainer.innerHTML = atob(text);
|
||||
infoContainer.style.background = "transparent";
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user