HTML and CSS Reference
In-Depth Information
(function my() {
var $i {};
$i.init function()
{
document.getElementById('message').innerHTML $i.hasGeo() ?
'Vorhanden' : 'Nicht vorhanden';
};
$i.hasGeo function()
{
if(Modernizr.geolocation)
returntrue;
else
returnfalse;
};
document.addEventListener("DOMContentLoaded", $i.init, false);
}).call();
</script>
</head>
<body>
<div id "topbar">
<div id "title">Erkennung mit Modernizr</div>
</div>
<div id "content">
<ul class "pageitem">
<liclass "textbox">
<p>Geolocation API:<spanid "message"></span></p>
</li>
</ul>
</div>
<div id "footer">
<a class "noeffect" href "http://iwebkit.net">Powered by
iWebKit</a>
</div>
</body>
</html>
Search WWH ::




Custom Search