Spaces:
Sleeping
Sleeping
Update online.html
Browse files- online.html +19 -1
online.html
CHANGED
|
@@ -793,6 +793,24 @@ function updateRSl(value) {
|
|
| 793 |
}
|
| 794 |
}
|
| 795 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 796 |
|
| 797 |
|
| 798 |
|
|
@@ -817,7 +835,7 @@ function updateRSl(value) {
|
|
| 817 |
updateRPH(data.rPH);
|
| 818 |
updateREC(data.rEC);
|
| 819 |
updateRSl(data.rSl);
|
| 820 |
-
|
| 821 |
document.getElementById("alW").textContent = data.alW;
|
| 822 |
|
| 823 |
updateDataHistory(data);
|
|
|
|
| 793 |
}
|
| 794 |
}
|
| 795 |
|
| 796 |
+
function updateRLe(value) {
|
| 797 |
+
const elem = document.getElementById("rLe");
|
| 798 |
+
switch (value) {
|
| 799 |
+
case "1":
|
| 800 |
+
elem.textContent = "小袪袝袛袧袠袡.";
|
| 801 |
+
elem.style.color = "orange";
|
| 802 |
+
break;
|
| 803 |
+
case "2":
|
| 804 |
+
elem.textContent = "袙蝎小袨袣袠袡.";
|
| 805 |
+
elem.style.color = "green";
|
| 806 |
+
break;
|
| 807 |
+
case "0":
|
| 808 |
+
default:
|
| 809 |
+
elem.textContent = "袧袠袟袣袠袡.";
|
| 810 |
+
elem.style.color = "red";
|
| 811 |
+
break;
|
| 812 |
+
}
|
| 813 |
+
}
|
| 814 |
|
| 815 |
|
| 816 |
|
|
|
|
| 835 |
updateRPH(data.rPH);
|
| 836 |
updateREC(data.rEC);
|
| 837 |
updateRSl(data.rSl);
|
| 838 |
+
updateRLe(data.rLe);
|
| 839 |
document.getElementById("alW").textContent = data.alW;
|
| 840 |
|
| 841 |
updateDataHistory(data);
|