diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-06-02 18:20:03 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-06-02 18:25:04 +0200 |
commit | c60d54e06ed08498e9a50ea2aaff68a0646544bc (patch) | |
tree | 753ab506c9d4f5c08d3c7a5cf20787369f23ee21 /web-gui/calculator/source/script/calculator.js | |
parent | b1c4d9c1d461e1f14498b81fd4c69a45dbddf8da (diff) | |
download | json-dbus-bridge-examples-c60d54e06ed08498e9a50ea2aaff68a0646544bc.tar.gz json-dbus-bridge-examples-c60d54e06ed08498e9a50ea2aaff68a0646544bc.tar.xz |
[web-gui] add calculator example
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'web-gui/calculator/source/script/calculator.js')
-rw-r--r-- | web-gui/calculator/source/script/calculator.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/web-gui/calculator/source/script/calculator.js b/web-gui/calculator/source/script/calculator.js new file mode 100644 index 0000000..999122f --- /dev/null +++ b/web-gui/calculator/source/script/calculator.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); +} |