Created
February 7, 2015 22:35
-
-
Save bran921007/89b0a7523c4a5052f209 to your computer and use it in GitHub Desktop.
Detectar país del usuario con jQuery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<script> | |
$.getJSON('http://api.wipmania.com/jsonp?callback=?', function (data) { | |
alert('País: ' + data.address.country); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment