23 lines
680 B
HTML
Executable File
23 lines
680 B
HTML
Executable File
<script type="text/javascript">//<![CDATA[
|
|
XHR.poll(3, '<%=url([[admin]], [[services]], [[iperf3-server]], [[status]])%>', null,
|
|
function(x, data) {
|
|
var tb = document.getElementById('iperf3-server_status');
|
|
if (data && tb) {
|
|
if (data.running) {
|
|
var links = '<em><b><font color=green>iPerf3 Server <%:RUNNING%></font></b></em>';
|
|
tb.innerHTML = links;
|
|
} else {
|
|
tb.innerHTML = '<em><b><font color=red>iPerf3 Server <%:NOT RUNNING%></font></b></em>';
|
|
}
|
|
}
|
|
}
|
|
);
|
|
//]]>
|
|
</script>
|
|
<style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style>
|
|
<fieldset class="cbi-section">
|
|
<p id="iperf3-server_status">
|
|
<em><%:Collecting data...%></em>
|
|
</p>
|
|
</fieldset>
|