mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-13 06:27:15 +02:00
added interface class for app
refactored web and webApi -> now RestApi.h fix calcSunrise fixed calcSunrise trigger calculation display zero values on /live added changes from #483
This commit is contained in:
parent
a8d7e430f7
commit
49b530a743
19 changed files with 1366 additions and 1511 deletions
|
@ -191,15 +191,12 @@
|
|||
}
|
||||
|
||||
function tick() {
|
||||
if(0 != ts)
|
||||
document.getElementById("date").innerHTML = (new Date((ts+tickCnt) * 1000)).toLocaleString('de-DE');
|
||||
if(++tickCnt >= 10) {
|
||||
tickCnt = 0;
|
||||
getAjax('/api/index', parse);
|
||||
}
|
||||
else {
|
||||
var dSpan = document.getElementById("date");
|
||||
if(0 != ts)
|
||||
dSpan.innerHTML = (new Date((ts+tickCnt) * 1000)).toLocaleString('de-DE');
|
||||
}
|
||||
}
|
||||
|
||||
function parse(obj) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue