Added onclick functionality for menu items

This commit is contained in:
2025-07-05 18:32:26 +02:00
parent 2f63009c31
commit 20b6c731b8
4 changed files with 104 additions and 34 deletions

View File

@@ -42,8 +42,11 @@ function exitFullscreen() {
* Toggle between enter and exit fullscreen.
*/
function toggleFullscreen() {
if (document.fullscreenElement) exitFullscreen();
else enterFullscreen();
const params = new URLSearchParams(window.location.search);
const isFull = params.get('fullscreen') === '1';
if (isFull) exitFullscreen();
else enterFullscreen();
}
/**