openmedialibrary/static/html/load.html

46 lines
1.3 KiB
HTML
Raw Normal View History

2014-05-25 18:23:10 +00:00
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Open Media Library</title>
<link href="../../../oxjs/min/UI/css/UI.css" rel="stylesheet" type="text/css" />
<style>
#loading {
text-align: center;
padding-top: 24px;
}
#status {
padding-bottom: 16px;
}
</style>
2014-05-25 18:23:10 +00:00
<script>
function load() {
var port = document.location.hash.length
? document.location.hash.slice(1)
: '9842',
base = '//127.0.0.1:' + port,
ws = new WebSocket('ws:' + base + '/ws');
ws.onopen = function(event) {
document.location.href = 'http:' + base;
};
ws.onerror = function(event) {
ws.close();
};
ws.onclose = function(event) {
setTimeout(load, 500);
2014-05-25 18:23:10 +00:00
};
};
load();
setTimeout(function() {
document.querySelector('#status').innerHTML = 'Failed to start Open Media Library';
}, 10000);
2014-05-25 18:23:10 +00:00
</script>
</head>
<body class="OxThemeOxlight">
<div id="loading">
<div id="status">Starting Open Media Library</div>
<img src="../png/oml.png">
</div>
2014-05-25 18:23:10 +00:00
</body>
</html>