|
|
@ -11,7 +11,7 @@ smallCups.forEach((cup, idx) => {
|
|
|
|
|
|
|
|
|
|
|
|
function highlightCups(idx) {
|
|
|
|
function highlightCups(idx) {
|
|
|
|
if (idx===7 && smallCups[idx].classList.contains("full")) idx--;
|
|
|
|
if (idx===7 && smallCups[idx].classList.contains("full")) idx--;
|
|
|
|
if(smallCups[idx].classList.contains('full') && !smallCups[idx].nextElementSibling.classList.contains('full')) {
|
|
|
|
else if(smallCups[idx].classList.contains('full') && !smallCups[idx].nextElementSibling.classList.contains('full')) {
|
|
|
|
idx--
|
|
|
|
idx--
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -46,4 +46,4 @@ function updateBigCup() {
|
|
|
|
remained.style.visibility = 'visible'
|
|
|
|
remained.style.visibility = 'visible'
|
|
|
|
listers.innerText = `${2 - (250 * fullCups / 1000)}L`
|
|
|
|
listers.innerText = `${2 - (250 * fullCups / 1000)}L`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|