✨ feat(reservation): Affiche les produits 3-15 ans et trie les formules par position.
🎨 style(reserve.js): Change la couleur du texte du filtre actif en noir.
This commit is contained in:
@@ -220,8 +220,8 @@ const initCatalogueSearch = () => {
|
||||
btn.onclick = () => {
|
||||
const category = btn.dataset.filter.toLowerCase();
|
||||
let count = 0;
|
||||
filters.forEach(f => f.classList.remove('bg-slate-900', 'text-white'));
|
||||
btn.classList.add('bg-slate-900', 'text-white');
|
||||
filters.forEach(f => f.classList.remove('bg-slate-900', 'text-black'));
|
||||
btn.classList.add('bg-slate-900', 'text-black');
|
||||
|
||||
products.forEach(item => {
|
||||
const isVisible = category === 'all' || (item.dataset.category || '').toLowerCase().includes(category);
|
||||
@@ -273,7 +273,7 @@ document.addEventListener('turbo:load', () => {
|
||||
initMobileMenu();
|
||||
initRegisterLogic();
|
||||
initCatalogueSearch();
|
||||
|
||||
|
||||
// Initialize AOS
|
||||
AOS.init({
|
||||
duration: 800,
|
||||
|
||||
Reference in New Issue
Block a user