2014-05-25 18:23:10 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>Open Media Library</title>
|
2015-03-31 18:24:14 +00:00
|
|
|
<link href="../../../oxjs/min/UI/css/UI.css" rel="stylesheet" type="text/css" />
|
2014-08-12 12:51:38 +00:00
|
|
|
<style>
|
|
|
|
#loading {
|
|
|
|
text-align: center;
|
|
|
|
padding-top: 24px;
|
|
|
|
}
|
|
|
|
#status {
|
|
|
|
padding-bottom: 16px;
|
|
|
|
}
|
|
|
|
</style>
|
2014-05-25 18:23:10 +00:00
|
|
|
<script>
|
|
|
|
function load() {
|
2014-08-12 12:51:38 +00:00
|
|
|
var port = document.location.hash.length
|
|
|
|
? document.location.hash.slice(1)
|
|
|
|
: '9842',
|
2015-02-22 11:23:06 +00:00
|
|
|
base = '//127.0.0.1:' + port,
|
2014-08-12 12:51:38 +00:00
|
|
|
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() {
|
2014-08-12 12:51:38 +00:00
|
|
|
document.querySelector('#status').innerHTML = 'Failed to start Open Media Library';
|
2015-11-17 13:21:21 +00:00
|
|
|
}, 20000);
|
2014-05-25 18:23:10 +00:00
|
|
|
</script>
|
2014-08-12 12:51:38 +00:00
|
|
|
</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>
|