77 lines
3 KiB
HTML
77 lines
3 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="description" content="Ny4 IP Checker" />
|
|
<title>What is my IP?</title>
|
|
<link rel="icon" href="favicon.svg" />
|
|
<link rel="stylesheet" href="/src/style.css" />
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@500&display=swap"
|
|
/>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
|
|
<link rel="dns-prefetch" href="https://fonts.googleapis.com/" />
|
|
<link rel="dns-prefetch" href="https://fonts.gstatic.com/" />
|
|
<link rel="dns-prefetch" href="https://api.ip.sb/" />
|
|
<link rel="dns-prefetch" href="https://api-v3.speedtest.cn/" />
|
|
<link rel="dns-prefetch" href="https://api.ipapi.is/" />
|
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com/" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com/" />
|
|
<link rel="preconnect" href="https://api.ip.sb/" />
|
|
<link rel="preconnect" href="https://api-v3.speedtest.cn/" />
|
|
<link rel="preconnect" href="https://api.ipapi.is/" />
|
|
</head>
|
|
<body
|
|
class="text-violet-950 bg-violet-100 dark:text-slate-100 dark:bg-slate-900 font-mono font-medium text-sm md:text-base"
|
|
>
|
|
<div class="flex flex-col min-h-screen justify-center items-center">
|
|
<p class="py-2">Ny4 IP checker!</p>
|
|
<div>
|
|
<div
|
|
class="grid grid-cols-2 md:grid-cols-4 gap-2 p-2 border-b border-violet-300 dark:border-slate-700"
|
|
>
|
|
<div>ip.ny4.dev</div>
|
|
<div id="check-ny4-ip">Loading...</div>
|
|
<div id="check-ny4-location" class="col-span-2">Loading...</div>
|
|
</div>
|
|
<div
|
|
class="grid grid-cols-2 md:grid-cols-4 gap-2 p-2 border-b border-violet-300 dark:border-slate-700"
|
|
>
|
|
<div>ip.sb</div>
|
|
<div id="check-ipsb-ip">Loading...</div>
|
|
<div id="check-ipsb-location" class="col-span-2">Loading...</div>
|
|
</div>
|
|
<div
|
|
class="grid grid-cols-2 md:grid-cols-4 gap-2 p-2 border-b border-violet-300 dark:border-slate-700"
|
|
>
|
|
<div>ipapi.is</div>
|
|
<div id="check-ipapiis-ip">Loading...</div>
|
|
<div id="check-ipapiis-location" class="col-span-2">Loading...</div>
|
|
</div>
|
|
<div class="grid grid-cols-2 md:grid-cols-4 gap-2 p-2">
|
|
<div>ip-api.com</div>
|
|
<div id="check-speedtestcn-ip">Loading...</div>
|
|
<div id="check-speedtestcn-location" class="col-span-2">
|
|
Loading...
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<footer
|
|
class="fixed inset-x-0 bottom-0 p-2 text-center text-slate-600 dark:text-slate-400 text-xs md:text-sm"
|
|
>
|
|
(c) 2024 Guanran Wang, source code licenced under MIT.
|
|
|
|
<a
|
|
class="text-blue-400 hover:text-blue-600 visited:text-violet-500"
|
|
href="https://git.ny4.dev/nyancat/ip-checker"
|
|
>Git Repo</a
|
|
>
|
|
</footer>
|
|
</body>
|
|
</html>
|