summaryrefslogtreecommitdiff
path: root/ip-detection
diff options
context:
space:
mode:
authors1n <[email protected]>2019-09-30 21:42:40 -0700
committers1n <[email protected]>2019-09-30 21:42:40 -0700
commit139819bfea6c48ab9110b95f43972f434b83487e (patch)
treec68cb8c76bb44782fc82887c7f1897c837f1a079 /ip-detection
parentMerge branch 'master' of https://github.com/8cy/about-me (diff)
downloads1n.pw-admin-139819bfea6c48ab9110b95f43972f434b83487e.tar.xz
s1n.pw-admin-139819bfea6c48ab9110b95f43972f434b83487e.zip
rewrite test
Diffstat (limited to 'ip-detection')
-rw-r--r--ip-detection/index.html6
-rw-r--r--ip-detection/js/main.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/ip-detection/index.html b/ip-detection/index.html
index d21199c..a8b573b 100644
--- a/ip-detection/index.html
+++ b/ip-detection/index.html
@@ -5,10 +5,10 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>s1nical - IP Detection</title>
+ <title>s1nical - :)</title>
<!-- CSS Links -->
<!-- External Libraries -->
- <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Invisible Script Links -->
</head>
@@ -17,7 +17,7 @@
<script src="/ip-detection/js/main.js"></script>
<h3>Client side IP geolocation using <a href="http://ipinfo.io">ipinfo.io</a></h3>
-
+
<hr />
<div id="ip"></div>
<div id="address"></div>
diff --git a/ip-detection/js/main.js b/ip-detection/js/main.js
index 9f6c6ec..28a66dc 100644
--- a/ip-detection/js/main.js
+++ b/ip-detection/js/main.js
@@ -1,4 +1,4 @@
-$.get("http://ipinfo.io", function (response) {
+$.get("https://ipinfo.io/json", function (response) {
$("#ip").html("IP: " + response.ip);
$("#address").html("Location: " + response.city + ", " + response.region);
$("#details").html(JSON.stringify(response, null, 4));