uawdijnntqw1x1x1
IP : 216.73.216.84
Hostname : webm003.cluster107.gra.hosting.ovh.net
Kernel : Linux webm003.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
opticamezl
/
.
/
www
/
newok
/
media
/
com_categories
/
js
/
shared-categories-accordion.js
/
/
/** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ if (!Joomla || !Joomla.Text) { throw new Error('core.js was not properly initialised'); } // Selectors used by this script const buttonsSelector = '[id^=category-btn-]'; /** * Handle the category toggle button click event * @param event */ const handleCategoryToggleButtonClick = ({ currentTarget }) => { const button = currentTarget; const icon = button.querySelector('span'); // Toggle icon class icon.classList.toggle('icon-plus'); icon.classList.toggle('icon-minus'); // Toggle aria label, aria-expanded const ariaLabel = button.getAttribute('aria-label'); const ariaExpanded = button.getAttribute('aria-expanded'); button.setAttribute('aria-label', ariaLabel === Joomla.Text._('JGLOBAL_EXPAND_CATEGORIES') ? Joomla.Text._('JGLOBAL_COLLAPSE_CATEGORIES') : Joomla.Text._('JGLOBAL_EXPAND_CATEGORIES')); button.setAttribute('aria-expanded', ariaExpanded === 'false' ? 'true' : 'false'); const { categoryId } = button.dataset; const target = document.getElementById(`category-${categoryId}`); target.toggleAttribute('hidden'); }; Array.from(document.querySelectorAll(buttonsSelector)).forEach(button => { button.addEventListener('click', handleCategoryToggleButtonClick); });
/home/opticamezl/./www/newok/media/com_categories/js/shared-categories-accordion.js