HTML Changes.

I may write a new javscript method all together for this... My goal might be to make one that is more adaptable to save on time & reduce overall size/complexity of code.
pull/205/head
Alex 8 years ago
parent 5e346a37a5
commit b5243b0a83
  1. 10
      html/home.html
  2. 2
      html/ui.js

@ -71,6 +71,15 @@
<div class="popup">Click to edit!<br>Default port: 2323</div>
</div>
</td></tr>
<tr><td colspan=2>Port0 Mode<br>
<div class="click-to-edit telnet-port0mode">
<span class="edit-off" style="display:block; width:auto;"></span>
<select class="edit-on" hidden>
<option value="0">open</option>
<option value="1">password</option>
</select>
</div>
</td></tr>
</tbody></table>
</div>
</div>
@ -177,6 +186,7 @@ onLoad(function() {
makeAjaxInput("system", "name");
makeAjaxInput("telnet", "port0");
makeAjaxInput("telnet", "port1");
makeAjaxInput("telnet", "port0mode");
fetchPins();
getWifiInfo();
getSystemInfo();

@ -401,7 +401,7 @@ function showNotification(text) {
var el = $("#notification");
el.innerHTML = text;
el.removeAttribute('hidden');
// window.scrollTo(0, 0); //Uncomment this line so window will scroll up on regular notifications
window.scrollTo(0, 0); //Uncomment this line so window will scroll up on regular notifications
if (notifTimeout != null) clearTimeout(notifTimeout);
notifTimout = setTimeout(function() {
el.setAttribute('hidden', '');

Loading…
Cancel
Save