1 <script type="text/javascript">//<![CDATA[
2 XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "network", "mwan", "overview", "interface_status")%>', null,
5 var status = document.getElementById('mwan_status_text');
9 for( var i = 0; i < mArray.wans.length; i++ )
13 switch (mArray.wans[i].status)
16 stat = 'Online (tracking active)';
20 stat = 'Online (tracking off)';
32 temp += String.format(
33 '<span class="%s"><strong>%s (<a href="%q">%s</a>)</strong><br />%s</span>',
34 cssc, mArray.wans[i].name, mArray.wans[i].link, mArray.wans[i].ifname, stat
37 status.innerHTML = temp;
41 status.innerHTML = '<strong>No MWAN interfaces found</strong>';
47 <fieldset id="interface_field" class="cbi-section">
48 <legend><%:MWAN Interface Live Status%></legend>
49 <div id="mwan_status_text"><img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" /> Collecting data...</div>
52 <style type="text/css">
53 .container { /* container for entire page. fixes bootstrap theme's ridiculously small page width */
57 padding: 12px 20px 20px 20px;
68 background-color: rgb(144, 240, 144);
71 background-color: rgb(240, 144, 144);
75 box-shadow: 0px 2px 5px -3px;
77 margin: 8px 3px 0px 3px;
80 padding: 5px 10px 8px 10px;