HTML and CSS Reference
In-Depth Information
<script src "javascript/functions.js" type "text/javascript"></script>
<! Feature Detection mit Modernizr >
<script src "js/modernizr 1.5.js" type "text/javascript"></script>
<script>
(function my() {
var $i {};
$i.vars {};
$i.init function()
{
if(!$i.hasApplicationCache())
{
alert('NoapplicationCache!');
return;
}
//online offline aktuell nicht unterst├╝tzt
window.addEventListener("online",function(){
alert('Du bist online!');
},true);
window.addEventListener("offline",function(){
alert('Du bist offline!');
},true);
document.getElementById('message').innerHTML
(navigator.onLine) ? 'online' : 'offline';
var cache window.applicationCache;
//setTimeout(function(){
// cache.update();
//},5000);
document.getElementById('message').innerHTML + ' / status: ' +
cache.status;
//setTimeout(function(){
// document.getElementById('message').innerHTML + ' /
status(2s): ' + cache.status;
//}, 2000);
var handler function(e) {
var eventsNode document.getElementById('events');
eventsNode.innerHTML + e.type + '<br/>';
if ((e.type 'checking' || e.type 'progress') &&
!$i.startTimestamp) //on Android: no checking event
$i.startTimestamp e.timeStamp;
else if (e.type 'noupdate' || e.type 'updateready' ||
e.type 'cached')
Search WWH ::




Custom Search