further improvements to the flow, allow multiple js bundles, add more documentation
This commit is contained in:
parent
5feb3a199c
commit
8357cef6b4
5 changed files with 52 additions and 25 deletions
13
assets/js/scripts.js
Normal file
13
assets/js/scripts.js
Normal 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);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue