Skip to content

Commit

Permalink
Merge pull request bradtraversy#39 from tracietwitty/bugfix-drinkwater
Browse files Browse the repository at this point in the history
This commit fixes a spelling error in the drink-water project
  • Loading branch information
bradtraversy committed Jul 31, 2021
2 parents 0a17e89 + 3a85d75 commit da54cb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drink-water/script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const smallCups = document.querySelectorAll('.cup-small')
const listers = document.getElementById('liters')
const liters = document.getElementById('liters')
const percentage = document.getElementById('percentage')
const remained = document.getElementById('remained')

Expand Down Expand Up @@ -44,6 +44,6 @@ function updateBigCup() {
remained.style.height = 0
} else {
remained.style.visibility = 'visible'
listers.innerText = `${2 - (250 * fullCups / 1000)}L`
liters.innerText = `${2 - (250 * fullCups / 1000)}L`
}
}

0 comments on commit da54cb3

Please sign in to comment.