use loading page

This commit is contained in:
j 2014-08-05 18:04:44 +02:00
parent d4ad1466be
commit 792afe0824
2 changed files with 10 additions and 6 deletions

11
ctl
View File

@ -73,11 +73,12 @@ if [ "$1" == "restart" ]; then
fi fi
fi fi
if [ "$1" == "open" ]; then if [ "$1" == "open" ]; then
"$0" start &
#time to switch to python and use webbrowser.open_tab? #time to switch to python and use webbrowser.open_tab?
if [ $SYSTEM == "Darwin" ]; then if [ $SYSTEM == "Darwin" ]; then
open "http://$HOST/" open "$BASE/$NAME/static/html/load.html"
else else
xdg-open "http://$HOST/" xdg-open "$BASE/$NAME/static/html/load.html"
fi fi
exit 0 exit 0
fi fi
@ -97,10 +98,10 @@ if [ "$1" == "update" ]; then
cd "$BASE/$NAME" cd "$BASE/$NAME"
git pull git pull
find . -name '*.pyc' -exec rm "{}" \; find . -name '*.pyc' -exec rm "{}" \;
$0 setup "$0" setup
$0 update_static > /dev/null "$0" update_static > /dev/null
NEW=`"$0" version` NEW=`"$0" version`
$0 postupdate -o $OLD -n $NEW "$0" postupdate -o $OLD -n $NEW
else else
python2 oml update python2 oml update
fi fi

View File

@ -16,8 +16,11 @@
}; };
load(); load();
setTimeout(function() { setTimeout(function() {
load();
setTimeout(function() {
document.body.innerHTML = 'Looks like Open Media Library is not running.'; document.body.innerHTML = 'Looks like Open Media Library is not running.';
}, 10000); }, 10000);
}, 3000);
</script> </script>
</body> </body>
</html> </html>