mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
2beccb0912
* split content and js tune leds config * implement connection lost page * split js/html in huebridge * add js action for connection lost * extend led config make connection loss nicer * tune led code add menu entry for grabber * more tuning of webui * switch back to botstrap textarea add v4l to components * add icon * extend schema for jsoneditor * implement ledcolors streaming with 4fps * implement component state
40 lines
1002 B
HTML
40 lines
1002 B
HTML
<div id="wrapper">
|
|
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom:0">
|
|
<div class="navbar-header">
|
|
<a class="navbar-brand" href="/"><img src="img/hyperion/hyperionlogo.png" alt="Redefine ambient light!" height="55"></a>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="container" style="margin-top:50px">
|
|
<div class="panel panel-danger" style="box-shadow: 10px 10px 5px #BBBBBB;">
|
|
<div class="panel-heading"><i class="fa fa-exclamation-triangle"></i> Connection to Hyperion Service lost!</div>
|
|
<div class="panel-body"><a href="/">reconnect</a></div>
|
|
</div>
|
|
</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>
|
|
|
|
|