This commit is contained in:
2023-03-28 10:34:44 +02:00
parent f803effbbd
commit f7e0f37528
428 changed files with 9982 additions and 100 deletions

View File

@@ -0,0 +1,34 @@
var shutdown = false;
function ping()
{
var jsonData = jQuery.ajax(
{
url: 'api/v1/ping.php',
dataType:"json",
async: true,
timeout: 5000
}).done(function(data)
{
if (shutdown == true)
{
jQuery('.inner strong').text(_t('Online - Du wirst sofort weitergeleitet'));
setTimeout('window.document.location.href = \'?s=overview\'', 2000);
}
jQuery('.inner strong').addClass('green').removeClass('red');
setTimeout('ping()', 5000);
}).error(function(data)
{
jQuery('.inner strong').text(_t('Offline'));
shutdown = true;
jQuery('.inner strong').addClass('red').removeClass('green');
setTimeout('ping()', 5000);
});
}
jQuery(document).on('ready', function(e)
{
ping();
});