mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-26 20:57:13 +02:00
update web, moved radio statistics to live view (footer of inverter) as modal
This commit is contained in:
parent
ac0a4976d8
commit
c3162fd2ed
4 changed files with 44 additions and 60 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue