demarches-normaliennes/app/javascript/new_design/header.js

9 lines
224 B
JavaScript
Raw Normal View History

$(document).on('click', 'body', () => {
$('.header-menu').removeClass('open fade-in-down');
});
export function toggleHeaderMenu(event) {
event.stopPropagation();
$('.header-menu').toggleClass('open fade-in-down');
}