mirror of
https://github.com/kevinveenbirkenbach/homepage.veen.world.git
synced 2025-09-11 03:47:11 +02:00
Added onclick functionality for menu items
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user