Project-closer+css images projects
All checks were successful
Deploy / Deploy to Production (push) Successful in 3s
All checks were successful
Deploy / Deploy to Production (push) Successful in 3s
This commit is contained in:
parent
c569fa0140
commit
0badd67b46
8 changed files with 99 additions and 63 deletions
|
|
@ -27,9 +27,9 @@ allProjects.forEach((project) => {
|
|||
});
|
||||
});
|
||||
|
||||
const projectTogglers = document.querySelectorAll(".project-toggler");
|
||||
const toggleProjects = document.querySelectorAll(".project-toggler");
|
||||
|
||||
projectTogglers.forEach((button) => {
|
||||
toggleProjects.forEach((button) => {
|
||||
button.addEventListener("click", (event) => {
|
||||
const parentLi = button.closest("li");
|
||||
if (parentLi.classList.contains("selected")) {
|
||||
|
|
@ -41,9 +41,9 @@ projectTogglers.forEach((button) => {
|
|||
});
|
||||
});
|
||||
|
||||
const allProjectsCloser = document.querySelectorAll(".all-projects-closer");
|
||||
allProjectsCloser.forEach((projectCloser) => {
|
||||
projectCloser.addEventListener("click", () => {
|
||||
const closeAllProjects = document.querySelectorAll(".all-projects-closer");
|
||||
closeAllProjects.forEach((closeProject) => {
|
||||
closeProject.addEventListener("click", () => {
|
||||
window.location = "/index";
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue