-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
27 lines (20 loc) · 1.01 KB
/
Copy pathscript.js
File metadata and controls
27 lines (20 loc) · 1.01 KB
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
const toggleHamburger = () => {
document.getElementById("nav-items").classList.toggle("hide");
}
const switchToAssignments = () => {
document.getElementById("assignment-section").classList.remove("hide-section");
document.getElementById("assignments-tab").classList.add("bottom-border");
document.getElementById("project-section").classList.add("hide-section");
document.getElementById("project-tab").classList.remove("bottom-border");
}
const switchToProject = () => {
document.getElementById("assignment-section").classList.add("hide-section");
document.getElementById("assignments-tab").classList.remove("bottom-border");
document.getElementById("project-section").classList.remove("hide-section");
document.getElementById("project-tab").classList.add("bottom-border");
}
window.onload = () => {
document.getElementById("hamburger").onclick = toggleHamburger;
document.getElementById("assignments-tab").onclick = switchToAssignments;
document.getElementById("project-tab").onclick = switchToProject;
}