From 4f68925a7c4af7b9f41a65fc9f8d0bb115d501ef Mon Sep 17 00:00:00 2001 From: dadaloop82 Date: Tue, 26 May 2026 17:28:22 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20insight=20banner=20rotation=2030s=20?= =?UTF-8?q?=E2=86=92=2060s=20(1=20minute=20per=20panel)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/app.js b/assets/js/app.js index 2cec51c..da795d9 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -4457,15 +4457,15 @@ const _INSIGHT_PHASES = ['waste', 'nutrition', 'monthly']; function _startInsightAlternation() { clearInterval(_insightFlipTimer); - // Pick initial panel cycling through 3 phases based on current 30-second slot - const idx = Math.floor(Date.now() / 30_000) % _INSIGHT_PHASES.length; + // Pick initial panel cycling through 3 phases based on current 60-second slot + const idx = Math.floor(Date.now() / 60_000) % _INSIGHT_PHASES.length; _insightPhase = _INSIGHT_PHASES[idx]; _applyInsightPhase(); - // Advance every 30 seconds so the rotation is actually visible + // Advance every 60 seconds (1 minute per panel) _insightFlipTimer = setInterval(() => { _insightPhase = _INSIGHT_PHASES[(_INSIGHT_PHASES.indexOf(_insightPhase) + 1) % _INSIGHT_PHASES.length]; _applyInsightPhase(); - }, 30_000); + }, 60_000); } function _applyInsightPhase() {