Some small improvements
This commit is contained in:
@@ -36,7 +36,7 @@ if (!window.isSecureContext) {
|
||||
<div class="row">
|
||||
<span class="label">Firmware</span>
|
||||
<span class="value" id="version">---</span>
|
||||
<button class="infoButton" id="converterInfo">?</button>
|
||||
<button class="infoButton" id="firmwareInfo">?</button>
|
||||
</div>
|
||||
<div class="row even">
|
||||
<span class="label">MCU-ID</span>
|
||||
|
||||
14
web/index.js
14
web/index.js
@@ -1085,14 +1085,12 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
buttonHandlers.converterInfo=function() {
|
||||
getJson("api/converterInfo").then(function (json) {
|
||||
let text = "<h3>Converted entities</h3>";
|
||||
text += "<p><b>NMEA0183 to NMEA2000:</b><br/>";
|
||||
text += " " + (json.nmea0183 || "").replace(/,/g, ", ");
|
||||
text += "</p>";
|
||||
text += "<p><b>NMEA2000 to NMEA0183:</b><br/>";
|
||||
text += " " + (json.nmea2000 || "").replace(/,/g, ", ");
|
||||
buttonHandlers.firmwareInfo=function() {
|
||||
getJson("api/fwinfo").then(function (json) {
|
||||
let text = "<h3>Firmware details</h3>";
|
||||
text += "<p><b>Version:</b> " + json.version + "</p>";
|
||||
text += "<p><b>Build date:</b> " + json.build_date + "</p>";
|
||||
text += "<p><b>Build time:</b> " + json.build_time + "</p>";
|
||||
text += "</p>";
|
||||
showOverlay(text, true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user