From 25b9e484bc4a50129c373ebdd820f653fb9ed05e Mon Sep 17 00:00:00 2001 From: Ted Pier Date: Sun, 3 Aug 2025 16:07:20 -0700 Subject: [PATCH] contact section --- contact-info.obfuscated | 2 +- script.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/contact-info.obfuscated b/contact-info.obfuscated index 8abef13..06dd529 100644 --- a/contact-info.obfuscated +++ b/contact-info.obfuscated @@ -1 +1 @@ -PGRpdj48aW1nY2xhc3M9ImJ1bGxldC1pbWcic3JjPSJkaXNjb3JkLnBuZyJhbHQ9IkRpc2NvcmQiLz5AbWluaW5ndGN1cDwvZGl2PjxkaXY+PGltZ2NsYXNzPSJidWxsZXQtaW1nInNyYz0icHJvdG9ubWFpbC5wbmciYWx0PSJEaXNjb3JkIi8+dGVkQG1pbmluZ3RjdXAubWU8L2Rpdj48ZGl2PjxpbWdjbGFzcz0iYnVsbGV0LWltZyJzcmM9InBob25lLndlYnAiYWx0PSJEaXNjb3JkIi8+KDY1MCk1MTItOTYzNTwvZGl2Pg== +PGRpdj4KICAgIDxpbWcKICAgICAgICBjbGFzcz0iYnVsbGV0LWltZyIKICAgICAgICBzcmM9ImRpc2NvcmQucG5nIgogICAgICAgIGFsdD0iRGlzY29yZCIKICAgIC8+QG1pbmluZ3RjdXAKPC9kaXY+CjxkaXY+CiAgICA8aW1nCiAgICAgICAgY2xhc3M9ImJ1bGxldC1pbWciCiAgICAgICAgc3JjPSJwcm90b25tYWlsLnBuZyIKICAgICAgICBhbHQ9IkRpc2NvcmQiCiAgICAvPnRlZEBtaW5pbmd0Y3VwLm1lCjwvZGl2Pgo8ZGl2PgogICAgPGltZwogICAgICAgIGNsYXNzPSJidWxsZXQtaW1nIgogICAgICAgIHNyYz0icGhvbmUud2VicCIKICAgICAgICBhbHQ9IkRpc2NvcmQiCiAgICAvPig2NTApIDUxMi05NjM1CjwvZGl2Pgo= diff --git a/script.js b/script.js index 38634b0..911d2f0 100644 --- a/script.js +++ b/script.js @@ -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"; }); });