1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

feat: display setup instructions on startup (resolve #120)

This commit is contained in:
Ferdinand Mütsch
2021-02-12 10:10:44 +01:00
parent e4c413a33c
commit 218c571859
9 changed files with 88 additions and 34 deletions

View File

@ -317,8 +317,10 @@ function equalizeHeights() {
}
function getTotal(items) {
const el = document.getElementById('total-span')
if (!el) return
let total = items.reduce((acc, d) => acc + d.total, 0)
document.getElementById('total-span').innerText = total.toString().toHHMMSS()
el.innerText = total.toString().toHHMMSS()
}
function getRandomColor(seed) {