Nothing Special   »   [go: up one dir, main page]

Skip to content

Instantly share code, notes, and snippets.

@kiero
Created December 3, 2012 16:14
Show Gist options
  • Save kiero/4196007 to your computer and use it in GitHub Desktop.
Save kiero/4196007 to your computer and use it in GitHub Desktop.
$(function(){
navigator.geolocation.getCurrentPosition(function(pos){
$.post('/',{latitude: pos.coords.latitude, longitude: pos.coords.longitude}, function(data) { console.log(data); })
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment