diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-19 20:58:01 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-19 20:58:01 -0700 |
commit | b91e9545f75d196a8356a6c252278dee1cab95ae (patch) | |
tree | d03edde372a3d37bb47f2aa9f6cbb4077228cedd | |
parent | a8e4ec7801b5ca8c986febed1f95124b412e92f9 (diff) | |
download | volse-hubzilla-b91e9545f75d196a8356a6c252278dee1cab95ae.tar.gz volse-hubzilla-b91e9545f75d196a8356a6c252278dee1cab95ae.tar.bz2 volse-hubzilla-b91e9545f75d196a8356a6c252278dee1cab95ae.zip |
we'll need this for browser geotagging of course
-rw-r--r-- | view/jot_geotag.tpl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/view/jot_geotag.tpl b/view/jot_geotag.tpl new file mode 100644 index 000000000..835cc9ebb --- /dev/null +++ b/view/jot_geotag.tpl @@ -0,0 +1,7 @@ + + if(navigator.geolocation) { + navigator.geolocation.getCurrentPosition(function(position) { + $('#jot-coord').val(position.coords.latitude + ',' + position.coords.longitude); + }); + } + |