Skip to content

Instantly share code, notes, and snippets.

@n0f3 n0f3/codecampsnippets.js
Last active Dec 2, 2015

Embed
What would you like to do?
A collection of snippets from freecodecamp for reference
// This is to access the location from the browser.
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
You can’t perform that action at this time.