Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- /*
- ** Toggle's body class
- ** change the CSS accordingly: body.menu-visible for a visible menu - body.menu-hidden for a hidden menu
- */
- function toggleMenu() {
- // Change the body class
- $('body').toggleClass('menu-visible menu-hidden');
- }
- // Bind click event to the hamburger button
- $('body').on('click', '.toggle-menu', toggleMenu);
- });
Add Comment
Please, Sign In to add comment