Upload files to "/"
This commit is contained in:
parent
55bb7c37ba
commit
5e9f7a363d
22
index.html
22
index.html
|
|
@ -1250,10 +1250,9 @@
|
|||
bottom: 0;
|
||||
}
|
||||
|
||||
/* --- NEW: Hide brackets completely on mobile --- */
|
||||
.map-brackets {
|
||||
left: 145px;
|
||||
right: 145px;
|
||||
bottom: 20px;
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* 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!
|
||||
Gamestate.init();
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue