friendica/view/jot_geotag.tpl

9 lines
232 B
Smarty
Raw Permalink Normal View History

if(navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
2011-01-05 11:32:18 +01:00
$('#jot-coord').val(position.coords.latitude + ' ' + position.coords.longitude);
$('#profile-nolocation-wrapper').show();
});
}