Debug: show test output in info panel

This commit is contained in:
Richard Zink committed 2026-10-07 11:11:26 +02:00
1 parent a6b557b93e
commit 9d13b1386b
1 file changed
+5 -1
+5 -1
View File
@@ -327,7 +327,7 @@
<div class="info-icon"> <div class="info-icon">
<svg id="moon-phase-icon" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" fill="#1c1b1f"/></svg> <svg id="moon-phase-icon" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" fill="#1c1b1f"/></svg>
</div> </div>
<div class="info-content"><span class="info-label">Mondphase</span><span class="info-value" id="moon-phase-text">--</span></div> <div class="info-content"><span class="info-label">Mondphase</span><span class="info-value" id="moon-phase-text">--</span><span id="dbg-test" style="color:red"></span></div>
</div> </div>
<div class="info-row"> <div class="info-row">
<div class="info-icon"> <div class="info-icon">
@@ -913,6 +913,10 @@ if (moonTimes.set) {
var moonZenithWhen = moonZenith && moonZenith > now ? formatDateLong(moonZenith) : ''; var moonZenithWhen = moonZenith && moonZenith > now ? formatDateLong(moonZenith) : '';
document.getElementById('moon-zenith-value').textContent = moonZenith ? formatTimeHM(moonZenith) : '--:--'; document.getElementById('moon-zenith-value').textContent = moonZenith ? formatTimeHM(moonZenith) : '--:--';
document.getElementById('moon-zenith-when').textContent = moonZenithWhen ? '· ' + moonZenithWhen : ''; 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) { } catch (e) {
console.log('updateClock error:', e); console.log('updateClock error:', e);
} }