-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
27 lines (22 loc) · 1016 Bytes
/
script.js
File metadata and controls
27 lines (22 loc) · 1016 Bytes
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
/*document.addEventListener("DOMContentLoaded", function() {
const aboutMeLink = document.getElementById("about-me-link");
const aboutMeSection = document.getElementById("about-me");
aboutMeLink.addEventListener("click", function(event) {
event.preventDefault(); // Prevent the default anchor behavior
// Toggle the 'visible' class
aboutMeSection.classList.toggle("visible");
});
});*/
document.addEventListener("DOMContentLoaded", function() {
const showLinks = document.getElementById("show-links");
const linksContainer = document.getElementById("assignment-links");
showLinks.addEventListener("click", function(event) {
event.preventDefault(); // Prevent the default anchor behavior
// Toggle visibility
if (linksContainer.style.display === "none" || linksContainer.style.display === "") {
linksContainer.style.display = "block";
} else {
linksContainer.style.display = "none";
}
});
});