git-svn-id: file:///root/webif/svn/pkg/webif/trunk@3874 2a923420-c742-0410-a762-8d5b09965624
39 lines
551 B
JavaScript
39 lines
551 B
JavaScript
|
|
$('#topbar').hover(
|
|
function() { $(this).css('cursor', 'pointer'); },
|
|
function() { $(this).css('cursor', 'auto'); }
|
|
);
|
|
|
|
$('#topbar a').on('click', function(e) {
|
|
e.stopPropagation();
|
|
});
|
|
|
|
$(function() {
|
|
|
|
function updateidle()
|
|
{
|
|
$.get('/cgi-bin/idle.jim', function(idle) {
|
|
$('#idletime').html(idle);
|
|
});
|
|
}
|
|
|
|
updateidle();
|
|
setInterval(updateidle, 60000);
|
|
|
|
if ($('#vfd').length)
|
|
{
|
|
|
|
function updatevfd()
|
|
{
|
|
$.get('/cgi-bin/vfd.jim', function(vfd) {
|
|
$('#vfd div').html(vfd);
|
|
});
|
|
}
|
|
|
|
updatevfd();
|
|
setInterval(updatevfd, 5000);
|
|
}
|
|
|
|
});
|
|
|