From 355201b1748ba3301b6d1dc7a0167dad45da665f Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Wed, 7 Oct 2026 11:15:08 +0200 Subject: [PATCH] Debug: add update counter --- index.html | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 632c674..465e077 100644 --- a/index.html +++ b/index.html @@ -327,7 +327,7 @@
-
Mondphase--
+
Mondphase--
@@ -337,7 +337,7 @@
- +
Zenit Mond--:--
@@ -772,6 +772,7 @@ var effect = (VANTA.CLOUDS2 || VANTA.CLOUDS)({ function updateClockAndEvents() { try { + window._updateCounter = (window._updateCounter || 0) + 1; var now = new Date(); // Real-time clock hands and digital @@ -898,7 +899,7 @@ if (moonTimes.set) { // Moon phase var moonIllum = SunCalc.getMoonIllumination(now); document.getElementById('moon-phase-text').textContent = - getMoonPhaseText(moonIllum.phase) + ' ' + Math.round(moonIllum.fraction * 100) + '%'; + getMoonPhaseText(moonIllum.phase) + ' ' + Math.round(moonIllum.fraction * 100) + '%' + ' #' + window._updateCounter; renderMoonPhaseIcon(moonIllum.phase, moonIllum.fraction); renderRpgMoon(moonIllum.phase, moonIllum.fraction); @@ -913,10 +914,6 @@ if (moonTimes.set) { var moonZenithWhen = moonZenith && moonZenith > now ? formatDateLong(moonZenith) : ''; document.getElementById('moon-zenith-value').textContent = moonZenith ? formatTimeHM(moonZenith) : '--:--'; document.getElementById('moon-zenith-when').textContent = moonZenithWhen ? 'ยท ' + moonZenithWhen : ''; - var dbgEl = document.getElementById('dbg-test'); - if (dbgEl) { - dbgEl.textContent = 'moon-zenith: ' + (moonZenith ? formatTimeHM(moonZenith) : 'none') + ' visible: ' + moonVisible; - } } catch (e) { console.log('updateClock error:', e); }