mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-24 13:26:58 +02:00
* webinterface refactored completely
This commit is contained in:
parent
3c8a4c49a1
commit
74f053a5ae
12 changed files with 481 additions and 137 deletions
|
@ -6,10 +6,8 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<script type="text/javascript">
|
||||
getAjax('/uptime', 'uptime');
|
||||
getAjax('/time', 'time');
|
||||
getAjax('/cmdstat', 'cmds');
|
||||
window.setInterval("getAjax('/uptime', 'uptime')", {JS_TS});
|
||||
window.setInterval("getAjax('/time', 'time')", {JS_TS});
|
||||
window.setInterval("getAjax('/cmdstat', 'cmds')", {JS_TS});
|
||||
|
||||
function getAjax(url, resid) {
|
||||
|
@ -33,12 +31,11 @@
|
|||
<h1>AHOY - {DEVICE}</h1>
|
||||
<div id="content" class="content">
|
||||
<p>
|
||||
<a href="/hoymiles">Visualization</a><br/>
|
||||
<a href="/visualization">Visualization</a><br/>
|
||||
<br/>
|
||||
<a href="/setup">Setup</a><br/>
|
||||
</p>
|
||||
<p><span class="des">Uptime: </span><span id="uptime"></span></p>
|
||||
<p><span class="des">Time: </span><span id="time"></span></p>
|
||||
<p><span class="des">Statistics: </span><pre id="cmds"></pre></p>
|
||||
<p>Every {TS}seconds the values are updated</p>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue