diff options
Diffstat (limited to 'view/tpl/smarty3/jot_geotag.tpl')
-rw-r--r-- | view/tpl/smarty3/jot_geotag.tpl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/view/tpl/smarty3/jot_geotag.tpl b/view/tpl/smarty3/jot_geotag.tpl new file mode 100644 index 000000000..b0f71e73b --- /dev/null +++ b/view/tpl/smarty3/jot_geotag.tpl @@ -0,0 +1,8 @@ + + if(navigator.geolocation) { + navigator.geolocation.getCurrentPosition(function(position) { + $('#jot-coord').val(position.coords.latitude + ' ' + position.coords.longitude); + $('#profile-nolocation-wrapper').show(); + }); + } + |