youre-wrong/index.html

49 lines
1 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" href="/favicon.png" />
<title>Yeah, No</title>
<style>
* {
text-align: center;
margin: 0;
padding: 0;
}
.col {
display: flex;
flex-direction: column;
gap: 10px;
margin: auto;
max-width: 900px;
height: 100vh;
justify-content: center;
}
span {
font-family: serif;
}
h1 {
font-family: sans;
}
</style>
</head>
<body>
<div class="col">
<span>I'm sorry, <span id="name"></span> but...</span>
<h1>You're Wrong</h1>
</div>
<script>
const nameSpan = document.getElementById("name");
let name = (new URLSearchParams(window.location.search)).get("name");
if (name) {
nameSpan.innerHTML = name;
}
</script>
</body>
</html>