From 38d5476e81a500e6a930742153da48d7064efc7c Mon Sep 17 00:00:00 2001
From: sophie
+++Include my 88x31 into your website! (hotlinking allowed!)
+<a href="https://sad.ovh"> <img src="https://sad.ovh/assets/binkies/sadovh.png"> </a>++@@ -105,7 +119,8 @@ __TEMPLATE_HEAD__ - diff --git a/website/scripts/particles.ts b/website/scripts/particles.ts index 432a0fe..cd5e7de 100644 --- a/website/scripts/particles.ts +++ b/website/scripts/particles.ts @@ -93,3 +93,18 @@ document.documentElement.addEventListener("mousemove", (event) => { const particle = new Particle(event.pageX, event.pageY); particles.push(particle); }); + +document.documentElement.addEventListener("touchmove", function(e) { + for(let i = 0; i < e.touches.length; i++) { + if (Date.now() - lastMoveTimestamp < 50) { + return; + } + + lastMoveTimestamp = Date.now(); + const touch = e.touches.item(i); + if(!touch) return; + + const particle = new Particle(touch.pageX, touch.pageY); + particles.push(particle); + } +}, false); diff --git a/website/templates/head.html b/website/templates/head.html index a9f13ea..87ab44b 100644 --- a/website/templates/head.html +++ b/website/templates/head.html @@ -25,7 +25,9 @@ \ No newline at end of fileThis page is protected by a
+TAPIR
+ +Tapirs have changed very little over the past 20 million years.
+ + Want your own? Visit + hekate.neocities.org! + +