small-package/luci-app-ddnsto/luasrc/view/ddnsto_status.htm

28 lines
820 B
HTML

<script type="text/javascript">//<![CDATA[
XHR.poll(5, '<%=url("admin/services/ddnsto_status")%>', null,
function(x, st)
{
var tb = document.getElementById('ddnsto_status');
if (st && tb)
{
if (st.running)
{
tb.innerHTML = '<br/><em style=\"color:green\"><%:The DDNS.to service is running.%></em>'
+ "<br/><br/><input class=\"btn cbi-button cbi-button-apply\" type=\"button\" value=\" <%:Click to open DDNS.to%> \" onclick=\"window.open('https://www.ddnsto.com/app/#/login/')\"/>";
}
else
{
tb.innerHTML = '<br/><em style=\"color:red\"><%:The DDNS.to service is not running.%></em>';
}
}
}
);
//]]></script>
<fieldset class="cbi-section">
<legend><%:DDNS.to Status%></legend>
<p id="ddnsto_status">
<em><%:Collecting data...%></em>
</p>
</fieldset>