demarches-normaliennes/app/javascript/new_design/header.js
2018-08-13 15:17:13 +02:00

10 lines
249 B
JavaScript

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