Skip to content

Commit

Permalink
fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
khadar1020 committed Dec 3, 2023
1 parent 1188336 commit 1845325
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,16 @@
count = 0;
}
}
document.addEventListener('fullscreenchange', handleFullscreenChange);
document.addEventListener('webkitfullscreenchange', handleFullscreenChange);
document.addEventListener('mozfullscreenchange', handleFullscreenChange);
document.addEventListener('MSFullscreenChange', handleFullscreenChange);

function handleFullscreenChange() {
var iconCode = document.querySelector('#FullScrIcon');
count = document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement ? 1 : 0;
iconCode.textContent = count ? '\ue5d1' : '\ue5d0';
}
</script>
</div>
</div>
Expand Down

0 comments on commit 1845325

Please sign in to comment.