diff --git a/index.php b/index.php index 3334773..b72e614 100644 --- a/index.php +++ b/index.php @@ -801,6 +801,13 @@ $liveIndex = get_live_index($schedule); void appContainer.offsetWidth; // Trigger reflow appContainer.classList.add("shake"); + // Randomize wave color on drop + const r = Math.floor(Math.random() * 256); + const g = Math.floor(Math.random() * 256); + const b = Math.floor(Math.random() * 256); + waveColor = `rgba(${r}, ${g}, ${b}, 0.8)`; + waveGlow = `rgba(${r}, ${g}, ${b}, 0.4)`; + setTimeout(() => { flashEl.style.transition = "opacity 0.4s ease-out"; flashEl.style.opacity = "0";