Debug: show test output in info panel
This commit is contained in:
1 parent
a6b557b93e
commit
9d13b1386b
1 file changed
+5
-1
+5
-1
@@ -327,7 +327,7 @@
|
||||
<div class="info-icon">
|
||||
<svg id="moon-phase-icon" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" fill="#1c1b1f"/></svg>
|
||||
</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 class="info-row">
|
||||
<div class="info-icon">
|
||||
@@ -913,6 +913,10 @@ 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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user