diff --git a/index.h b/index.h index 5c475e4..dd0f413 100644 --- a/index.h +++ b/index.h @@ -9,10 +9,11 @@ const char MAIN_page[] PROGMEM = R"=====( .box{ max-width: 500px; min-width: 250px; - min-height: 200px; + min-height: 300px; background: #009879; padding: 30px; box-sizing: border-box; + vertical-align: top; color: #FFF; margin:20px; box-shadow: 0px 2px 18px -4px rgba(0,0,0,0.75); @@ -43,23 +44,17 @@ const char MAIN_page[] PROGMEM = R"=====(

FWD Power

-

0 dBm / 0 mV

+

0 W
0 dBm
0 mV

REF Power

-

0 dBm / 0 mV

+

0 W
0 dBm
0 mV

SWR

-

0

-
- -
-

Temperature

-

0

-
+

1:1.0

@@ -75,14 +70,16 @@ function getDATA() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { - const data = this.responseText.split(","); - document.getElementById("FWDPower").innerHTML = data[0]; - document.getElementById("FWDVoltage").innerHTML = data[1]; - document.getElementById("REFPower").innerHTML = data[2]; - document.getElementById("REFVoltage").innerHTML = data[3]; - document.getElementById("SWRValue").innerHTML = data[4]; - document.getElementById("TEMPValue").innerHTML = data[5]; - document.getElementById("BANDValue").innerHTML = data[6]; + const data = this.responseText.split(";"); + document.getElementById("FWDWatt").innerHTML = data[0]; + document.getElementById("FWDdBm").innerHTML = data[1]; + document.getElementById("FWDVoltage").innerHTML = data[2]; + document.getElementById("REFWatt").innerHTML = data[3]; + document.getElementById("REFdBm").innerHTML = data[4]; + document.getElementById("REFVoltage").innerHTML = data[5]; + document.getElementById("SWRValue").innerHTML = data[6]; + //document.getElementById("TEMPValue").innerHTML = data[7]; + document.getElementById("BANDValue").innerHTML = data[7]; if (parseInt(data[0]) > 4) { document.getElementById("fwd_box").className = "box redbox"; } else {