From b68f8a6f76d0388151eae46e29b6a81443b1e0e3 Mon Sep 17 00:00:00 2001 From: James Dinh Date: Sat, 23 Jul 2022 00:44:55 -0700 Subject: [PATCH] Fixed class bugs --- index.html | 4 ++-- js/general.js | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 5a87ce1..c88068b 100644 --- a/index.html +++ b/index.html @@ -260,7 +260,7 @@

Congratuations! Judge scores are tallied and here's where we announce the 1st, 2nd, and 3rd place teams along with constructive feedback for each in the Community Room.

diff --git a/js/general.js b/js/general.js index 2143340..22bc962 100644 --- a/js/general.js +++ b/js/general.js @@ -10,9 +10,11 @@ document.addEventListener('DOMContentLoaded', function(){ } } - var tech = document.getElementById("email-replace-tech"); - setAttributes(tech, {"href": "mailto:tech" + "@" + "gilroyhacks.com?subject=Gilroy Hacks", "target": "_blank"}); - tech.innerHTML = "tech" + "@" + "gilroyhacks.com"; + const tech_emails = document.querySelectorAll('.email-replace-tech'); + tech_emails.forEach(entry => { + setAttributes(entry, {"href": "mailto:tech" + "@" + "gilroyhacks.com?subject=Gilroy Hacks", "target": "_blank"}); + entry.innerHTML = "tech" + "@" + "gilroyhacks.com"; + }); var aadhavan = document.getElementById("email-replace-aadhavan"); setAttributes(aadhavan, {"href": "mailto:aadhavan.magesh" + "@" + "gmail.com?subject=Gilroy Hacks", "target": "_blank"});