]> git.mxchange.org Git - friendica.git/blobdiff - view/jot_geotag.tpl
we'll need this for browser geotagging of course
[friendica.git] / view / jot_geotag.tpl
diff --git a/view/jot_geotag.tpl b/view/jot_geotag.tpl
new file mode 100644 (file)
index 0000000..835cc9e
--- /dev/null
@@ -0,0 +1,7 @@
+
+       if(navigator.geolocation) {
+               navigator.geolocation.getCurrentPosition(function(position) {
+                       $('#jot-coord').val(position.coords.latitude + ',' + position.coords.longitude);
+               });
+       }
+