mirror of
https://github.com/TrudeEH/web.git
synced 2025-12-06 08:23:37 +00:00
Move portfolio to the local repository
This commit is contained in:
20
static/portfolio/index.js
Normal file
20
static/portfolio/index.js
Normal file
@@ -0,0 +1,20 @@
|
||||
const navElements = document.querySelectorAll("nav #nav-container a");
|
||||
pointer = 1;
|
||||
|
||||
function menuToggle(x) {
|
||||
if (x.classList.contains("menuAlt")) {
|
||||
document.getElementById("nav").classList.add("nav-open");
|
||||
setTimeout(() => {
|
||||
document.getElementById("nav").classList.remove("nav-open");
|
||||
document.getElementById("nav-container").style.display = "flex";
|
||||
}, 200);
|
||||
} else {
|
||||
document.getElementById("nav").classList.add("nav-close");
|
||||
document.getElementById("nav-container").style.display = "none";
|
||||
setTimeout(() => {
|
||||
document.getElementById("nav").classList.remove("nav-close");
|
||||
}, 200);
|
||||
}
|
||||
x.classList.toggle("menuAlt");
|
||||
document.getElementById("nav").classList.toggle("hide");
|
||||
}
|
||||
Reference in New Issue
Block a user