Index > Fix vidéos non prise en charges dans le slider
All checks were successful
Deploy / Deploy to Production (push) Successful in 5s
All checks were successful
Deploy / Deploy to Production (push) Successful in 5s
This commit is contained in:
parent
c92e492fbc
commit
9a615bd92d
7 changed files with 97 additions and 81 deletions
|
|
@ -22,9 +22,11 @@ allProjects.forEach((currentProject) => {
|
|||
});
|
||||
|
||||
currentProject
|
||||
.querySelectorAll("picture")
|
||||
.forEach((picture) => picture.classList.remove("active"));
|
||||
currentProject.querySelector("picture:first-child").classList.add("active");
|
||||
.querySelectorAll(".project-slideshow > .slide")
|
||||
.forEach((slide) => slide.classList.remove("active"));
|
||||
currentProject
|
||||
.querySelector(".project-slideshow > .slide")
|
||||
.classList.add("active");
|
||||
currentProject.classList.toggle("selected");
|
||||
|
||||
Router.setParam("project", currentProject.dataset.slug);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue