diff --git a/index.html b/index.html
index 632c674..465e077 100644
--- a/index.html
+++ b/index.html
@@ -327,7 +327,7 @@
@@ -337,7 +337,7 @@
@@ -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);
}