2016-09-06 10:14:54 +02:00
|
|
|
<div id="wrapper">
|
2016-09-18 21:51:19 +02:00
|
|
|
<div class="container" style="margin:20px auto;max-width:600px;">
|
2016-09-17 23:37:44 +02:00
|
|
|
<center>
|
2016-09-18 21:51:19 +02:00
|
|
|
<img src="img/hyperion/hyperionlostconnection.png" alt="Redefine ambient light!">
|
2016-09-17 23:37:44 +02:00
|
|
|
<div>
|
2016-10-27 23:42:24 +02:00
|
|
|
<h2 lang="en" data-lang-token="info_conlost_label_title">Lost connection to Hyperion service!</h2>
|
2016-09-17 23:37:44 +02:00
|
|
|
<hr>
|
2016-10-27 23:42:24 +02:00
|
|
|
<h4 lang="en" data-lang-token="info_conlost_label_reason">Possible reasons:</h4>
|
|
|
|
<p lang="en" data-lang-token="info_conlost_label_reason1">- Hyperion restarts</p>
|
|
|
|
<p lang="en" data-lang-token="info_conlost_label_reason2">- You perform an update</p>
|
|
|
|
<p lang="en" data-lang-token="info_conlost_label_reason3">- Hyperion isn't running</p>
|
2016-09-17 23:37:44 +02:00
|
|
|
<hr>
|
|
|
|
<i class="fa fa-refresh fa-spin" style="font-size:50px"></i>
|
2016-10-27 23:42:24 +02:00
|
|
|
<h4 lang="en" data-lang-token="info_conlost_label_autorefresh">This page will be automatically refreshed.</h4>
|
|
|
|
<h4 lang="en" data-lang-token="info_conlost_label_autorecon">We reconnect again after Hyperion is available.</h4>
|
|
|
|
<a href="/" lang="en" data-lang-token="info_conlost_label_reload">If not, click me or reload the page</a>
|
2016-09-17 23:37:44 +02:00
|
|
|
</div>
|
|
|
|
</center>
|
2016-09-06 10:14:54 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-09-07 20:10:37 +02:00
|
|
|
|
|
|
|
<!-- ************************************ -->
|
|
|
|
|
2016-09-06 10:14:54 +02:00
|
|
|
<script>
|
2016-09-07 20:10:37 +02:00
|
|
|
var connectionLost = false;
|
|
|
|
var connectionTimer;
|
|
|
|
|
|
|
|
function tryReconnect()
|
|
|
|
{
|
|
|
|
$.ajax({ url: "/" }).done(function(data) {
|
|
|
|
window.clearInterval(connectionTimer);
|
|
|
|
window.location.href ="/";
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2016-09-06 10:14:54 +02:00
|
|
|
function connectionLostAction()
|
|
|
|
{
|
2016-09-07 20:10:37 +02:00
|
|
|
connectionLost = true;
|
|
|
|
connectionTimer = window.setInterval(tryReconnect, 5000);
|
2016-09-06 10:14:54 +02:00
|
|
|
}
|
2016-09-07 20:10:37 +02:00
|
|
|
|
2016-09-06 10:14:54 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|