summaryrefslogtreecommitdiff
path: root/tools/ip-detection/js/main.js
blob: ce117d8e76d48be5bc9494a49b0696d8752ad849 (plain) (blame)
1
2
3
4
5
$.get("https://ipinfo.io/json", function (response) {
    $("#ip").html(response.ip);
    $("#address").html(response.city + ", " + response.region);
    $("#details").html(JSON.stringify(response, null, 4));
}, "jsonp");