use loading page
This commit is contained in:
parent
d4ad1466be
commit
792afe0824
2 changed files with 10 additions and 6 deletions
11
ctl
11
ctl
|
@ -73,11 +73,12 @@ if [ "$1" == "restart" ]; then
|
|||
fi
|
||||
fi
|
||||
if [ "$1" == "open" ]; then
|
||||
"$0" start &
|
||||
#time to switch to python and use webbrowser.open_tab?
|
||||
if [ $SYSTEM == "Darwin" ]; then
|
||||
open "http://$HOST/"
|
||||
open "$BASE/$NAME/static/html/load.html"
|
||||
else
|
||||
xdg-open "http://$HOST/"
|
||||
xdg-open "$BASE/$NAME/static/html/load.html"
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
@ -97,10 +98,10 @@ if [ "$1" == "update" ]; then
|
|||
cd "$BASE/$NAME"
|
||||
git pull
|
||||
find . -name '*.pyc' -exec rm "{}" \;
|
||||
$0 setup
|
||||
$0 update_static > /dev/null
|
||||
"$0" setup
|
||||
"$0" update_static > /dev/null
|
||||
NEW=`"$0" version`
|
||||
$0 postupdate -o $OLD -n $NEW
|
||||
"$0" postupdate -o $OLD -n $NEW
|
||||
else
|
||||
python2 oml update
|
||||
fi
|
||||
|
|
|
@ -14,10 +14,13 @@
|
|||
};
|
||||
img.src = base + '/static/oxjs/build/Ox.UI/png/transparent.png?' + new Date;
|
||||
};
|
||||
load();
|
||||
setTimeout(function() {
|
||||
load();
|
||||
setTimeout(function() {
|
||||
document.body.innerHTML = 'Looks like Open Media Library is not running.';
|
||||
}, 10000);
|
||||
}, 3000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue