Level: 0
Score: 0
00:00
00:00.000
HURRY UP!
||
Select Mode
High Scores
Settings
Theme Creator
My Themes:
Select Theme
Game Over!
Score: 0
Level: 0
Max Combo: 0
Time: 00:00
High Scores (Current Mode)
// --- Mobile Viewport Height Fix --- function setGameContainerHeight() { const gameContainer = document.getElementById('game-container'); if (gameContainer) { // Use window.innerHeight for the actual available height gameContainer.style.height = `${window.innerHeight}px`; console.log(`Set container height to: ${window.innerHeight}px`); // For debugging } // Also call resizeCanvas to ensure canvas adjusts if needed resizeCanvas(); } // Set height initially on load window.addEventListener('load', setGameContainerHeight); // Adjust height on resize or orientation change window.addEventListener('resize', setGameContainerHeight); window.addEventListener('orientationchange', setGameContainerHeight); // --- End Mobile Viewport Height Fix --- // <-- Make sure this is above the existing closing tag if you add it inside