Created
August 7, 2017 09:41
-
-
Save mckrava/efe50fbc9983cf574feacfdbb62ec615 to your computer and use it in GitHub Desktop.
Get user location by ip
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
| $.get("https://ipinfo.io", function(response) { | |
| console.log(response); | |
| current_country = response.country; | |
| }, "jsonp"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment