Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

7 lines (6 sloc) 0.329 kB
<script>
navigator.geolocation.watchPosition(function(pos){
alert(pos.coords.latitude + ',' + pos.coords.longitude + ' with accuracy: ' + pos.coords.accuracy + ' last sampled: ' + new Date(pos.timestamp));
}, function(e){alert("Some kinda GPS error."); console.log(e);},
{maximumAge: 0, enableHighAccuracy: true})
</script>
Jump to Line
Something went wrong with that request. Please try again.