ems = document.querySelectorAll(".nav__item");                     
    for (var i = 0; i < navItems.length; i++) {
      navItems[i].addEventListener('click', function (event) {
        toggleNav();
      });
    }
})();


//non related
(stickyNav => {
  const button = document.querySelector('button');
  const onOffHTML = document.querySelector('.sticky-on-off');
  const on = '<strong>On</strong>';
  const off = '<strong>Off</strong>';
  const navWrapper = document.querySelector('.nav-wrapper');
  
  butto