Skip to content

Commit

Permalink
fullscreen_error_toggle_esc_button (#3390)
Browse files Browse the repository at this point in the history
  • Loading branch information
khadar1020 authored Dec 3, 2023
1 parent b406a00 commit 6f5ceda
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 6f5ceda

Please sign in to comment.