3a87346dba463f08d1da4c3249556bac7c115604
[friendica.git/.git] / view / theme / frost / templates / jot_geotag.tpl
1
2         if(navigator.geolocation) {
3                 navigator.geolocation.getCurrentPosition(function(position) {
4                         var lat = position.coords.latitude.toFixed(4);
5                         var lon = position.coords.longitude.toFixed(4);
6
7                         $('#jot-coord').val(lat + ', ' + lon);
8                         $('#profile-nolocation-wrapper').show();
9                 });
10         }
11