2014-08-04 19:41:30 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>Open Media Library</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script>
|
|
|
|
function load() {
|
2015-02-27 10:43:15 +00:00
|
|
|
var base = 'http://127.0.0.1:9841';
|
2014-08-04 19:41:30 +00:00
|
|
|
var xhr = new XMLHttpRequest();
|
|
|
|
xhr.onload = function() {
|
|
|
|
document.location.href = base;
|
|
|
|
};
|
|
|
|
xhr.onerror = function() {
|
|
|
|
setTimeout(load, 1000);
|
|
|
|
}
|
|
|
|
xhr.open('get', base + '/status');
|
|
|
|
xhr.send();
|
|
|
|
}
|
|
|
|
load();
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|