From 2bc41408d7d012ca26140b99fc3f36b7908ddf9f Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 2 Aug 2019 16:06:54 +0200 Subject: [PATCH] more fancy web stuff --- src/custom.htm | 17 +++++++---------- src/custom.js | 8 ++------ src/websrc/myesp.htm | 6 +++--- 3 files changed, 12 insertions(+), 19 deletions(-) diff --git a/src/custom.htm b/src/custom.htm index 4ad1215c0..1caa74265 100644 --- a/src/custom.htm +++ b/src/custom.htm @@ -165,7 +165,11 @@

Dashboard

-

Real-time values from the EMS-ESP device are shown here.

+

Real-time values from the EMS-ESP device are shown here. +

+ +
+

@@ -173,7 +177,7 @@ EMS Bus stats -

+ @@ -207,7 +211,7 @@
-
+
Thermostat
@@ -228,12 +232,5 @@ -
-
-
-
- -
-
\ No newline at end of file diff --git a/src/custom.js b/src/custom.js index 0d76f10e6..4fb6dde56 100644 --- a/src/custom.js +++ b/src/custom.js @@ -82,9 +82,9 @@ function savecustom() { function listCustomStats() { document.getElementById("msg").innerHTML = ajaxobj.emsbus.msg; if (ajaxobj.emsbus.ok) { - document.getElementById("msg").className = "label label-success"; + document.getElementById("msg").className = "alert alert-success"; } else { - document.getElementById("msg").className = "label label-danger"; + document.getElementById("msg").className = "alert alert-danger"; document.getElementById("thermostat_show").style.display = "none"; document.getElementById("boiler_show").style.display = "none"; return; @@ -98,11 +98,7 @@ function listCustomStats() { if (type == 1) { var color = "info"; } else if (type == 2) { - var color = "success"; - } else if (type == 3) { var color = "warning"; - } else if (type == 4) { - var color = "danger"; } else { var color = ""; } diff --git a/src/websrc/myesp.htm b/src/websrc/myesp.htm index 458f5523e..82bb29ed8 100644 --- a/src/websrc/myesp.htm +++ b/src/websrc/myesp.htm @@ -64,7 +64,7 @@
-

Please wait about 10 seconds while the system restarts...

+

Please wait a few seconds while the system restarts...

@@ -105,9 +105,9 @@
- + data-content="Please choose if you want to enable Serial port for debugging">