Alright, fellow retro gaming enthusiasts, I've heard you loud and clear! The bottom bar in LemonWeb's ported DOS games was annoying—those were your words, not mine (okay, maybe mine too).
So, I did what any good developer would do: I fixed it!
What's New?
All DOS games in LemonWeb now have an auto-hide bottom bar. That means you can enjoy full-screen nostalgia without an intrusive bar ruining the immersion. The bar will automatically disappear after 5 seconds of inactivity, but don't worry—you can bring it back with a simple click.
Here's the magic behind it:
document.addEventListener("DOMContentLoaded", function () {
const overlayBar = document.getElementById('bottom-div');
const menuButton = document.getElementById('menu-button');
if (!overlayBar || !menuButton) {
console.error("Error: Could not find overlayBar or menuButton");
return;
}
function startAutoHide() {
return setTimeout(() => {
overlayBar.classList.add('hidden');
menuButton.style.display = 'block';
}, 5000);
}
let autoHideTimeout = startAutoHide();
menuButton.addEventListener('click', function () {
overlayBar.classList.remove('hidden');
menuButton.style.display = 'none';
clearTimeout(autoHideTimeout);
autoHideTimeout = startAutoHide();
});
});
How It Works
1. The bar hides automatically after 5 seconds of inactivity.
2. A small button remains visible so you can bring it back when needed.
3. Clicking the button restores the bar and resets the auto-hide timer.
It's a simple, yet effective way to declutter the screen while still keeping the menu accessible.
Thanks for the Feedback!
This update was entirely inspired by your feedback. You play, you comment, and I tweak—that's how we make LemonWeb's DOS gaming better together!
Go ahead, fire up your favorite classic, and enjoy the truly fullscreen experience you deserve. And if you have any more suggestions (or just want to complain about another feature), you know where to find me.
Comments