add clouds

This commit is contained in:
Joshua Seigler 2025-05-08 00:50:14 -04:00
parent 3fe0503063
commit 3ccf32b6f2
7 changed files with 203 additions and 33 deletions

View file

@ -27,4 +27,15 @@ title: Joshua's Homepage
</main>
{% include "-footer.njk" %}
</body>
<script>
function setScrollAmount() {
const body = document.documentElement || document.body;
const scrolledFraction =
body.scrollTop / (body.scrollHeight - body.clientHeight);
body.style.setProperty("--scrollLengthPx", body.scrollTop);
}
setScrollAmount();
document.addEventListener("scroll", setScrollAmount);
document.addEventListener("resize", setScrollAmount);
</script>
</html>