Created
August 9, 2016 04:06
-
-
Save pablocortez/22da3d18227b474f993b43ebec0786eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GET LOCATION | |
if (navigator.geolocation) { | |
navigator.geolocation.getCurrentPosition(function(position) { | |
$("#data").html("latitude: " + position.coords.latitude + "<br>longitude: " + position.coords.longitude); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment