15 lines
1009 B
JavaScript
15 lines
1009 B
JavaScript
const $ = (id) => document.getElementById(id);
|
|
const infoContainer = $("contact-info-container");
|
|
|
|
infoContainer.addEventListener("mousedown", loadContactInfo);
|
|
infoContainer.addEventListener("click", loadContactInfo);
|
|
|
|
function loadContactInfo() {
|
|
infoContainer.innerHTML = atob(
|
|
"PGRpdj48YSB0YXJnZXQ9Il9ibGFuayIgaHJlZj0iaHR0cHM6Ly9kaXNjb3JkLmNvbS91c2Vycy84MjU0ODcxMzg5NDY1NDc3MTIiPjxpbWcgY2xhc3M9ImJ1bGxldC1pbWciIHNyYz0iZGlzY29yZC5wbmciIGFsdD0iRGlzY29yZCIgLz5taW5pbmd0Y3VwPC9hPjwvZGl2PjxkaXY+PGEgaHJlZj0ibWFpbHRvOnRlZEBtaW5pbmd0Y3VwLm1lIj48aW1nIGNsYXNzPSJidWxsZXQtaW1nIiBzcmM9InByb3Rvbm1haWwucG5nIiBhbHQ9IkVtYWlsIi8+dGVkQG1pbmluZ3RjdXAubWU8L2E+PC9kaXY+PGRpdj48YSBocmVmPSJ0ZWw6KzEtNjUwLTUxMi05NjM1Ij48aW1nIGNsYXNzPSJidWxsZXQtaW1nIiBzcmM9InBob25lLndlYnAiIGFsdD0iUGhvbmUiIC8+KDY1MCkgNTEyLTk2MzU8L2E+PC9kaXY+",
|
|
);
|
|
infoContainer.classList.remove("cover");
|
|
infoContainer.removeEventListener("mousedown", loadContactInfo);
|
|
infoContainer.removeEventListener("click", loadContactInfo);
|
|
}
|