Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- var latitude = '';
- var longitude = '';
- navigator.geolocation.getCurrentPosition(function(position) {
- latitude = position.coords.latitude;
- longitude = position.coords.longitude;
- console.log('lat=' + latitude + ' long=' + longitude);
- });
- });
Add Comment
Please, Sign In to add comment