mirror of
https://github.com/quentin-g-dev/afup.git
synced 2026-03-25 01:32:08 +01:00
17 lines
318 B
JavaScript
17 lines
318 B
JavaScript
$(document).ready(function() {
|
|
var $secondaryMenu = $('.secondary-menu__current-item');
|
|
|
|
if (!$secondaryMenu) {
|
|
return;
|
|
}
|
|
|
|
var $list = $secondaryMenu.next();
|
|
$list.addClass('hidden');
|
|
|
|
$secondaryMenu.on('click', function(event) {
|
|
event.preventDefault();
|
|
|
|
$list.toggleClass('hidden');
|
|
});
|
|
});
|