Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
86aee98c
Commit
86aee98c
authored
Sep 28, 2012
by
Simó Albert i Beltran
Browse files
sed -i -e 's/\s\+$//g' packages/qmp-small-node/files/usr/lib/lua/luci/view/qmp/tools.htm
parent
bec95a9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-small-node/files/usr/lib/lua/luci/view/qmp/tools.htm
View file @
86aee98c
...
...
@@ -11,18 +11,18 @@ function do_test(ip,index,key,tool) {
XHR
.
get
(
"
/cgi-bin/tools
"
,[
key
,
tool
,
ip
]
,
function
(
x
)
{
output
.
innerHTML
=
parse_result
(
x
.
responseText
);
}
)
}
}
function
parse_result
(
txt
)
{
var
t
=
new
String
(
txt
);
if
(
t
.
indexOf
(
"
Cannot
"
)
>=
0
)
if
(
t
.
indexOf
(
"
Cannot
"
)
>=
0
)
return
(
"
<font color='#f00'><%:Cannot connecto to netserver%></font>
"
);
else
return
(
"
<font color='#0a0'>
"
+
txt
+
"
</font>
"
);
//return("
<
font
color
=
'
#0a0
'
>
"
+txt+
"
<
/font>"
)
;
else
return
(
"
<font color='#0a0'>
"
+
txt
+
"
</font>
"
);
//return("
<
font
color
=
'
#0a0
'
>
"
+txt+
"
<
/font>"
)
;
}
</script>
...
...
@@ -33,7 +33,7 @@ function parse_result(txt) {
<form>
<fieldset
class=
"cbi-section"
>
<legend><
%
:Nodes
found
in
the
network
%
></legend>
<table
class=
"cbi-section-table"
>
<tr
class=
"cbi-section-table-titles"
>
<th
class=
"cbi-section-table-cell"
></th>
...
...
@@ -42,7 +42,7 @@ function parse_result(txt) {
</tr>
<
%
for
i
,
n
in
ipairs
(
nodes
)
do
%
>
<tr>
<td
title=
"<%=n[2]%>"
style=
"padding-left:10px;width:15%;text-align:left;"
><
%=
n
[1]%
></td>
<td
title=
"<%=n[2]%>"
style=
"padding-left:10px;width:15%;text-align:left;"
><
%=
n
[1]%
></td>
<td
style=
"width:18%;text-align:right;"
>
<input
type=
"button"
value=
"bandwidth"
onclick=
"do_test('<%=n[2]%>',<%=i%>,'<%=key%>','bwtest')"
/>
<input
type=
"button"
value=
"ping"
onclick=
"do_test('<%=n[2]%>',<%=i%>,'<%=key%>','ping')"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment