-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfetch.html
More file actions
26 lines (26 loc) · 824 Bytes
/
fetch.html
File metadata and controls
26 lines (26 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Your IP</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
</head>
<body class="bg-light d-flex justify-content-center align-items-center vh-100">
<div class="card text-center shadow p-4" style="max-width: 28rem">
<h1 class="h5 text-primary mb-3">Your IP</h1>
<div class="fs-3" id="ip">
<script server>
echo(async () => {
await new Promise((r) => setTimeout(r, 500));
const res = await fetch("https://4.icanhazip.com/");
return res.body;
});
</script>
</div>
</div>
</body>
</html>