diff --git a/Vue/Accueil/index.php b/Vue/Accueil/index.php index 58069a8..6ae68b0 100644 --- a/Vue/Accueil/index.php +++ b/Vue/Accueil/index.php @@ -67,20 +67,28 @@
-
+
-

- - - +

+

-
+
@@ -88,18 +96,25 @@
-

- - - - +

+

-
+
@@ -131,10 +146,9 @@ if (fnName && typeof window[fnName] === 'function') { window[fnName](); } - // Changer l’icône en chevron-up - const header = document.querySelector('[data-bs-target="#' + this.id + '"] .accordion-icon'); - if (header) header.classList.replace('bi-chevron-down', 'bi-chevron-up'); + const headerBtn = document.querySelector('[data-bs-target="#' + this.id + '"] .accordion-icon'); + if (headerBtn) headerBtn.classList.replace('bi-chevron-down', 'bi-chevron-up'); }); // Quand une section se ferme @@ -143,10 +157,9 @@ if (fnName && typeof window[fnName] === 'function') { window[fnName](); } - // Remettre l’icône en chevron-down - const header = document.querySelector('[data-bs-target="#' + this.id + '"] .accordion-icon'); - if (header) header.classList.replace('bi-chevron-up', 'bi-chevron-down'); + const headerBtn = document.querySelector('[data-bs-target="#' + this.id + '"] .accordion-icon'); + if (headerBtn) headerBtn.classList.replace('bi-chevron-up', 'bi-chevron-down'); }); }); });