|
|
@ -156,9 +156,10 @@ |
|
|
|
document.getElementById("iv").replaceChildren(p); |
|
|
|
|
|
|
|
if (count > 1) { |
|
|
|
p.append(svg(iconInfo, 30, 30, "icon icon-info"), span("Total: " + total + " W"), br()); |
|
|
|
document.getElementById("total").replaceChildren(p); |
|
|
|
document.getElementById("total").appendChild(div(["class=\"hr\""])); |
|
|
|
var t = div(["none"]); |
|
|
|
t.append(svg(iconInfo, 30, 30, "icon icon-info"), span("Total: " + Math.round(total).toLocaleString() + " W"), br()); |
|
|
|
document.getElementById("total").replaceChildren(t); |
|
|
|
document.getElementById("total").appendChild(div(["hr"])); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|