Merge pull request #39 from tracietwitty/bugfix-drinkwater

This commit fixes a spelling error in the drink-water project
This commit is contained in:
Brad Traversy 2021-07-31 10:31:01 -04:00 committed by GitHub
commit da54cb3fc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
const smallCups = document.querySelectorAll('.cup-small') const smallCups = document.querySelectorAll('.cup-small')
const listers = document.getElementById('liters') const liters = 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'
listers.innerText = `${2 - (250 * fullCups / 1000)}L` liters.innerText = `${2 - (250 * fullCups / 1000)}L`
} }
} }