]> git.mxchange.org Git - friendica.git/blob - view/theme/frost/smarty3/jot_geotag.tpl
953051b1099bab8b48e0c1fe2b627d9624dfe280
[friendica.git] / view / theme / frost / smarty3 / jot_geotag.tpl
1 {{*
2  *      AUTOMATICALLY GENERATED TEMPLATE
3  *      DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
4  *
5  *}}
6         if(navigator.geolocation) {
7                 navigator.geolocation.getCurrentPosition(function(position) {
8                         var lat = position.coords.latitude.toFixed(4);
9                         var lon = position.coords.longitude.toFixed(4);
10
11                         $j('#jot-coord').val(lat + ', ' + lon);
12                         $j('#profile-nolocation-wrapper').show();
13                 });
14         }
15