mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
* update * sync [skip ci] * always required [skip ci] * append support * update schemas [skip ci] * typo [skip ci] * adjustment * update [skip ci] * sync [skip ci] * slightly smaller logo [skip ci] * also for checkboxes [skip ci] * new connection lost page [skip ci] * update con_lost page [skip ci] * lost change [skip ci] * fix center position [skip ci]
47 lines
1.0 KiB
HTML
47 lines
1.0 KiB
HTML
<div id="wrapper">
|
|
<div class="container" style="margin:20px auto;">
|
|
<center>
|
|
<div class="logoimg" style="width:234px;height:80px;"></div>
|
|
<div>
|
|
<h2>Lost connection to Hyperion service!<h1>
|
|
<hr>
|
|
<h4>Possible reasons:</h4>
|
|
<p>1. Hyperion restarts</p>
|
|
<p>2. You perform an update</p>
|
|
<p>3. An older browser session</p>
|
|
<p>3. Hyperion isn't running</p>
|
|
<hr>
|
|
<i class="fa fa-refresh fa-spin" style="font-size:50px"></i>
|
|
<h4>This page will be automatically refreshed.</h4>
|
|
<h4>We reconnect again after Hyperion is available.</h4>
|
|
<a href="/">If not, click me</a>
|
|
</div>
|
|
</center>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- ************************************ -->
|
|
|
|
<script>
|
|
var connectionLost = false;
|
|
var connectionTimer;
|
|
|
|
function tryReconnect()
|
|
{
|
|
$.ajax({ url: "/" }).done(function(data) {
|
|
window.clearInterval(connectionTimer);
|
|
window.location.href ="/";
|
|
});
|
|
}
|
|
|
|
function connectionLostAction()
|
|
{
|
|
connectionLost = true;
|
|
connectionTimer = window.setInterval(tryReconnect, 5000);
|
|
}
|
|
|
|
</script>
|
|
|
|
|