$(document).ready(function(){ if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { $.getJSON('http://ws.geonames.org/countryCode', { lat: position.coords.latitude, lng: position.coords.longitude, type: 'JSON' }, function(result) { alert('Country: ' + result.countryName + '\n' + 'Code: ' + result.countryCode); }); }); }? });

 

 

 

[Index wide screen]

[Index 1024 pixel or smaller]