function mobileMenu(e) {
      if (!e.currentTarget.classList.contains(activeClass)) {
        e.currentTarget.classList.add(activeClass);
        e.currentTarget.setAttribute('aria-expanded', 'true');
        mainNav.classList.add(activeClass);
        document.body.classList.add('has-mobile-menu-open');
      } else {
        e.currentTarget.classList.remove(activeClass);
        e.currentTarget.setAttribute('aria-expanded', 'false');
        mainNav.classList.remove(activeClass);
        document.body.classList.remove('has-mobile-menu-open');
      }
    }
/**
     * Toggling mobile menu with hamburger icon
     * @param {object} e The Event object.
     */
Toggling mobile menu with hamburger icon
@param {object} e The Event object.
Toggling mobile menu with hamburger icon @param { object } e The Event object .
function mobileMenu(e) {
      if (!e.currentTarget.classList.contains(activeClass)) {
        e.currentTarget.classList.add(activeClass);
        e.currentTarget.setAttribute('aria-expanded', 'true');
        mainNav.classList.add(activeClass);
        document.body.classList.add('has-mobile-menu-open');
      } else {
        e.currentTarget.classList.remove(activeClass);
        e.currentTarget.setAttribute('aria-expanded', 'false');
        mainNav.classList.remove(activeClass);
        document.body.classList.remove('has-mobile-menu-open');
      }
    }
function mobileMenu ( e ) { if ( ! e . currentTarget . classList . contains ( activeClass ) ) { e . currentTarget . classList . add ( activeClass ) ; e . currentTarget . setAttribute ( 'aria-expanded' , 'true' ) ; mainNav . classList . add ( activeClass ) ; document . body . classList . add ( 'has-mobile-menu-open' ) ; } else { e . currentTarget . classList . remove ( activeClass ) ; e . currentTarget . setAttribute ( 'aria-expanded' , 'false' ) ; mainNav . classList . remove ( activeClass ) ; document . body . classList . remove ( 'has-mobile-menu-open' ) ; } }
Toggling mobile menu with hamburger icon
 @param {object} e The Event object.
Toggling mobile menu with hamburger icon @param { object } e The Event object .