diff options
Diffstat (limited to 'web-gui/calculator/source/script')
-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); +} |