design/public/assets/js/toggleCategories.js

4 lines
240 B
JavaScript
Raw Permalink Normal View History

2024-11-06 10:31:56 +00:00
document.getElementById('categoriesViewTrigger').addEventListener('click', function() {
const listingGrid = document.querySelector('.listingGridSecSide');
listingGrid.classList.toggle('listingGridSecSideActive');
});