]> git.mxchange.org Git - friendica.git/blob - view/theme/frost/templates/jot_geotag.tpl
Merge pull request #5128 from tobiasd/20180525-5067
[friendica.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