some small changes

This commit is contained in:
Marcel Peterkau 2024-01-30 22:05:50 +01:00
parent b723a80d46
commit 059b693889
3 changed files with 5 additions and 3 deletions

View File

@ -441,7 +441,7 @@
<label for="wifi-pass" class="control-label col-4">WiFi Passwort</label> <label for="wifi-pass" class="control-label col-4">WiFi Passwort</label>
<div class="col-8"> <div class="col-8">
<div class="input-group" id="show_hide_password"> <div class="input-group" id="show_hide_password">
<input id="wifi-pass" type="password" minlength="8" maxlength="63" class="set-wsevent data-pulserev form-control"> <input id="wifi-pass" type="password" minlength="8" maxlength="63" class="set-wsevent data-wifi-pass form-control">
<div class="input-group-addon"> <div class="input-group-addon">
<a href=""><i class="fa fa-eye-slash" aria-hidden="true"></i></a> <a href=""><i class="fa fa-eye-slash" aria-hidden="true"></i></a>
</div> </div>
@ -454,7 +454,7 @@
<div class="form-check"> <div class="form-check">
<input class="set-wsevent data-wifi-conavailable form-check-input" type="checkbox" id="wifi-conavailable"> <input class="set-wsevent data-wifi-conavailable form-check-input" type="checkbox" id="wifi-conavailable">
<label class="form-check-label" for="wifi-conavailable"> <label class="form-check-label" for="wifi-conavailable">
LED blinken verbinden wenn verfügbar
</label> </label>
</div> </div>
</div> </div>

View File

@ -91,6 +91,7 @@ function onMessage(event) {
} else if (data.startsWith("MAPPING_STATIC:")) { } else if (data.startsWith("MAPPING_STATIC:")) {
const data_sliced = data.slice(15); const data_sliced = data.slice(15);
staticMapping = createMapping(data_sliced); staticMapping = createMapping(data_sliced);
console.log(staticMapping);
} else if (data.startsWith("STATUS:")) { } else if (data.startsWith("STATUS:")) {
const data_sliced = data.slice(7); const data_sliced = data.slice(7);
const result = processDataString(data_sliced, statusMapping); const result = processDataString(data_sliced, statusMapping);
@ -99,6 +100,7 @@ function onMessage(event) {
const data_sliced = data.slice(7); const data_sliced = data.slice(7);
const result = processDataString(data_sliced, staticMapping); const result = processDataString(data_sliced, staticMapping);
fillValuesToHTML(result); fillValuesToHTML(result);
console.log(result);
overlay.style.display = "none"; overlay.style.display = "none";
} }
} }

View File

@ -718,7 +718,7 @@ void Websocket_RefreshClientData_Static(uint32_t client_id, bool send_mapping)
"showcan;" "showcan;"
"bleedingpulses;" "bleedingpulses;"
"wifi-ssid;" "wifi-ssid;"
"wifi-password;"; "wifi-pass;";
if (client_id > 0) if (client_id > 0)
webSocket.text(client_id, mapping); webSocket.text(client_id, mapping);