drive clock: Avoid using "sky" tag ids as uBO blocks them

pull/484/head
Mike Lang 2 weeks ago
parent c54ed3455c
commit 61d6df5d1f

@ -19,11 +19,11 @@
background-position: 0px 0px; background-position: 0px 0px;
} }
#sky-left { #timeofday-left {
z-index: 5; z-index: 5;
} }
#sky-right { #timeofday-right {
z-index: 4; z-index: 4;
} }
@ -43,8 +43,8 @@
<div id="road-container"> <div id="road-container">
<div id="bus"></div> <div id="bus"></div>
<div id="sky-left"></div> <div id="timeofday-left"></div>
<div id="sky-right"></div> <div id="timeofday-right"></div>
<div id="stops"></div> <div id="stops"></div>
</div> </div>

@ -21,8 +21,8 @@ const BUS_URLS = {
}; };
function setSkyElements(left, right, timeToTransition) { function setSkyElements(left, right, timeToTransition) {
const leftElement = document.getElementById("sky-left"); const leftElement = document.getElementById("timeofday-left");
const rightElement = document.getElementById("sky-right"); const rightElement = document.getElementById("timeofday-right");
const busElement = document.getElementById("bus"); const busElement = document.getElementById("bus");
leftElement.style.backgroundImage = `url(${SKY_URLS[left]})`; leftElement.style.backgroundImage = `url(${SKY_URLS[left]})`;

Loading…
Cancel
Save