mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
83 lines
13 KiB
HTML
83 lines
13 KiB
HTML
<div class="container" style="margin:20px auto;max-width:600px;">
|
|
<center>
|
|
<img id="hyperion" alt="Redefine ambient light!">
|
|
<div>
|
|
<h2 data-i18n="info_conlost_label_title">Lost connection to Hyperion service!</h2>
|
|
<hr>
|
|
<h4 data-i18n="info_conlost_label_reason">Possible reasons:</h4>
|
|
<p data-i18n="info_conlost_label_reason1">- Hyperion restarts</p>
|
|
<p data-i18n="info_conlost_label_reason2">- You perform an update</p>
|
|
<p data-i18n="info_conlost_label_reason3">- Hyperion isn't running</p>
|
|
<hr>
|
|
<i class="fa fa-refresh fa-spin reconstop" style="font-size:50px"></i>
|
|
<h4 class="reconstop" data-i18n="info_conlost_label_autorefresh">This page will be automatically refreshed.</h4>
|
|
<h4 class="reconstop" data-i18n="info_conlost_label_autorecon">We reconnect again after Hyperion is available.</h4>
|
|
<span id="counter" class="reconstop"></span>
|
|
<a class="reconstop" style="display:none" href="/" data-i18n="info_conlost_label_reload"></a>
|
|
</div>
|
|
</center>
|
|
</div>
|
|
|
|
|
|
<!-- ************************************ -->
|
|
|
|
<script>
|
|
performTranslation();
|
|
var connectionLost = false;
|
|
var connectionTimer;
|
|
var count = 1;
|
|
var reconnectInterval = 4000;
|
|
var connURL = window.location.protocol+"//"+window.location.hostname+":"+window.jsonPort+window.location.pathname+window.location.hash;
|
|
|
|
|
|
if($('body').css("background-color") == "rgb(33, 33, 33)") {
|
|
// Dark Mode (darkMode.css:3)
|
|
document.getElementById("hyperion").src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAB4CAMAAAAzDfCvAAADAFBMVEVHcEz///////////////////+96M3////////////////////////5///+///////////////////////////////////////jD03n2AHfAYb///////8B+9H///////9Zvxia79P9///t9AL////Evv7/////////////Dw3/JRD/////Ay7d/fj08wEY7/wSE/r///+YBMtC0DQZEvtKyCYA+fFRuxH/DQSV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YL9ZIvxNT8QrRk/izfZPR+R1b72v529/f+m8E/4nkzO8R/wq//V+YSwpvEuddPSiPi5FODkntJJSGC6otkC47MGq/yE1KZJO/xezKg0Q4WGjUkrUzvLg3U2cls30k1Gdt3t7X19eC+ArlcwrvjuH7hG8Tvkn4Kabu8OHD2HlprHSN5iElEjCsyDKSXoutI+3bsfi+vlcQT7/yNOI9+EX55xnEX5U3PyN8h/ANzGFivGsbde6GdrU32dlTp07G2tcj8evWbcd8XuFhhXnz5j38B3z1PTNP4YF5DxD2ULr2dHX19PTU15eWViDp46BZbR7q2T4f1j65tnb+NKx+/fp16AtzHX4prCPSX1feHb/uOOWZ489g6jGl2HhFTk5REfzPDraXjqwj7Ug8Vo/cI+bXzg/xXspUKj38HvGxEBUV6CsH6cbCEW6Q/g7yr/w7zjdwxZeypWyyfA++t3odL6KEfygqGpQijEzV/VcAurh48eL7wlyNvnsladrV0ZC+n2ry4wcjQcqvyn9/JEbq4DcpvToImCH9CndWt/jqKUul9ibTO20wKb0SvJn6AO92vXHjiXz0zyCNEOkjSWNoRoYwhZKUONKRPjEuCTBMHLq6FuhqwTjc+7zU5F7jIY0GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGC4eRuqH4Pk5JoLiwAAAABJRU5ErkJggg==";
|
|
} else {
|
|
// Light Mode
|
|
document.getElementById("hyperion").src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAB4CAMAAAAzDfCvAAADAFBMVEVHcExAQEBFSENAQECwqUVAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQD9AQEBAQEBAQEBAQEBAQEBAQEDbAnVAQEBAQEBAQED7DVIzOHH8DFIvj3I/REL06wFUwhhAPz9AQUEC+sP/PQNAQEBAQEBFyCoN8bFAP0JAQEBgZDYXEvwA+fT/HQpbuwr09gH/BhIA+u8PB/g+zDJAQED/ERJAQECmBMdcwxT/IAg4V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6TxXug3+SXamZy8T5eqqa4goT579vmPL4bThT7au9oj6Gq/3HW5m47LHYTOzn9OmXJ6wcAxRXljKb5EnefQQ1810OXpUqWxSUmxfAZSkjApsiaSYMNTkXuVTcnIoThik/jxiZxzu/DMuHuyGDytfOEtz+TG7ThPTqipnlm5FFlH2t87j3gglFEPjGL4HQG/unvU3Sz34A8W2jk+pEdKN+MliuXbww7BXXL/Pz6UsUfJUji+paZsZgW2vmHOnDm7du36DuZLiG8zfI7DT2h+Svg5zfHjU06fJs6LuNIBg4GkV2PrSPviDRuId1o8MX9XkA/bnc6uUeTl3rv2Il7c+yLhOOI0ZgFSjp3nDRsLDwQ2Nv17Y+tIO/K+dHvLYqwe8RTLyKdGEj5s7+pqP0+/fm7kczS/pvkDBhsfU0ScQ6QbPdJ7Z9eUlVVj7xWVAyorK/fQtOxpaWkZ3TKaYc+/2gOB9o/YX0f/mOZ1wpjXse6iU0VTp+Zh5/CfHYyOCVlHlJVh9Vg+1o8ZUDGgmxosvesj5reNG/HXxlP4CzP1VB7yPQwzFjkH6TdOzFuCCX3EvsBislAtWLoNHQ5Y2MFjg0fw6/jPmrz1MYB8PvjgwoULE0MomJiOViJ+lZOTMzEHf8e4uvCd/DlhTMiZMOEWdEaWMSGUCxfef19hJ+q9GqX7AoAiLnaFl2S8plQb+tF+MbwkQ8Zlf7vczpRmOjujKU9GZwgdHR3K++DTKN0NGrXg9zDP0pP7zO9Lvdgb2TXg1ijdBuI0rv46ZS1c7P8P0IBNo/Q6K6CBFIpKVdYCl1e9GudaB3k0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcM35H82cipTBxi+MAAAAAElFTkSuQmCC";
|
|
}
|
|
|
|
function tryReconnect()
|
|
{
|
|
if(count > 100)
|
|
{
|
|
window.clearInterval(connectionTimer);
|
|
$('.reconstop').toggle();
|
|
}
|
|
|
|
$('#counter').html(count+'/100');
|
|
|
|
$.ajax({ url: connURL }).done(function(data) {
|
|
window.clearInterval(connectionTimer);
|
|
if(reconnectInterval <= 2000){
|
|
let url = connURL;
|
|
if (window.connURL.includes("#"))
|
|
url = window.connURL.slice(0,window.connURL.indexOf("#"));
|
|
window.location.replace(url);
|
|
} else {
|
|
window.location.reload();
|
|
}
|
|
})
|
|
.fail( function( jqXHR, textStatus ) {
|
|
count++;
|
|
});
|
|
|
|
}
|
|
|
|
function connectionLostAction()
|
|
{
|
|
if(!connectionLost)
|
|
{
|
|
connectionLost = true;
|
|
// if we changed the webui port we connect faster
|
|
if(window.fastReconnect) {
|
|
window.fastReconnect = false;
|
|
reconnectInterval = 2000;
|
|
}
|
|
connectionTimer = window.setInterval(tryReconnect, reconnectInterval);
|
|
}
|
|
}
|
|
|
|
</script>
|