correct typo, add script for toggle menu, remove forgotten console log
This commit is contained in:
parent
a5988e146a
commit
cd05907c04
|
@ -73,7 +73,7 @@ This will execute all the Gulp tasks on the gulpfile.babel.js.
|
|||
|
||||
### Images
|
||||
|
||||
Drop all your images into assets/imagess. When running gulp tasks, they will be automatically
|
||||
Drop all your images into assets/images. When running gulp tasks, they will be automatically
|
||||
optimised and output files will available in img folder in the root of the theme.
|
||||
|
||||
## WordPress Support
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
console.log($);
|
||||
/**
|
||||
* 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…
Reference in New Issue