dir/view/jot_geotag.tpl

9 lines
232 B
Smarty
Executable file

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