Browse Source

fix total info

pull/1541/head
geronet1 9 months ago
parent
commit
9857c4e5a6
  1. 7
      src/web/html/index.html

7
src/web/html/index.html

@ -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"]));
}
}

Loading…
Cancel
Save