summaryrefslogtreecommitdiff
path: root/ip-detection/js
diff options
context:
space:
mode:
authors1n <[email protected]>2019-09-30 21:28:34 -0700
committers1n <[email protected]>2019-09-30 21:28:34 -0700
commit2fd2ed966dd2c3ad7526de55b69feac5df3cab69 (patch)
treef7f7c97a1a6991f5be62bacb4f3d3410d5adc3f5 /ip-detection/js
parentadd info (diff)
downloads1n.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.js5
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