diff --git a/script.js b/script.js index 6cc93ee..e263e28 100644 --- a/script.js +++ b/script.js @@ -1,4 +1,4 @@ -document.body.addEventListener("click", () => { +document.getElementById("screen").addEventListener("click", () => { if (document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement) { document.exitFullscreen(); document.getElementById("screen").innerHTML = "Enable Fullscreen";