From 2932b57aeabefc067d0c3319980dba2943910da5 Mon Sep 17 00:00:00 2001 From: Christian Herzog Date: Fri, 27 Sep 2019 22:47:07 +0200 Subject: [PATCH] show connection info in status bar --- components/wifi-manager/code.js | 2 ++ components/wifi-manager/index.html | 3 ++- components/wifi-manager/style.css | 11 +++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/components/wifi-manager/code.js b/components/wifi-manager/code.js index 2202674c..e2b8366a 100644 --- a/components/wifi-manager/code.js +++ b/components/wifi-manager/code.js @@ -419,6 +419,7 @@ function checkStatus(){ $("#netmask").text(data["netmask"]); $("#gw").text(data["gw"]); $("#wifi-status").slideDown( "fast", function() {}); + $(".footer").html("connected to SSID "+text(data["ssid"])+" with IP "+text(data["ip"])); //unlock the wait screen if needed $( "#ok-connect" ).prop("disabled",false); @@ -464,6 +465,7 @@ function checkStatus(){ $("#netmask").text(data["netmask"]); $("#gw").text(data["gw"]); $("#wifi-status").slideDown( "fast", function() {}); + $(".footer").html("connected to SSID "+data["ssid"]+" with IP "+data["ip"]); } enableAPTimer = false; if (!recovery) enableStatusTimer = false; diff --git a/components/wifi-manager/index.html b/components/wifi-manager/index.html index ba952534..602a9143 100644 --- a/components/wifi-manager/index.html +++ b/components/wifi-manager/index.html @@ -204,7 +204,7 @@ GPIO pin - + I2S @@ -303,5 +303,6 @@ + diff --git a/components/wifi-manager/style.css b/components/wifi-manager/style.css index 34ef688d..75243cdd 100644 --- a/components/wifi-manager/style.css +++ b/components/wifi-manager/style.css @@ -1,6 +1,7 @@ body { border: 0; margin: 0; + margin-bottom:50px; } a { color: darkblue; @@ -305,3 +306,13 @@ input, textarea { #mode { float: right; } + +.footer { + position: fixed; + left: 0; + bottom: 0; + width: 100%; + background-color: #555; + color: white; + text-align: center; +}