From b5243b0a83f61a88197fff9cecd3c32faed3907d Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 4 Nov 2016 12:40:05 -0500 Subject: [PATCH] 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. --- html/home.html | 10 ++++++++++ html/ui.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/html/home.html b/html/home.html index 5bce56b..6293026 100644 --- a/html/home.html +++ b/html/home.html @@ -71,6 +71,15 @@ + Port0 Mode
+
+ + +
+ @@ -177,6 +186,7 @@ onLoad(function() { makeAjaxInput("system", "name"); makeAjaxInput("telnet", "port0"); makeAjaxInput("telnet", "port1"); + makeAjaxInput("telnet", "port0mode"); fetchPins(); getWifiInfo(); getSystemInfo(); diff --git a/html/ui.js b/html/ui.js index 5e83bab..3a00ef8 100644 --- a/html/ui.js +++ b/html/ui.js @@ -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', '');