From 7119736057e0413071517d5f48fd44257999a517 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Mon, 23 Feb 2026 21:06:37 +0100 Subject: [PATCH] Tried updating snowfall --- src/App.jsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index e7454f8..0e5dcfe 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -21,6 +21,15 @@ function isSnowfallSeason(date = DateTime.now()) { return date <= prevEnd; } +// Gibt alle 10 Sekunden einen anderen Boolean zurück, basierend auf der aktuellen Sekunde +function isTenSecondInterval() { + const seconds = DateTime.now().second; + // true für 0-9, 20-29, 40-49; false sonst + return (seconds >= 0 && seconds < 10) || (seconds >= 20 && seconds < 30) || (seconds >= 40 && seconds < 50); +} + + + export default function LiquidDevelopment() { return (
- {isSnowfallSeason() && } + {isTenSecondInterval() && }