Update home.html

Updates for changing/selecting telnet ports
pull/205/head
Alex 8 years ago committed by GitHub
parent d0377bdf25
commit 563957f2d3
  1. 25
      html/home.html

@ -50,6 +50,28 @@
<a href="https://github.com/jeelabs/esp-link/blob/master/README.md">the online README</a> <a href="https://github.com/jeelabs/esp-link/blob/master/README.md">the online README</a>
for up-to-date help.</p> for up-to-date help.</p>
</div> </div>
<div class="card">
<h1>Telnet Serial-Bridge</h1>
<p style="margin-bottom:0;">There are two ports available for telnet to use by default: 23 &nbsp; 2323</p>
<div id="telnet-spinner" class="spinner spinner-small"></div>
<table id="telnet-table" class="pure-table pure-table-horizontal" hidden><tbody>
<tr><td>Current Telnet ports</td><td class="telnet-info"></td></tr>
<tr><td colspan=2 class="popup-target">Telnet port 1:<br>
<div class="click-to-edit telnet-port1">
<span class="edit-off" style="display:block; width:auto;"></span>
<textarea class="edit-on" rows=1 maxlength=5 hidden> </textarea>
<div class="popup">Click to edit!<br>Default port: 23</div>
</div>
</td></tr>
<tr><td colspan=2 class="popup-target">Telnet port 2:<br>
<div class="click-to-edit telnet-port2">
<span class="edit-off" style="display:block; width:auto;"></span>
<textarea class="edit-on" rows=1 maxlength=5 hidden> </textarea>
<div class="popup">Click to edit!<br>Default port: 2323</div>
</div>
</td></tr>
</tbody></table>
</div>
</div> </div>
<!-- RIGHT COLUMN --> <!-- RIGHT COLUMN -->
<div class="pure-u-1 pure-u-md-1-2"> <div class="pure-u-1 pure-u-md-1-2">
@ -152,9 +174,12 @@
onLoad(function() { onLoad(function() {
makeAjaxInput("system", "description"); makeAjaxInput("system", "description");
makeAjaxInput("system", "name"); makeAjaxInput("system", "name");
makeAjaxInput("telnet", "port1");
makeAjaxInput("telnet", "port2");
fetchPins(); fetchPins();
getWifiInfo(); getWifiInfo();
getSystemInfo(); getSystemInfo();
getTelnetInfo();
bnd($("#pinform"), "submit", setPins); bnd($("#pinform"), "submit", setPins);
}); });
</script> </script>

Loading…
Cancel
Save