Init Repo

This commit is contained in:
Gregor Schulte
2021-06-15 11:08:34 +02:00
parent d0b72a118d
commit b303dd00d6
330 changed files with 93268 additions and 0 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();
});