diff --git a/esp32_air_pump/data/index.html b/esp32_air_pump/data/index.html index 7ccb11d..5d4c5f0 100644 --- a/esp32_air_pump/data/index.html +++ b/esp32_air_pump/data/index.html @@ -1,8 +1,16 @@ - + + + -Air Pump Control - - + Air Pump Control + + + + - + function checkNum(obj) { + if (isNaN(obj.value)) { //检查是否是非数字值 + obj.value = ""; + } + if (obj != null) { //检查小数点后是否对于两位 + if (obj.value.toString().split(".").length > 1 && obj.value.toString().split(".")[1].length > 2) { //alert("小数点后多于两位!"); + obj.value = Number(obj.value).toPrecision(2); + } + if (obj.value < 0) { + obj.value = 0 - obj.value; + } + if (obj.value > 6) { + obj.value = 6; + } + } + } + + function running_type5(obj) { + document.getElementById('running_type_html').innerHTML = running_type[obj]; + document.getElementById('running_type').value = obj; + if (obj != "5") { + document.getElementById('running_pressure_type').value = pressure_type[obj]; + } + } + + -
+
微型气泵状态监控 -
-

- - - - - - - - - +
-
-
气压:0Bar    电压:0V
-
+ +
+

+
+ + + + + + + + + - - - - - - - -
+ +
+
气压:0Bar    电压:0V
+
+ + +

+ + + - -
- - -

- - -
- - - - -
- - - -
-
+ + + + +
+ + + +
-   - 当前充气类型: -
- - - -
+
+ + + + +   + 当前充气类型: + + + + + + + + + + + \ No newline at end of file