Move portfolio to the local repository

This commit is contained in:
2025-02-17 14:35:51 +00:00
parent 4cce6fe9a3
commit 90bac86d86
70 changed files with 1961 additions and 1 deletions

20
static/portfolio/index.js Normal file
View 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");
}