TEXT   155
function getLocation
Guest on 28th November 2024 01:53:32 PM


  1.   function getLocation() {
  2.         $.get("https://ipinfo.io", function(response) {
  3.     console.log(response.city, response.country);
  4. }, "jsonp");
  5.     }

Raw Paste

Login or Register to edit or fork this paste. It's free.