]> git.mxchange.org Git - friendica.git/blob - view/theme/decaf-mobile/jot_geotag.tpl
template engine rework
[friendica.git] / view / theme / decaf-mobile / 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                         $j('#jot-coord').val(lat + ', ' + lon);
8                         $j('#profile-nolocation-wrapper').show();
9                 });
10         }
11