-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathavailable.html
36 lines (31 loc) · 1.32 KB
/
available.html
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
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- HTML Meta Tags -->
<title>Available Domain | is-a.dev</title>
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
<!-- Stylesheets -->
<link rel="stylesheet" href="styles/main.css" />
<link rel="stylesheet" href="styles/secondary.css" />
<link rel="stylesheet" href="https://cdn.hrsn.net/is-a-dev/website/fonts/Roboto/font.css" rel="prefetch" />
<link rel="stylesheet" href="https://cdn.hrsn.net/is-a-dev/website/fonts/UbuntuMono/font.css" rel="prefetch" />
</head>
<body>
<h1>Available Domain</h1>
<p>The subdomain <span id="subdomain"></span>.is-a.dev is available for registration!</p>
<a href="/">Return to the homepage to learn more.</a>
<script>
const params = new URLSearchParams(window.location.search);
const subdomain = params.get("d");
if (subdomain) {
const el = document.getElementById("subdomain");
if (el) el.textContent = subdomain;
} else {
window.location = "https://is-a.dev";
}
</script>
</body>
</html>