youre-wrong/index.html

49 lines
1 KiB
HTML
Raw Permalink Normal View History

2024-10-05 14:19:24 -03:00
<!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">
2024-10-06 12:21:27 -03:00
<span>I'm sorry, <span id="name"></span> but...</span>
2024-10-05 14:19:24 -03:00
<h1>You're Wrong</h1>
</div>
2024-10-06 12:21:27 -03:00
<script>
const nameSpan = document.getElementById("name");
let name = (new URLSearchParams(window.location.search)).get("name");
if (name) {
nameSpan.innerHTML = name;
}
</script>
2024-10-05 14:19:24 -03:00
</body>
</html>