ip-checker/assets/index.html

55 lines
1.5 KiB
HTML
Raw Normal View History

2024-08-26 22:01:24 +00:00
<!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 href="static/style.css" rel="stylesheet" />
<script src="static/script.js" defer></script>
</head>
<body>
<div class="center">
<p>Ny4 IP checker!</p>
<!-- FIXME: this is not responsive -->
2024-08-26 22:01:24 +00:00
<table>
<thead>
<tr>
<th>source</th>
<th>ip</th>
<th>location</th>
</tr>
</thead>
<tbody>
<tr>
<th>local</th>
<th>{{.sourceIP}}</th>
<th>N/A</th>
</tr>
<tr>
<th>ip.sb</th>
<th id="check-ipsb-ip">Loading...</th>
<th id="check-ipsb-location">Loading...</th>
</tr>
<tr>
<th>ipapi.is</th>
<th id="check-ipapiis-ip">Loading...</th>
<th id="check-ipapiis-location">Loading...</th>
</tr>
<tr>
<th>ip-api.com</th>
<th id="check-speedtestcn-ip">Loading...</th>
<th id="check-speedtestcn-location">Loading...</th>
</tr>
</tbody>
</table>
</div>
<footer>
(c) 2024 Guanran Wang, source code licenced under MIT.
<a href="https://git.ny4.dev/nyancat/ip-checker">Git Repo</a>
</footer>
</body>
</html>