<repo_name>tomasmparra/GaeaPeople-iMagazine<file_sep>/js/headerScript.js
const menuIcon1 = document.getElementById('menuIconWrapper1');
const slideOutMenu11 = document.getElementById('slideOutMenu1');

menuIcon1.addEventListener('click', function() {
  if (slideOutMenu11.style.opacity == "1"){
    slideOutMenu11.style.opacity = '0' ;
    slideOutMenu11.style.pointerEvents = 'none';
  } else {
    slideOutMenu11.style.opacity = '1' ;
    slideOutMenu11.style.pointerEvents = 'auto';
  }
})

const menuIcon2 = document.getElementById('menuIconWrapper2');
const slideOutMenu22 = document.getElementById('slideOutMenu2');

menuIcon2.addEventListener('click', function() {
  if (slideOutMenu22.style.opacity == "1") {
    slideOutMenu22.style.opacity = '0' ;
    slideOutMenu22.style.pointerEvents = 'none';
  }else {
    slideOutMenu22.style.opacity = '1' ;
    slideOutMenu22.style.pointerEvents = 'auto';
  }
})
