Browse Source

Link IP in status page

fastled^2
Xose Pérez 6 years ago
parent
commit
aa585ec2cc
4 changed files with 2707 additions and 2700 deletions
  1. BIN
      code/espurna/data/index.html.gz
  2. +2700
    -2698
      code/espurna/static/index.html.gz.h
  3. +6
    -1
      code/html/custom.js
  4. +1
    -1
      code/html/index.html

BIN
code/espurna/data/index.html.gz View File


+ 2700
- 2698
code/espurna/static/index.html.gz.h
File diff suppressed because it is too large
View File


+ 6
- 1
code/html/custom.js View File

@ -510,7 +510,7 @@ function onFileUpload(event) {
if (data) { if (data) {
sendAction("restore", data); sendAction("restore", data);
} else { } else {
alert(messages[4]);
window.alert(messages[4]);
} }
}; };
reader.readAsText(inputFile); reader.readAsText(inputFile);
@ -1229,6 +1229,11 @@ function processData(data) {
return; return;
} }
if ("deviceip" === key) {
var a_href = $("span[name='" + key + "']").parent();
a_href.attr("href", "http://" + value);
}
if ("now" === key) { if ("now" === key) {
now = value; now = value;
return; return;


+ 1
- 1
code/html/index.html View File

@ -242,7 +242,7 @@
<div class="pure-u-11-24"><span class="right" name="rssi"></span></div> <div class="pure-u-11-24"><span class="right" name="rssi"></span></div>
<div class="pure-u-1-2">IP</div> <div class="pure-u-1-2">IP</div>
<div class="pure-u-11-24"><span class="right" name="deviceip"></span></div>
<div class="pure-u-11-24"><a href=""><span class="right" name="deviceip"></span></a></div>
<div class="pure-u-1-2">Free heap</div> <div class="pure-u-1-2">Free heap</div>
<div class="pure-u-11-24"><span class="right" name="heap" post=" bytes"></span></div> <div class="pure-u-11-24"><span class="right" name="heap" post=" bytes"></span></div>


Loading…
Cancel
Save