function online() { //return false; return navigator.onLine; }