Refactor code structure and remove redundant changes

This commit is contained in:
Marek Lesko
2025-08-05 11:50:31 +02:00
parent 0019c5c601
commit b34826f9bf
374 changed files with 49565 additions and 0 deletions

19
prod/assets/js/service.js Normal file
View File

@@ -0,0 +1,19 @@
const service = () => {
const serviceCards = document.querySelectorAll(".service-cards");
if (serviceCards?.length) {
serviceCards.forEach((serviceCardsSingle) => {
const allServiceCards =
serviceCardsSingle.querySelectorAll(".service-card");
allServiceCards.forEach((serviceCard, idx) => {
serviceCard.addEventListener("mouseenter", function () {
allServiceCards.forEach((serviceCard) => {
serviceCard.classList.remove("active");
});
this.classList.add("active");
});
});
});
}
};