aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-19 20:58:01 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-19 20:58:01 -0700
commitb91e9545f75d196a8356a6c252278dee1cab95ae (patch)
treed03edde372a3d37bb47f2aa9f6cbb4077228cedd
parenta8e4ec7801b5ca8c986febed1f95124b412e92f9 (diff)
downloadvolse-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.tpl7
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);
+ });
+ }
+