// Detects if the html file is ran locally. // You can remove this code for the final version if (window.location.protocol == "file:") {
document.write('');document.write('
The application cannot be run...
');document.write('
HTML browsers do not allow you to launch data files directly from the file system.
');document.write('A drag & drop of the html file on a web-browser window will not work, on any machine.
');document.write('Please use the Build & Run option (it opens a local web server) to run your application,
')
document.write('or upload your application folder to a remote web-server, and start it from there...
');document.write('
');throw new error("Cannot run application");}