summaryrefslogtreecommitdiff
path: root/ip-detection
diff options
context:
space:
mode:
authors1n <[email protected]>2019-11-04 17:03:26 -0800
committers1n <[email protected]>2019-11-04 17:03:26 -0800
commit8b472c1ffbdd8f3064dace4da15f278adb555d48 (patch)
tree5ffcd844785a8b0f243cc386f439ad24145d7bfa /ip-detection
parentrem (diff)
parentcopypaste fix (diff)
downloads1n.pw-admin-8b472c1ffbdd8f3064dace4da15f278adb555d48.tar.xz
s1n.pw-admin-8b472c1ffbdd8f3064dace4da15f278adb555d48.zip
Merge branch 'master' of https://github.com/8cy/s1n.pw-admin
Diffstat (limited to 'ip-detection')
-rw-r--r--ip-detection/index.html15
-rw-r--r--ip-detection/js/main.js6
2 files changed, 15 insertions, 6 deletions
diff --git a/ip-detection/index.html b/ip-detection/index.html
index 1bab944..a5f4f0f 100644
--- a/ip-detection/index.html
+++ b/ip-detection/index.html
@@ -40,15 +40,24 @@
<span class="nav-indicator"></span>
</nav>
</div>
+
+ <style>
+ .result {
+ -webkit-user-select: text;
+ -moz-user-select: text;
+ -ms-user-select: text;
+ user-select: text;
+ }
+ </style>
<div class="bio">
<div class="links">
<div class="blog-slider">
<div class="content">
- <div id="ip" style="text-align: center;"></div>
- <div id="address" style="text-align: center;"></div>
+ <div style="text-align: center;">IP: <span class="result" id="ip"></span></div>
+ <div style="text-align: center;">Location: <span class="result" id="address"></span></div>
<hr/><h3 style="text-align: center;">Full Response:</h3>
- <pre id="details" style="text-align: left;"></pre>
+ <pre class="result" id="details" style="text-align: left;"></pre>
<h1>
<!-- Filler -->
</h1>
diff --git a/ip-detection/js/main.js b/ip-detection/js/main.js
index 28a66dc..ce117d8 100644
--- a/ip-detection/js/main.js
+++ b/ip-detection/js/main.js
@@ -1,5 +1,5 @@
$.get("https://ipinfo.io/json", function (response) {
- $("#ip").html("IP: " + response.ip);
- $("#address").html("Location: " + response.city + ", " + response.region);
+ $("#ip").html(response.ip);
+ $("#address").html(response.city + ", " + response.region);
$("#details").html(JSON.stringify(response, null, 4));
-}, "jsonp"); \ No newline at end of file
+}, "jsonp");