From cf9213c74ac802c0111b856b103f3a7bba42e48e Mon Sep 17 00:00:00 2001 From: limepotato Date: Tue, 25 Jun 2024 18:59:56 -0600 Subject: [PATCH] rain --- public/scripts/cursor.js | 2 +- public/scripts/rain.js | 112 ++++++++++++++++++++++++++++++ src/layouts/Layout-nochrome.astro | 82 +--------------------- 3 files changed, 114 insertions(+), 82 deletions(-) create mode 100644 public/scripts/rain.js diff --git a/public/scripts/cursor.js b/public/scripts/cursor.js index b871a07..509d5f1 100644 --- a/public/scripts/cursor.js +++ b/public/scripts/cursor.js @@ -1,6 +1,6 @@ // =shigh-16) { + flky[i]=-16; + fldy[i]=2+Math.floor(Math.random()*4); + flkx[i]=2*Math.floor(Math.random()*swide/2); + flks[i].style.left=flkx[i]+"px"; + } + flks[i].style.top=flky[i]+"px"; + } +} +// ]]> \ No newline at end of file diff --git a/src/layouts/Layout-nochrome.astro b/src/layouts/Layout-nochrome.astro index a119f9a..713fef6 100755 --- a/src/layouts/Layout-nochrome.astro +++ b/src/layouts/Layout-nochrome.astro @@ -23,86 +23,6 @@ const { title } = Astro.props;