1 <script type="text/javascript">//<![CDATA[
2 XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "status", "mwan", "interface_status")%>', null,
5 var statusDiv = document.getElementById('mwan_status_text');
9 for ( var iface in status.interfaces)
13 switch (status.interfaces[iface].status)
16 state = '<%:Online (tracking active)%>';
20 state = '<%:Online (tracking off)%>';
24 state = '<%:Offline%>';
28 state = '<%:Disabled%>';
32 statusview += String.format(
33 '<span class="%s"><strong>%s</strong><br />%s</span>',
39 statusDiv.innerHTML = statusview;
43 statusDiv.innerHTML = '<strong><%:No MWAN interfaces found%></strong>';
49 <fieldset id="interface_field" class="cbi-section">
50 <legend><%:MWAN Interface Live Status%></legend>
51 <div id="mwan_status_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /><%:Collecting data...%></div>
54 <style type="text/css">
55 .container { /* container for entire page. fixes bootstrap theme's ridiculously small page width */
67 background-color: rgb(144, 240, 144);
70 background-color: rgb(240, 144, 144);
74 box-shadow: 0px 2px 5px -3px;
76 margin: 8px 3px 0px 3px;
79 padding: 5px 10px 8px 10px;