Blogs

Explore the latest trends and technologies with Karnex, driving the future of automotive software solutions.

Driving Innovation: The Karnex Blog

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 } } });