-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
26 lines (21 loc) · 893 Bytes
/
script.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
const navOverlay = document.getElementById("full_nav");
const navOpenButton = document.getElementById("nav");
const navCloseButton = document.getElementById("closebtn");
const about_link = document.getElementById("about__link");
const project_link = document.getElementById("project__link");
const contact_link = document.getElementById("contact__link");
navOpenButton.addEventListener("click", function() {
navOverlay.classList.add("overlay__visible");
});
navCloseButton.addEventListener("click", function() {
navOverlay.classList.remove("overlay__visible");
});
about_link.addEventListener("click", function() {
navOverlay.classList.remove("overlay__visible");
});
project_link.addEventListener("click", function() {
navOverlay.classList.remove("overlay__visible");
});
contact_link.addEventListener("click", function() {
navOverlay.classList.remove("overlay__visible");
});