show connection info in status bar

This commit is contained in:
Christian Herzog
2019-09-27 22:47:07 +02:00
parent 4b1ac70151
commit 2932b57aea
3 changed files with 15 additions and 1 deletions

View File

@@ -419,6 +419,7 @@ function checkStatus(){
$("#netmask").text(data["netmask"]); $("#netmask").text(data["netmask"]);
$("#gw").text(data["gw"]); $("#gw").text(data["gw"]);
$("#wifi-status").slideDown( "fast", function() {}); $("#wifi-status").slideDown( "fast", function() {});
$(".footer").html("connected to SSID "+text(data["ssid"])+" with IP "+text(data["ip"]));
//unlock the wait screen if needed //unlock the wait screen if needed
$( "#ok-connect" ).prop("disabled",false); $( "#ok-connect" ).prop("disabled",false);
@@ -464,6 +465,7 @@ function checkStatus(){
$("#netmask").text(data["netmask"]); $("#netmask").text(data["netmask"]);
$("#gw").text(data["gw"]); $("#gw").text(data["gw"]);
$("#wifi-status").slideDown( "fast", function() {}); $("#wifi-status").slideDown( "fast", function() {});
$(".footer").html("connected to SSID "+data["ssid"]+" with IP "+data["ip"]);
} }
enableAPTimer = false; enableAPTimer = false;
if (!recovery) enableStatusTimer = false; if (!recovery) enableStatusTimer = false;

View File

@@ -204,7 +204,7 @@
<th scope="col">GPIO pin</th> <th scope="col">GPIO pin</th>
</tr> </tr>
</thead> </thead>
<tbody id="releaseTable"> <tbody id="gpioTable">
<tr> <tr>
<td><strong>I2S</strong></td><td></td> <td><strong>I2S</strong></td><td></td>
</tr> </tr>
@@ -303,5 +303,6 @@
</div> </div>
</div> </div>
<footer class="footer"></footer>
</body> </body>
</html> </html>

View File

@@ -1,6 +1,7 @@
body { body {
border: 0; border: 0;
margin: 0; margin: 0;
margin-bottom:50px;
} }
a { a {
color: darkblue; color: darkblue;
@@ -305,3 +306,13 @@ input, textarea {
#mode { #mode {
float: right; float: right;
} }
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: #555;
color: white;
text-align: center;
}