@ -1,5 +1,5 @@
const smallCups = document . querySelectorAll ( '.cup-small' )
const smallCups = document . querySelectorAll ( '.cup-small' )
const li s ters = document . getElementById ( 'liters' )
const li ters = document . getElementById ( 'liters' )
const percentage = document . getElementById ( 'percentage' )
const percentage = document . getElementById ( 'percentage' )
const remained = document . getElementById ( 'remained' )
const remained = document . getElementById ( 'remained' )
@ -44,6 +44,6 @@ function updateBigCup() {
remained . style . height = 0
remained . style . height = 0
} else {
} else {
remained . style . visibility = 'visible'
remained . style . visibility = 'visible'
li s ters. innerText = ` ${ 2 - ( 250 * fullCups / 1000 ) } L `
li ters. innerText = ` ${ 2 - ( 250 * fullCups / 1000 ) } L `
}
}
}
}