const exitBtn = document.getElementById('exit-btn'); exitBtn.addEventListener('click', ()=>{ if (document.fullscreenElement) { document.exitFullscreen(); } });