]> git.mxchange.org Git - friendica.git/blob - view/theme/frost-mobile/templates/jot_geotag.tpl
Merge branch '1610-priority-dbclean' of github.com:annando/friendica into 1610-priori...
[friendica.git] / view / theme / frost-mobile / 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