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