summaryrefslogtreecommitdiff
path: root/tools/ip-detection
diff options
context:
space:
mode:
author8cy <[email protected]>2020-06-02 10:24:13 -0700
committer8cy <[email protected]>2020-06-02 10:24:13 -0700
commit2321b2a0acaa0cba14dc38633cd46adee838294c (patch)
treee556c69fc7fdb3d7afa7a1a4fd6b381112db126f /tools/ip-detection
downloadkyzer.co-admin-2321b2a0acaa0cba14dc38633cd46adee838294c.tar.xz
kyzer.co-admin-2321b2a0acaa0cba14dc38633cd46adee838294c.zip
Initial commit
Diffstat (limited to 'tools/ip-detection')
-rw-r--r--tools/ip-detection/.htaccess1
-rw-r--r--tools/ip-detection/index.html140
-rw-r--r--tools/ip-detection/js/main.js5
3 files changed, 146 insertions, 0 deletions
diff --git a/tools/ip-detection/.htaccess b/tools/ip-detection/.htaccess
new file mode 100644
index 0000000..45552cb
--- /dev/null
+++ b/tools/ip-detection/.htaccess
@@ -0,0 +1 @@
+Options -Indexes \ No newline at end of file
diff --git a/tools/ip-detection/index.html b/tools/ip-detection/index.html
new file mode 100644
index 0000000..9622371
--- /dev/null
+++ b/tools/ip-detection/index.html
@@ -0,0 +1,140 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <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>
+ <link rel="icon" type="image/jpg" href="/favicon.jpg" sizes="128x128">
+ <!-- Site metadata -->
+ <meta name="description" content="IP Detection">
+ <meta property="og:description" content="IP Detection">
+ <meta property="og:title" content="s1nical - IP Detection">
+ <meta property="twitter:card" content="summary">
+ <meta property="twitter:site" content="@9inny">
+ <meta property="og:image" content="">
+ <meta property="og:url" content="https://kyzer.co/ip-detection">
+ <link rel="apple-touch-icon" sizes="128x128" href="/favicon.jpg">
+ <link rel="icon" type="image/jpg" href="/favicon.jpg" sizes="128x128">
+ <link rel="canonical" href="https://kyzer.co/ip-detection">
+ <link rel="author" href="humans.txt" />
+ <!-- Schema.org Stuff -->
+ <script type="application/ld+json">
+ {
+ "name": "s1nical",
+ "alternateName": "s1n",
+ "description": "IP Detection",
+ "headline": "IP Detection",
+ "url": "https://kyzer.co/ip-detection",
+ "image": "",
+ "sameAs": [
+ "https://twitter.com/9inny",
+ "https://github.com/8cy",
+ "https://www.reddit.com/user/s1nical/"
+ ],
+ "publisher": {
+ "@type": "Organization",
+ "logo": {
+ "@type": "ImageObject",
+ "url": ""
+ }
+ },
+ "@type": "WebSite",
+ "@context": "http://schema.org"
+ }
+ </script>
+ <!-- External Libraries -->
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/0.3.1/trianglify.min.js"></script>
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
+ <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
+ <!-- CSS Links -->
+ <link rel="stylesheet" href="/about/css/main.css">
+ <link rel="stylesheet" href="/about/css/navigation-bar.css">
+ <link rel="stylesheet" href="/about/css/loader-animation.css">
+ <link rel="stylesheet" href="/about/css/blog-slider.css">
+ <link rel="stylesheet" href="/css/404.css">
+ <!-- Invisible Scripts -->
+ <script src="/js/loader-animation.js"></script>
+ <script src="/js/refresh-on-media.js"></script>
+ <script src="/ip-detection/js/main.js"></script>
+</head>
+
+ <body>
+ <!-- Visable Scripts -->
+ <script src="/js/background-sparkles.js"></script>
+
+ <!-- Navigation Bar -->
+ <div class="navigation-bar">
+ <nav class="nav">
+ <a href="/home/" class="nav-item" active-color="orange">Home</a>
+ <!-- Had `is-active` after it but removed it due to not highlighting. -->
+ <a href="/about/" class="nav-item" active-color="green">About</a> <!-- About -->
+ <!--<a href="https://p.s1n.pw/" class="nav-item" active-color="blue">Portfolio</a> <!-- Testimonials -->
+ <!--<a href="http://status.maldrama.ml" class="nav-item" active-color="red">Status</a> <!-- Blog -->
+ <!--<a href="/cars/" class="nav-item" active-color="rebeccapurple">Cars</a> <!-- Contact -->
+ <!--<a href="https://nani.s1n.pw" class="nav-item" active-color="rebeccapurple">Nani?!</a>-->
+ <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 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 class="result" id="details" style="text-align: left;"></pre>
+ <style>
+ @media (max-width: 768px) {
+ .content {
+ font-size: 10px;
+ }
+ }
+ </style>
+ <br class="mobile">
+ <h1>
+ <!-- Filler -->
+ </h1>
+ <a class="mobile" href="/home/">Back home</a>
+ <h1 class="mobile">
+ <!-- Filler -->
+ </h1>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <!-- Loading Animation -->
+ <div class="loader-wrapper">
+ <div class="loader">
+ <row>
+ <span></span>
+ <span></span>
+ <span></span>
+ </row>
+ <row>
+ <span></span>
+ <span></span>
+ <span></span>
+ </row>
+ <row>
+ <span></span>
+ <span></span>
+ <span></span>
+ </row>
+ </div>
+ </div>
+ </body>
+
+</html>
diff --git a/tools/ip-detection/js/main.js b/tools/ip-detection/js/main.js
new file mode 100644
index 0000000..ce117d8
--- /dev/null
+++ b/tools/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");