minimal load page
This commit is contained in:
parent
8ddf228068
commit
21072c0941
1 changed files with 25 additions and 0 deletions
25
static/html/load.html
Normal file
25
static/html/load.html
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>Open Media Library</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
Loading Open Media Library...
|
||||||
|
<script>
|
||||||
|
function load() {
|
||||||
|
var base = 'http://[::1]:9842',
|
||||||
|
img = new Image();
|
||||||
|
img.onload = function(event) {
|
||||||
|
document.location.href = base;
|
||||||
|
};
|
||||||
|
img.src = base + '/static/oxjs/build/Ox.UI/png/transparent.png?' + new Date;
|
||||||
|
};
|
||||||
|
load();
|
||||||
|
setTimeout(function() {
|
||||||
|
document.body.innerHTML = 'Looks like Open Media Library is not running. Please omlctl start';
|
||||||
|
}, 10000);
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue