better background and wide screen for hazard displays

This commit is contained in:
Matt Walsh
2025-09-09 21:35:31 -05:00
parent bfc4bddfef
commit 8ee1e954eb
9 changed files with 44 additions and 10 deletions

View File

@@ -97,6 +97,12 @@ const drawScreen = async () => {
if (elem.parentElement.id === 'progress-html') return;
thisScreen?.classes?.forEach((cls) => elem.classList.add(cls));
});
// special case for red background on hazard scroll
const mainScrollBg = document.getElementById('scroll-bg');
mainScrollBg.className = '';
if (thisScreen?.classes?.includes('hazard')) {
mainScrollBg.classList.add('hazard');
}
if (typeof thisScreen === 'string') {
// only a string