diff options
| author | s1n <[email protected]> | 2020-03-28 10:31:08 -0700 |
|---|---|---|
| committer | s1n <[email protected]> | 2020-03-28 10:31:08 -0700 |
| commit | 6b81836e6b9815a2996a55ad37dcaa4d89f99e42 (patch) | |
| tree | 74bb9aa78ca31a6acfffd908e34dfb0df433c707 /ip-detection/js/main.js | |
| parent | Create .gitignore (diff) | |
| download | cyne.cf-backup-master.tar.xz cyne.cf-backup-master.zip | |
Diffstat (limited to 'ip-detection/js/main.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..ce117d8 --- /dev/null +++ b/ip-detection/js/main.js @@ -0,0 +1,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"); |