Fixed class bugs

This commit is contained in:
James Dinh 2022-07-23 00:44:55 -07:00
parent 706b280d70
commit b68f8a6f76
2 changed files with 7 additions and 5 deletions

View File

@ -260,7 +260,7 @@
<p class="timeline-description">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 <u>Community Room</u>.<br> <p class="timeline-description">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 <u>Community Room</u>.<br>
<ul class="timeline-description-list"> <ul class="timeline-description-list">
<li><u>Winners</u>: we will contact you via Email about your prizes; allow up to 2 days for a response</li> <li><u>Winners</u>: we will contact you via Email about your prizes; allow up to 2 days for a response</li>
<li>For Questions, ask in the Discord server (#ask-questions), or contact tech support at <a class="link tooltip email-link" id="email-replace-tech" target="_blank" href="mailto:tech@gilroyhacks.com">tech@gilroyhacks.com</a></li> <li>For Questions, ask in the Discord server (#ask-questions), or contact tech support at <a class="link tooltip email-link email-replace-tech" target="_blank" href="mailto:tech@gilroyhacks.com">tech@gilroyhacks.com</a></li>
</ul> </ul>
<div class="timeline-links"> <div class="timeline-links">
<a class="tooltip" id="zoom-tooltip"><div class="timeline-button" id="zoom-link"><img class="timeline-icon" src="img/zoom.png"></div></a> <a class="tooltip" id="zoom-tooltip"><div class="timeline-button" id="zoom-link"><img class="timeline-icon" src="img/zoom.png"></div></a>
@ -603,7 +603,7 @@
<br><br> <br><br>
However, Gilroy Hacks will use these photos for promoting purposes ONLY. We will never share your personal or private information to anyone outside the event. However, Gilroy Hacks will use these photos for promoting purposes ONLY. We will never share your personal or private information to anyone outside the event.
<br><br> <br><br>
If you have a disagreement with any of the terms stated above, please contact an event organizer or email <a class="link tooltip email-link" id="email-replace-tech" target="_blank" href="mailto:tech-at-gilroyhacks-dot-com">tech (at) gilroyhacks (dot) com</a> If you have a disagreement with any of the terms stated above, please contact an event organizer or email <br><a class="link tooltip email-link email-replace-tech" target="_blank" href="mailto:tech-at-gilroyhacks-dot-com">tech (at) gilroyhacks (dot) com</a>
</div> </div>
</div> </div>
<div class="rules-box" id="disclaimer"> <div class="rules-box" id="disclaimer">

View File

@ -10,9 +10,11 @@ document.addEventListener('DOMContentLoaded', function(){
} }
} }
var tech = document.getElementById("email-replace-tech"); const tech_emails = document.querySelectorAll('.email-replace-tech');
setAttributes(tech, {"href": "mailto:tech" + "@" + "gilroyhacks.com?subject=Gilroy Hacks", "target": "_blank"}); tech_emails.forEach(entry => {
tech.innerHTML = "tech" + "@" + "gilroyhacks.com"; setAttributes(entry, {"href": "mailto:tech" + "@" + "gilroyhacks.com?subject=Gilroy Hacks", "target": "_blank"});
entry.innerHTML = "tech" + "@" + "gilroyhacks.com";
});
var aadhavan = document.getElementById("email-replace-aadhavan"); var aadhavan = document.getElementById("email-replace-aadhavan");
setAttributes(aadhavan, {"href": "mailto:aadhavan.magesh" + "@" + "gmail.com?subject=Gilroy Hacks", "target": "_blank"}); setAttributes(aadhavan, {"href": "mailto:aadhavan.magesh" + "@" + "gmail.com?subject=Gilroy Hacks", "target": "_blank"});