forked from hummypkg/webif
1
0
Fork 0

Refresh status bar every minute

This commit is contained in:
prpr 2023-09-29 23:22:13 +01:00
parent c3992e1a17
commit 129c190b84
1 changed files with 13 additions and 1 deletions

View File

@ -22,7 +22,6 @@ setInterval(updateidle, 60000);
if ($('#vfd').length)
{
function updatevfd()
{
$.get('/cgi-bin/vfd.jim', function(vfd) {
@ -34,5 +33,18 @@ if ($('#vfd').length)
setInterval(updatevfd, 5000);
}
if ($('#status_txt').length)
{
function updatestatus()
{
$.get('/cgi-bin/status.jim', function(status) {
$('#status_txt').html(status);
});
}
updatestatus();
setInterval(updatestatus, 60000);
}
});