Design improvements on stations.html

This commit is contained in:
Stefan Kremser
2017-05-20 10:54:28 +02:00
parent e33758cc16
commit fd044767b7
5 changed files with 15 additions and 13 deletions

File diff suppressed because one or more lines are too long

View File

@@ -31,7 +31,7 @@
<span id="networksFound">0</span>
<br />
MAC: <span id="apMAC"></span>
<span id="selectAllBtns">
<span id="selectAllBtns" style="visibility:'hidden'">
<br />
<button class="marginNull button-primary left" onclick="select(-2)">deselect all</button>
<button class="marginNull button-primary right" onclick="select(-1)">select all</button>

View File

@@ -38,8 +38,7 @@ function getResults() {
var tr = '';
if (res.aps.length > 0) {
tr += '<tr><th>Ch</th><th>SSID</th><th>RSSI</th><th>Encrypt.</th>';
tr += '<th>Select</th></tr>'
tr += '<tr><th>Ch</th><th>SSID</th><th>RSSI</th><th>Encrypt.</th><th>Select</th></tr>';
}
for (var i = 0; i < res.aps.length; i++) {

View File

@@ -35,9 +35,7 @@ function getResults() {
clientsFound.innerHTML = res.clients.length;
var tr = '';
if (res.clients.length > 0) tr += '<tr><th>Pkts</th><th>Vendor</th><th>Name</th><th>MAC</th><th>AP</th>';
if (res.clients.length > 1) tr += '<th><button class="marginNull button-primary" onclick="select(-1)">select</button>&nbsp|&nbsp<button class="marginNull button-primary" onclick="select(-2)">deselect</button>&nbspall</th></tr>';
else tr += '<th>Select</th></tr>';
if (res.clients.length > 0) tr += '<tr><th>Pkts</th><th>Vendor</th><th>Name</th><th>MAC</th><th>AP</th><th>Select</th></tr>';
for (var i = 0; i < res.clients.length; i++) {

View File

@@ -30,16 +30,21 @@
<a id="clientScanStatus" class="right padding">scanning...</a>
<br />
<p class="warn">The access point will be unavailable while scanning and you may have to reconnect!<p>
<p>Client devices found: <span id="clientsFound">0</span></p>
<p>
Stations found: <span id="clientsFound">0</span>
<br />
<button class="marginNull button-primary left" onclick="select(-2)">deselect all</button>
<button class="marginNull button-primary right" onclick="select(-1)">select all</button>
</p>
<br />
<table></table>
<p class="block bold" >Saved clients: <span id="clientNames"></span></p>
<p class="block bold" >Saved stations: <span id="clientNames"></span></p>
<table id="nameList"></table>
<button class="button-warn left" onclick="clearNameList()">clear</button>
<br class="clear" />
<p>Add client:</p>
<p>Add station:</p>
</div>
</div>
<div class="row">