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