hosting/server/htdocs/index.html [572:626]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/**
* 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) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
hosting/server/htdocs/public/oops/index.html [240:294]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/**
* 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) {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -