2014-05-25 18:23:10 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>Open Media Library</title>
|
2014-09-29 13:17:59 +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',
|
|
|
|
base = '//[::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() {
|
2014-08-12 12:51:38 +00:00
|
|
|
document.querySelector('#status').innerHTML = 'Failed to start Open Media Library';
|
|
|
|
}, 10000);
|
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>
|