update web, moved radio statistics to live view (footer of inverter) as modal

This commit is contained in:
lumapu 2023-09-30 23:40:31 +02:00
parent ac0a4976d8
commit c3162fd2ed
4 changed files with 44 additions and 60 deletions

View file

@ -172,6 +172,15 @@ function getAjax(url, ptr, method="GET", json=null) {
* CREATE DOM FUNCTIONS
*/
function tr(val1, val2) {
if(typeof val2 == "number")
val2 = String(val2);
return ml("tr", {}, [
ml("th", {style: "width: 50%"}, val1),
ml("td", {}, val2)
]);
}
function des(val) {
e = document.createElement('p');
e.classList.add("subdes");