Developing lightweight computation at the DSG edge

Commit cf62ebab authored by Jorge L. Florit's avatar Jorge L. Florit
Browse files

qmp-guifi: modified guifi.htm for bootstrap theme

parent 148748f3
......@@ -25,7 +25,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=qmp-guifi
PKG_RELEASE:=1.0.2
PKG_RELEASE:=1.0.3
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
......
......@@ -7,12 +7,14 @@ function option(url,key,option) {
if (url) if (output) {
toggle("confirm",0); // Hide button
toggle("cancel",0); // Hide button
output.innerHTML ='<%:Collecting data...%>&lt;img src="/luci-static/resources/icons/loading.gif" height="20px" alt="Loading" style="vertical-align:midle;"/&gt; ';
// output.innerHTML ='<%:Collecting data...%>&lt;img src="/luci-static/resources/icons/loading.gif" height="20px" alt="Loading" style="vertical-align:midle;"/&gt; ';
output.innerHTML ='<%:Collecting data...%><img src="/luci-static/resources/icons/loading.gif" height="20px" alt="Loading" style="vertical-align:midle;"/> ';
output.style.display = 'block';
XHR.get("/cgi-bin/guifi",[ key , option , url ] ,
function(x) {
var text = new String(x.responseText);
output.innerHTML="&lt;pre&gt;&lt;font color='#0a0'&gt;"+text+"&lt;/font&gt;&lt;/pre&gt;";
// output.innerHTML="&lt;pre&gt;&lt;font color='#0a0'&gt;"+text+"&lt;/font&gt;&lt;/pre&gt;";
output.innerHTML="<pre><font color='#0a0'>"+text+"</font></pre>";
document.getElementById("guifidiv").style.height = 'auto';
if ( !(text.indexOf("ERROR") >= 0) ) {
switch (option) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment