Browser Location Test
Test to illustrate bug with Aviator
JavaScript
$(function() {
var showLog = function( line ) {
$( document.body ).append( '<p>' + line + '</p>' );
};
if ("geolocation" in navigator) {
showLog( 'Location data is supported through your browser' );
navigator.geolocation.watchPosition(function(location) {
showLog( 'Lat:' + location.coords.latitude + ' Long:' + location.coords.longitude );
var derp = JSON.stringify(location.coords);
console.log( );
console.log (derp);
}, function(error) {
showLog( 'Browser location error! (' + error.code + ') ' + error.message );
});
} else {
showLog( 'Location data is not supported through your browser' );
}
});