diff options
-rw-r--r-- | www/index.html | 2 | ||||
-rw-r--r-- | www/js/app.js | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/www/index.html b/www/index.html index 0127fca..53eeffb 100644 --- a/www/index.html +++ b/www/index.html @@ -58,5 +58,5 @@ <script type="text/javascript" src="js/app.js"></script> </head> - <body id="container" class="frontpage fullwidthpage"></body> + <body id="container" class="frontpage fullwidthpage" onload="onload()"></body> </html> diff --git a/www/js/app.js b/www/js/app.js index d7a43a8..e9ef752 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -165,5 +165,7 @@ var androidStartUp = function() { } }; -document.addEventListener('deviceready', FMS.initialize, false); -window.setTimeout( androidStartUp, 2000 ); +function onload() { + document.addEventListener('deviceready', FMS.initialize, false); + window.setTimeout( androidStartUp, 2000 ); +} |