mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 19:12:10 +01:00
Added the current ip address to the DHCP tab #310
This commit is contained in:
parent
49d134e6f2
commit
d8292fdc2b
3 changed files with 6 additions and 4 deletions
Binary file not shown.
|
|
@ -3,11 +3,11 @@
|
||||||
<head>
|
<head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<link rel="stylesheet" href="main.css?v=2.4.1c" type="text/css" />
|
<link rel="stylesheet" href="main.css?v=2.4.1r" type="text/css" />
|
||||||
<link rel="stylesheet" href="widgets.css?v=2.4.1c" type="text/css" />
|
<link rel="stylesheet" href="widgets.css?v=2.4.1r" type="text/css" />
|
||||||
<link rel="stylesheet" href="icons.css?v=2.4.1c" type="text/css" />
|
<link rel="stylesheet" href="icons.css?v=2.4.1r" type="text/css" />
|
||||||
<link rel="icon" type="image/png" href="favicon.png" />
|
<link rel="icon" type="image/png" href="favicon.png" />
|
||||||
<script type="text/javascript" src="index.js?v=2.4.1c"></script>
|
<script type="text/javascript" src="index.js?v=2.4.1r"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="divContainer" class="container main" data-auth="false">
|
<div id="divContainer" class="container main" data-auth="false">
|
||||||
|
|
@ -221,6 +221,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="divDHCP" class="subtab-content" style="display:none;">
|
<div id="divDHCP" class="subtab-content" style="display:none;">
|
||||||
|
<div style="margin-top:-14px;"><span style="color: #00bcd4;">IP Adddress:</span><span id="spanCurrentIP"></span></div>
|
||||||
<div class="field-group">
|
<div class="field-group">
|
||||||
<input id="cbUseDHCP" name="dhcp" type="checkbox" data-bind="ip.dhcp" style="display:inline-block;" onclick="wifi.onDHCPClicked(this);" checked="checked" />
|
<input id="cbUseDHCP" name="dhcp" type="checkbox" data-bind="ip.dhcp" style="display:inline-block;" onclick="wifi.onDHCPClicked(this);" checked="checked" />
|
||||||
<label for="cbUseDHCP" style="display:inline-block;cursor:pointer;">Acquire IP Address automatically (DHCP)</label>
|
<label for="cbUseDHCP" style="display:inline-block;cursor:pointer;">Acquire IP Address automatically (DHCP)</label>
|
||||||
|
|
|
||||||
|
|
@ -1684,6 +1684,7 @@ class Wifi {
|
||||||
document.getElementById('divETHSettings').style.display = settings.ethernet.boardType === 0 ? '' : 'none';
|
document.getElementById('divETHSettings').style.display = settings.ethernet.boardType === 0 ? '' : 'none';
|
||||||
document.getElementById('divStaticIP').style.display = settings.ip.dhcp ? 'none' : '';
|
document.getElementById('divStaticIP').style.display = settings.ip.dhcp ? 'none' : '';
|
||||||
ui.toElement(document.getElementById('divDHCP'), settings);
|
ui.toElement(document.getElementById('divDHCP'), settings);
|
||||||
|
document.getElementById('spanCurrentIP').innerHTML = settings.ip.ip;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue