-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.js
30 lines (26 loc) · 906 Bytes
/
contact.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
(async () => {
let contacts = await fetch("/contactinfo.json");
contacts = await contacts.json();
const emails = document.querySelectorAll(".email");
emails.forEach((link) => {
link.addEventListener("click", (e) => {
e.preventDefault();
let name = e.target.getAttribute("data-name");
window.open(`mailto:${contacts[name].email}`)
})
});
})();
$(document).ready(function() {
$('.year_2022').click(function() {
$('.year_2022').addClass('selected');
$('.year_2023').removeClass('selected');
$('.board-2023').addClass('hidden');
$('.board-2022').removeClass('hidden');
});
$('.year_2023').click(function() {
$('.year_2023').addClass('selected');
$('.year_2022').removeClass('selected');
$('.board-2022').addClass('hidden');
$('.board-2023').removeClass('hidden');
});
});