fireworks-quest/index.html

104 lines
1.9 KiB
HTML
Raw Permalink Normal View History

2024-08-24 00:13:53 +00:00
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="./bundle.js" async defer type="module"></script>
<link href="font.css" rel="stylesheet">
<title>blub</title>
<style>
body {
background-color: black;
}
* {
margin: 0px;
padding: 0px;
}
@keyframes fadein {
0% {
background-color: #ff000000;
color: #ffffff00; /*nothing*/
}
30% {
background-color: #ff000055;
}
to {
background-color: #ff000055;
color: #ffffffff; /*white*/
}
}
@keyframes fadein30 {
from {
opacity: 0;
}
30% {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadein50 {
from {
opacity: 0;
}
50% {
opacity: 0;
}
to {
opacity: 1;
}
}
center {
margin-top: 15%;
padding-top: 5%;
padding-bottom: 5%;
position: absolute;
width: 100%;
background-color: #ff000055;
animation-iteration-count: 1;
animation-name: fadein;
animation-duration: 8s;
}
* {
font-family: "Pirata One", system-ui;
}
h1 {
font-size: 5em;
animation: fadein30 8s;
}
h2 {
animation: fadein50 8s;
}
</style>
<script>
document.onreadystatechange = _ => {
if(document.readyState === "complete") {
2024-08-24 00:20:11 +00:00
document.getElementById("thing").innerHTML = window.location.hash ? decodeURI(window.location.hash.substr(1)) : "no hash specified"
2024-08-24 00:13:53 +00:00
}
};
</script>
</head>
<body>
<center>
<h1>Quest Complete</h1>
<h2>=== <span id="thing">Placeholder Text</span> ===</h2>
</center>
</body>
</html>