friendica/view/jot_geotag.tpl

8 lines
188 B
Smarty
Raw Normal View History

if(navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
$('#jot-coord').val(position.coords.latitude + ',' + position.coords.longitude);
});
}