luci/applications/luci-app-ssrserver-python/luasrc/view/ssrs/ssrs_status.htm
2022-02-15 21:36:48 +08:00

23 lines
660 B
HTML

<script type="text/javascript">//<![CDATA[
XHR.poll(3, '<%=url([[admin]], [[vpn]], [[ssrs]], [[status]])%>', null,
function(x, data) {
var tb = document.getElementById('ssrs_status');
if (data && tb) {
if (data.running) {
var links = '<em><b><font color=green>ShadowsocksR Python <%:RUNNING%></font></b></em>';
tb.innerHTML = links;
} else {
tb.innerHTML = '<em><b><font color=red>ShadowsocksR Python <%:NOT RUNNING%></font></b></em>';
}
}
}
);
//]]>
</script>
<style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style>
<fieldset class="cbi-section">
<p id="ssrs_status">
<em><%:Collecting data...%></em>
</p>
</fieldset>