-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
38 lines (32 loc) · 1.23 KB
/
main.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
31
32
33
34
35
36
37
38
document.getElementById("title-2").addEventListener("click", function () {
let divToBeTargetted = document.getElementById("tribute-info")
if (divToBeTargetted.style.display === "none") {
divToBeTargetted.style.display = "block";
} else {
divToBeTargetted.style.display = "none";
}
});
document.getElementById("title-3").addEventListener("click", function () {
let divToBeTargetted = document.getElementById("timeline")
if (divToBeTargetted.style.display === "none") {
divToBeTargetted.style.display = "block";
} else {
divToBeTargetted.style.display = "none";
}
});
document.getElementById("title-4").addEventListener("click", function () {
let divToBeTargetted = document.getElementById("gallery")
if (divToBeTargetted.style.display === "none") {
divToBeTargetted.style.display = "block";
} else {
divToBeTargetted.style.display = "none";
}
});
document.getElementById("title-5").addEventListener("click", function () {
let divToBeTargetted = document.getElementById("connect")
if (divToBeTargetted.style.display === "none") {
divToBeTargetted.style.display = "block";
} else {
divToBeTargetted.style.display = "none";
}
});