Skip to content

Instantly share code, notes, and snippets.

@SinisterLight
Created June 3, 2013 11:08
Show Gist options
  • Save SinisterLight/5697481 to your computer and use it in GitHub Desktop.
Save SinisterLight/5697481 to your computer and use it in GitHub Desktop.
function success(position) {
}
function error() {
}
if (navigator.geolocation) navigator.geolocation.getCurrentPosition(success, error);
else error();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment