diff --git a/src/components/SubpageRain.astro b/src/components/SubpageRain.astro index 89a7ed4..61885ac 100644 --- a/src/components/SubpageRain.astro +++ b/src/components/SubpageRain.astro @@ -8,6 +8,7 @@ window.rainData = function() { wind: 0, lofiFilter: 800, musicVolume: 30, + lofiSrc: '', drops: [], audioCtx: null, noiseNode: null, @@ -103,7 +104,7 @@ window.rainData = function() {
+ x-init="generateDrops(rainIntensity); $watch('rainIntensity', value => { generateDrops(value); updateAudio() }); $watch('lofiFilter', value => updateAudio()); $watch('currentPage', val => { if(val === 'page-rain') { initAudio(); lofiSrc = 'https://www.youtube.com/embed/jfKfPfyJRdk?autoplay=1'; } else { lofiSrc = ''; } })">
@@ -163,7 +164,7 @@ window.rainData = function() { Lofi Hip Hop Groove (YouTube Stream)
- +