hosting/server/htdocs/public/notyet/index.html [222:366]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }; /** * 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/oops/index.html [221:365]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }; /** * 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; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -