diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-06-18 12:17:58 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-06-19 11:20:39 +0200 |
commit | e7b9be722d4d02499020449b7d72aa24c6c38931 (patch) | |
tree | 6c1b4550c3afe81a38e8c137e47bd992f1c94571 /web-gui/login/source/script/login.js | |
parent | 50d59d45d5b5af18ee1dfb28764b4eec79e94bf6 (diff) | |
download | json-dbus-bridge-examples-e7b9be722d4d02499020449b7d72aa24c6c38931.tar.gz json-dbus-bridge-examples-e7b9be722d4d02499020449b7d72aa24c6c38931.tar.xz |
[login] add new demo
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'web-gui/login/source/script/login.js')
-rw-r--r-- | web-gui/login/source/script/login.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/web-gui/login/source/script/login.js b/web-gui/login/source/script/login.js new file mode 100644 index 0000000..999122f --- /dev/null +++ b/web-gui/login/source/script/login.js @@ -0,0 +1,20 @@ +/* + * This is mock content and will be overwritten with the first 'generate.py source'. + */ +function inform(){ + var message = + "<div style='font-family: Verdana'>" + + "<h2>Application not yet ready!</h2>" + + "<div>Please use the generator to build this application, i.e. run <i>'generate.py source'</i> in an OS shell; then reload this page.</div>" + + "</div>"; + + window.setTimeout(function() { + document.body.innerHTML = message; + }, 0); +} + +if (window.attachEvent) { + window.attachEvent("onload", inform); +} else { + window.addEventListener("load", inform, false); +} |