TEXT
181
function getLocation
Guest on 28th November 2024 01:53:32 PM
function getLocation() {
$.get("https://ipinfo.io", function(response) {
console.log(response.city, response.country);
}, "jsonp");
}
Raw Paste
Login or Register to edit or fork this paste. It's free.