Upload files to "/"

This commit is contained in:
threememories 2026-05-07 20:51:48 +00:00
parent 55bb7c37ba
commit 5e9f7a363d
1 changed files with 19 additions and 3 deletions

View File

@ -1250,10 +1250,9 @@
bottom: 0; bottom: 0;
} }
/* --- NEW: Hide brackets completely on mobile --- */
.map-brackets { .map-brackets {
left: 145px; display: none !important;
right: 145px;
bottom: 20px;
} }
/* Force bottom buttons to stay scrollable but anchored to bottom */ /* Force bottom buttons to stay scrollable but anchored to bottom */
@ -13589,6 +13588,23 @@ document.getElementById('help-os-screen').addEventListener('click', function(e)
}); });
} }
// --- NEW: AUTO-RESUME FULL SCREEN ON MOBILE TAP ---
document.body.addEventListener('click', () => {
// Check if it's a mobile screen in landscape
if (window.innerWidth <= 950 && window.innerWidth > window.innerHeight) {
let startModal = document.getElementById('start-modal');
// Only trigger if the game has actually started (modal is hidden)
if (startModal && startModal.style.display === 'none') {
// Check if we accidentally dropped out of full screen
if (!document.fullscreenElement && !document.webkitFullscreenElement) {
let elem = document.documentElement;
if (elem.requestFullscreen) { elem.requestFullscreen().catch(e => {}); }
else if (elem.webkitRequestFullscreen) { elem.webkitRequestFullscreen().catch(e => {}); }
}
}
}
});
// Then boot the game! // Then boot the game!
Gamestate.init(); Gamestate.init();
</script> </script>