diff options
| author | s1n <[email protected]> | 2019-09-30 21:28:34 -0700 |
|---|---|---|
| committer | s1n <[email protected]> | 2019-09-30 21:28:34 -0700 |
| commit | 2fd2ed966dd2c3ad7526de55b69feac5df3cab69 (patch) | |
| tree | f7f7c97a1a6991f5be62bacb4f3d3410d5adc3f5 /ip-detection/js | |
| parent | add info (diff) | |
| download | s1n.pw-admin-2fd2ed966dd2c3ad7526de55b69feac5df3cab69.tar.xz s1n.pw-admin-2fd2ed966dd2c3ad7526de55b69feac5df3cab69.zip | |
test if ip detect works
Diffstat (limited to 'ip-detection/js')
| -rw-r--r-- | ip-detection/js/main.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ip-detection/js/main.js b/ip-detection/js/main.js new file mode 100644 index 0000000..9f6c6ec --- /dev/null +++ b/ip-detection/js/main.js @@ -0,0 +1,5 @@ +$.get("http://ipinfo.io", function (response) { + $("#ip").html("IP: " + response.ip); + $("#address").html("Location: " + response.city + ", " + response.region); + $("#details").html(JSON.stringify(response, null, 4)); +}, "jsonp");
\ No newline at end of file |