From d8a644864b4c70cd7e1ad8243da960144fe6d849 Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Wed, 7 Oct 2026 08:06:56 +0200 Subject: [PATCH] Add debug info to check moon position --- index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.html b/index.html index 7eea6e5..20a3535 100644 --- a/index.html +++ b/index.html @@ -76,6 +76,7 @@
+
@@ -569,6 +570,11 @@ getMoonPhaseText(moonIllum.phase) + ' ' + Math.round(moonIllum.fraction * 100) + '%'; renderMoonPhaseIcon(moonIllum.phase); renderRpgMoon(moonIllum.phase); + + document.getElementById('debug').textContent = + 'rpg-moon exists: ' + (rpgMoon !== null) + + ' | lit: ' + (rpgMoonLit !== null) + + ' | moonPos: ' + (moonPos ? Math.round(moonPos.point.x) + ',' + Math.round(moonPos.point.y) : 'null'); } var startTime = Date.now();