summaryrefslogtreecommitdiff
path: root/wk8/lect/geolocation.html
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-04 23:53:13 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-07-04 23:53:13 +0000
commit8e8dc9dccfac082dc890ac21446bef07bbbbcfc4 (patch)
tree55e247d609e580fab781e8bbd8593d84e0381b3c /wk8/lect/geolocation.html
parenteccc08693b0498d8e5646cbfb850ad86e1871129 (diff)
Thu, Jul 4, 2024, 4:53 PM -07:00
Diffstat (limited to 'wk8/lect/geolocation.html')
-rw-r--r--wk8/lect/geolocation.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/wk8/lect/geolocation.html b/wk8/lect/geolocation.html
new file mode 100644
index 0000000..6abaaa5
--- /dev/null
+++ b/wk8/lect/geolocation.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+
+<html lang="en">
+ <head>
+ <title>geolocation</title>
+ </head>
+ <body>
+ <script>
+
+ navigator.geolocation.getCurrentPosition(function(position) {
+ document.write(position.coords.latitude + ", " + position.coords.longitude);
+ });
+ </script>
+ </body>
+</html>