diff options
Diffstat (limited to 'sca-cpp/trunk/hosting/server/htdocs/home/index.html')
-rw-r--r-- | sca-cpp/trunk/hosting/server/htdocs/home/index.html | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/sca-cpp/trunk/hosting/server/htdocs/home/index.html b/sca-cpp/trunk/hosting/server/htdocs/home/index.html index 914eb1df00..130c05fda0 100644 --- a/sca-cpp/trunk/hosting/server/htdocs/home/index.html +++ b/sca-cpp/trunk/hosting/server/htdocs/home/index.html @@ -37,17 +37,22 @@ </div> <script type="text/javascript"> +(function() { -// Set page titles -document.title = ui.windowtitle(location.hostname); -$('viewhead').innerHTML = '<span class="bcmenu">' + config.pagetitle + '</span>'; -$('hometitle').innerHTML = config.hometitle; +/** + * Set page titles. + */ +document.title = config.windowtitle(); +$('viewhead').innerHTML = '<span class="bcmenu">' + config.pagetitle() + '</span>'; +$('hometitle').innerHTML = config.hometitle(); $('getstarted').onclick = function() { return ui.navigate('/#view=store', '_view'); }; -// Display animation +/** + * Display animation. + */ var anim = $('homeanimation'); if (!isNil(anim)) { anim.style.background = 'url(\'' + ui.b64img(appcache.get('/home/home.b64')) + '\')'; @@ -60,8 +65,12 @@ if (!isNil(anim)) { }, 2000); } -showStatus(defaultStatus()); +/** + * Show the status. + */ +showOnlineStatus(); +})(); </script> </div> |