From 3b95a026393021924e72ffa5601daacdd2890a3a Mon Sep 17 00:00:00 2001 From: James Dinh Date: Fri, 13 Jan 2023 01:00:54 -0800 Subject: [PATCH] Updated sponsor subtitle --- index.html | 8 ++++---- js/general.js | 8 +++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 8416afe..f773160 100644 --- a/index.html +++ b/index.html @@ -165,9 +165,9 @@ -
+
@@ -296,7 +296,7 @@
diff --git a/js/general.js b/js/general.js index bcfb88c..738f093 100644 --- a/js/general.js +++ b/js/general.js @@ -28,9 +28,11 @@ document.addEventListener('DOMContentLoaded', function(){ setAttributes(steven, {"href": "mailto:stevendinh987" + "@" + "gmail.com?subject=Gilroy Hacks", "target": "_blank"}); steven.innerHTML = "stevendinh987" + "@" + "gmail.com"; - var vijay = document.getElementById("email-replace-vijay"); - setAttributes(vijay, {"href": "mailto:vijay" + "@" + "gilroyhacks.com?subject=Gilroy Hacks", "target": "_blank"}); - vijay.innerHTML = "vijay" + "@" + "gilroyhacks.com"; + const vijay_emails = document.querySelectorAll('.email-replace-vijay'); + vijay_emails.forEach(entry => { + setAttributes(entry, {"href": "mailto:vijay" + "@" + "gilroyhacks.com?subject=Gilroy Hacks", "target": "_blank"}); + entry.innerHTML = "vijay" + "@" + "gilroyhacks.com"; + }); var jonathan = document.getElementById("email-replace-jonathan"); setAttributes(jonathan, {"href": "mailto:jonathantessmann" + "@" + "gilroyhacks.com?subject=Gilroy Hacks", "target": "_blank"});