HTML and CSS Reference
In-Depth Information
});
}
}
};
$i.handleError function(error)
{
var msgNode document.getElementById('message');
switch(error.code)
{
caseerror.TIMEOUT:
msgNode.innerHTML+ 'Zeitüberschritten...';
navigator.geolocation.getCurrentPosition($i.showLocation,
$i.handleError, {timeout:30000, maximumAge:300000});
break;
caseerror.PERMISSION DENIED:
msgNode.innerHTML + 'Benutzer hat Positionierung
abgelehnt.';
break;
caseerror.POSITION UNAVAILABLE:
msgNode.innerHTML + 'Geo Position nicht verfügbar.';
break;
}
msgNode.innerHTML + ' Fehlermeldung: ' + error.message;
}
$i.hasGeo function()
{
if(navigator.geolocation)
returntrue;
else
returnfalse;
};
document.addEventListener("DOMContentLoaded", $i.init, false);
}).call();
</script>
</head>
<body>
<div id "topbar">
<div id "title">Fotos in ihrer N&auml;he</div>
</div>
<div id "content">
<ul class "pageitem">
<liclass "textbox">
<p>Geolocation API: <span id "message"></span></p>
Search WWH ::




Custom Search