From 9c7cbb794b660e6a4537fa43f6279f355c626a72 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Sat, 7 Oct 2017 23:45:16 -0700 Subject: [PATCH] adsf --- google/maps.js | 16 ++++++++++++++++ index.html | 11 +++++++++++ main.js | 3 ++- 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/google/maps.js b/google/maps.js index c740e21..f48c55b 100644 --- a/google/maps.js +++ b/google/maps.js @@ -15,3 +15,19 @@ function directionsURL(inCommand) { $('#input').unbind(); }); } +/* +var x = document.getElementById("input"); + +function getLocation() { + if (navigator.geolocation) { + navigator.geolocation.getCurrentPosition(showPosition); + } else { + x.innerHTML = "Geolocation is not supported by this browser."; + } +} + +function showPosition(position) { + x.innerHTML = "Latitude: " + position.coords.latitude + + "
Longitude: " + position.coords.longitude; +} +*/ diff --git a/index.html b/index.html index 31a32fa..dac8d61 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,7 @@ DoEverythingBar + @@ -14,6 +15,16 @@ +
diff --git a/main.js b/main.js index 801eb4b..56cc3db 100644 --- a/main.js +++ b/main.js @@ -17,7 +17,8 @@ var dict = { "gcal": makeEvent, "googlecalendar": makeEvent, "mapsd": directionsURL, - "directions": directionsURL + "directions": directionsURL, + "skype": skypeCall }; function error() {