Update online.html
Browse files- online.html +15 -1
online.html
CHANGED
@@ -812,6 +812,20 @@ function updateRLe(value) {
|
|
812 |
}
|
813 |
}
|
814 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
815 |
|
816 |
|
817 |
|
@@ -836,7 +850,7 @@ function updateRLe(value) {
|
|
836 |
updateREC(data.rEC);
|
837 |
updateRSl(data.rSl);
|
838 |
updateRLe(data.rLe);
|
839 |
-
|
840 |
|
841 |
updateDataHistory(data);
|
842 |
updateChart();
|
|
|
812 |
}
|
813 |
}
|
814 |
|
815 |
+
function updateAlW(value) {
|
816 |
+
const elem = document.getElementById("alW");
|
817 |
+
switch (value) {
|
818 |
+
case "1":
|
819 |
+
elem.textContent = "АВАРИЯ.";
|
820 |
+
elem.style.color = "red";
|
821 |
+
break;
|
822 |
+
case "0":
|
823 |
+
default:
|
824 |
+
elem.textContent = "НОРМА.";
|
825 |
+
elem.style.color = "green";
|
826 |
+
break;
|
827 |
+
}
|
828 |
+
}
|
829 |
|
830 |
|
831 |
|
|
|
850 |
updateREC(data.rEC);
|
851 |
updateRSl(data.rSl);
|
852 |
updateRLe(data.rLe);
|
853 |
+
updateRlW(data.alW);
|
854 |
|
855 |
updateDataHistory(data);
|
856 |
updateChart();
|