further improvements to the flow, allow multiple js bundles, add more documentation

This commit is contained in:
Lukas Juhas 2017-11-30 13:31:38 +00:00
parent 5feb3a199c
commit 8357cef6b4
5 changed files with 52 additions and 25 deletions

13
assets/js/scripts.js Normal file
View file

@ -0,0 +1,13 @@
import $ from 'jquery';
/**
* Mobile navigation toggle
* @param {mixed} event
*/
const toggleMenu = (event) => {
event.preventDefault();
$('.js-menu-toggle, .nav--header').toggleClass('open');
$('.header').toggleClass('menu-open');
};
$('.js-menu-toggle').on('click', toggleMenu);