SW Quality Lead

Apply for this position

Allowed Type(s): .pdf, .doc, .docx
document.addEventListener('click', function(event) { const menu = document.querySelector('.et_pb_fullscreen_menu'); // Divi's full screen menu const closeButton = document.querySelector('.et_close_fullscreen_menu'); // Close button if (menu && menu.classList.contains('et_pb_fullscreen_menu--open')) { // Check if the click is outside the menu if (!menu.contains(event.target) && !closeButton.contains(event.target)) { closeButton.click(); // Close the menu } } });