add clouds
This commit is contained in:
parent
3fe0503063
commit
3ccf32b6f2
7 changed files with 203 additions and 33 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue