hosting/server/htdocs/index.html [647:690]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if (lcmf == rcmf) {
onlinestatus();
workingstatus(false);
return true;
}
//debug('cache-manifest changed, reloading');
ui.async(function() {
workingstatus(true);
showstatus('Updating');
ui.async(function() {
workingstatus(true);
showstatus('Updating');
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() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
hosting/server/htdocs/login/index.html [453:496]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if (lcmf == rcmf) {
onlinestatus();
workingstatus(false);
return true;
}
//debug('cache-manifest changed, reloading');
ui.async(function() {
workingstatus(true);
showstatus('Updating');
ui.async(function() {
workingstatus(true);
showstatus('Updating');
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() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -