links for contact and maybe more?
This commit is contained in:
14
script.js
14
script.js
@@ -1,14 +1,14 @@
|
||||
const $ = (id) => document.getElementById(id);
|
||||
const infoContainer = $("contact-info-container");
|
||||
|
||||
infoContainer.addEventListener("mousedown", loadContactInfo);
|
||||
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);
|
||||
});
|
||||
infoContainer.innerHTML = atob(
|
||||
"PGRpdj4KICAgIDxpbWcKICAgICAgICBjbGFzcz0iYnVsbGV0LWltZyIKICAgICAgICBzcmM9ImRpc2NvcmQucG5nIgogICAgICAgIGFsdD0iRGlzY29yZCIKICAgIC8+QG1pbmluZ3RjdXAKPC9kaXY+CjxkaXY+CiAgICA8aW1nCiAgICAgICAgY2xhc3M9ImJ1bGxldC1pbWciCiAgICAgICAgc3JjPSJwcm90b25tYWlsLnBuZyIKICAgICAgICBhbHQ9IkRpc2NvcmQiCiAgICAvPnRlZEBtaW5pbmd0Y3VwLm1lCjwvZGl2Pgo8ZGl2PgogICAgPGltZwogICAgICAgIGNsYXNzPSJidWxsZXQtaW1nIgogICAgICAgIHNyYz0icGhvbmUud2VicCIKICAgICAgICBhbHQ9IkRpc2NvcmQiCiAgICAvPig2NTApIDUxMi05NjM1CjwvZGl2Pgo=",
|
||||
);
|
||||
infoContainer.classList.remove("cover");
|
||||
infoContainer.removeEventListener("mousedown", loadContactInfo);
|
||||
infoContainer.removeEventListener("click", loadContactInfo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user