hosting/server/htdocs/public/notauth/index.html [143:365]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $('viewhead').innerHTML = '' + config.pagetitle() + ''; if (!ui.isMobile()) $('viewcontent').className = 'viewcontent flatscrollbars'; $('status').className = ui.isMobile()? 'status3dm' : 'status3d'; })(); /** * Setup menu bar. */ (function showmenu() { $('menu').innerHTML = ui.menubar( mklist(ui.menu('menuhome', 'Home', '/', '_self', false)), mklist()); $('viewfoot').innerHTML = config.viewfoot(); })(); /** * Initialize status message area. */ (function initstatus() { if (isNull($('status'))) return; $('status').style.display = 'none'; function divtransitionend(e) { e.target.style.display = 'none'; e.target.className = ui.isMobile()? 'status3dm' : 'status3d'; e.target.error = false; } $('status').addEventListener('webkitTransitionEnd', divtransitionend, false); $('status').addEventListener('transitionend', divtransitionend, false); })(); /** * Show a status message. */ window.showstatus = function(s, c) { //debug('show status', s); if (isNull($('status')) || $('status').error) return s; $('status').innerHTML = '' + s + ''; $('status').className = ui.isMobile()? 'status3dm' : 'status3d'; $('status').style.display = 'block'; $('status').error = c == 'errorstatus'; if ($('status').delay) ui.cancelDelay($('status').delay); $('status').delay = ui.delay(function hidestatus() { $('status').className = ui.isMobile()? 'statusout3dm' : 'statusout3d'; $('status').error = false; }, 3000); return s; }; /** * Show an error message. */ window.errorstatus = function(s) { //debug('error', s); return showstatus(s, 'errorstatus'); }; /** * Show working status. */ window.workingstatus = function(w, c) { //debug('show working', w); if (isNull($('working'))) return w; if (!ui.isMobile()) $('working').style.top = ui.pixpos(Math.round(window.clientHeight / 2)); $('working').style.display = w? 'block' : 'none'; return w; }; /** * Show the online/offline status. */ window.onlinestatus = function() { return navigator.onLine? (ui.isMobile()? showstatus('Online') : showstatus('Online')) : errorstatus('Offline'); }; /** * Handle orientation change. */ document.body.onorientationchange = function(e) { //debug('onorientationchange'); return ui.onorientationchange(e); }; /** * Populate cache with app resources. */ var appresources = [ ['/all-min.js'], ['/ui-min.css'], ['/public/config-min.js'] ]; /** * Install the application cache. */ (function installappcache() { if (ui.isMobile()) { // On mobile devices, trigger usage of an application cache manifest window.onappcachechecking = function(e) { //debug('appcache checking', e); workingstatus(true); showstatus('Checking'); }; window.onappcacheerror = function(e) { //debug('appcache error', e); onlinestatus(); workingstatus(false); }; window.onappcachenoupdate = function(e) { //debug('appcache noupdate', e); onlinestatus(); workingstatus(false); }; window.onappcachedownloading = function(e) { //debug('appcache downloading', e); workingstatus(true); showstatus('Updating'); }; window.onappcacheprogress = function(e) { //debug('appcache progress', e); workingstatus(true); showstatus('Updating'); }; window.onappcacheupdateready = function(e) { //debug('appcache updateready', e); try { applicationCache.swapCache(); } catch(e) {} onlinestatus(); workingstatus(false); //debug('appcache swapped', e); // Update offline resources in local storage and reload the page map(function(res) { showstatus('Updating'); appcache.remove(res[0]); appcache.get(res[0], 'remote'); }, append(appresources, config.appresources())); window.location.reload(); }; window.onappcachecached = function(e) { //debug('appcache cached', e); onlinestatus(); workingstatus(false); // Install offline resources in local storage map(function(res) { showstatus('Updating'); appcache.remove(res[0]); appcache.get(res[0], 'remote'); }, append(appresources, config.appresources())); }; window.onloadappcache = function() { //debug('appcache iframe loaded'); }; ui.async(function() { $('installer').innerHTML = ''; }); } else { // On non-mobile devices, check for cache-manifest changes ourselves. workingstatus(true); showstatus('Checking'); var lcmf = appcache.get('/public/cache/cache-manifest.cmf', 'local'); var rcmf = appcache.get('/public/cache/cache-manifest.cmf', 'remote'); if (lcmf == rcmf) { onlinestatus(); workingstatus(false); return true; } //debug('cache-manifest changed, reloading'); ui.async(function() { showstatus('Updating'); ui.async(function() { map(function(res) { appcache.remove(res[0]); appcache.get(res[0], 'remote'); }, append(appresources, config.appresources())); if (!isNull(lcmf)) { //debug('reloading'); window.location.reload(); } onlinestatus(); workingstatus(false); }); }); } })(); /** * Handle network offline/online events. */ window.addEventListener('offline', function(e) { //debug('going offline'); showstatus('Offline'); }, false); window.addEventListener('online', function(e) { //debug('going online'); showstatus('Online'); }, false); /** * Initialize the document. */ window.onload = function() { //debug('onload'); return ui.onload(); }; })(); } catch(e) { debug(e.stack); throw e; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - hosting/server/htdocs/public/notyet/index.html [144:366]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $('viewhead').innerHTML = '' + config.pagetitle() + ''; if (!ui.isMobile()) $('viewcontent').className = 'viewcontent flatscrollbars'; $('status').className = ui.isMobile()? 'status3dm' : 'status3d'; })(); /** * Setup menu bar. */ (function showmenu() { $('menu').innerHTML = ui.menubar( mklist(ui.menu('menuhome', 'Home', '/', '_self', false)), mklist()); $('viewfoot').innerHTML = config.viewfoot(); })(); /** * Initialize status message area. */ (function initstatus() { if (isNull($('status'))) return; $('status').style.display = 'none'; function divtransitionend(e) { e.target.style.display = 'none'; e.target.className = ui.isMobile()? 'status3dm' : 'status3d'; e.target.error = false; } $('status').addEventListener('webkitTransitionEnd', divtransitionend, false); $('status').addEventListener('transitionend', divtransitionend, false); })(); /** * Show a status message. */ window.showstatus = function(s, c) { //debug('show status', s); if (isNull($('status')) || $('status').error) return s; $('status').innerHTML = '' + s + ''; $('status').className = ui.isMobile()? 'status3dm' : 'status3d'; $('status').style.display = 'block'; $('status').error = c == 'errorstatus'; if ($('status').delay) ui.cancelDelay($('status').delay); $('status').delay = ui.delay(function hidestatus() { $('status').className = ui.isMobile()? 'statusout3dm' : 'statusout3d'; $('status').error = false; }, 3000); return s; }; /** * Show an error message. */ window.errorstatus = function(s) { //debug('error', s); return showstatus(s, 'errorstatus'); }; /** * Show working status. */ window.workingstatus = function(w, c) { //debug('show working', w); if (isNull($('working'))) return w; if (!ui.isMobile()) $('working').style.top = ui.pixpos(Math.round(window.clientHeight / 2)); $('working').style.display = w? 'block' : 'none'; return w; }; /** * Show the online/offline status. */ window.onlinestatus = function() { return navigator.onLine? (ui.isMobile()? showstatus('Online') : showstatus('Online')) : errorstatus('Offline'); }; /** * Handle orientation change. */ document.body.onorientationchange = function(e) { //debug('onorientationchange'); return ui.onorientationchange(e); }; /** * Populate cache with app resources. */ var appresources = [ ['/all-min.js'], ['/ui-min.css'], ['/public/config-min.js'] ]; /** * Install the application cache. */ (function installappcache() { if (ui.isMobile()) { // On mobile devices, trigger usage of an application cache manifest window.onappcachechecking = function(e) { //debug('appcache checking', e); workingstatus(true); showstatus('Checking'); }; window.onappcacheerror = function(e) { //debug('appcache error', e); onlinestatus(); workingstatus(false); }; window.onappcachenoupdate = function(e) { //debug('appcache noupdate', e); onlinestatus(); workingstatus(false); }; window.onappcachedownloading = function(e) { //debug('appcache downloading', e); workingstatus(true); showstatus('Updating'); }; window.onappcacheprogress = function(e) { //debug('appcache progress', e); workingstatus(true); showstatus('Updating'); }; window.onappcacheupdateready = function(e) { //debug('appcache updateready', e); try { applicationCache.swapCache(); } catch(e) {} onlinestatus(); workingstatus(false); //debug('appcache swapped', e); // Update offline resources in local storage and reload the page map(function(res) { showstatus('Updating'); appcache.remove(res[0]); appcache.get(res[0], 'remote'); }, append(appresources, config.appresources())); window.location.reload(); }; window.onappcachecached = function(e) { //debug('appcache cached', e); onlinestatus(); workingstatus(false); // Install offline resources in local storage map(function(res) { showstatus('Updating'); appcache.remove(res[0]); appcache.get(res[0], 'remote'); }, append(appresources, config.appresources())); }; window.onloadappcache = function() { //debug('appcache iframe loaded'); }; ui.async(function() { $('installer').innerHTML = ''; }); } else { // On non-mobile devices, check for cache-manifest changes ourselves. workingstatus(true); showstatus('Checking'); var lcmf = appcache.get('/public/cache/cache-manifest.cmf', 'local'); var rcmf = appcache.get('/public/cache/cache-manifest.cmf', 'remote'); if (lcmf == rcmf) { onlinestatus(); workingstatus(false); return true; } //debug('cache-manifest changed, reloading'); ui.async(function() { showstatus('Updating'); ui.async(function() { map(function(res) { appcache.remove(res[0]); appcache.get(res[0], 'remote'); }, append(appresources, config.appresources())); if (!isNull(lcmf)) { //debug('reloading'); window.location.reload(); } onlinestatus(); workingstatus(false); }); }); } })(); /** * Handle network offline/online events. */ window.addEventListener('offline', function(e) { //debug('going offline'); showstatus('Offline'); }, false); window.addEventListener('online', function(e) { //debug('going online'); showstatus('Online'); }, false); /** * Initialize the document. */ window.onload = function() { //debug('onload'); return ui.onload(); }; })(); } catch(e) { debug(e.stack); throw e; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -