diff --git a/index.html b/index.html index 9e544e6..9623fe7 100644 --- a/index.html +++ b/index.html @@ -87,11 +87,13 @@ - - + + + + - - + + @@ -237,13 +239,8 @@ var hourMarks = document.getElementById('hour-marks'); var rpgArcBg = document.getElementById('rpg-arc-bg'); var rpgSun = document.getElementById('rpg-sun'); - var rpgMoon = document.getElementById('rpg-moon'); - var sunriseMarker = document.getElementById('sunrise-marker'); - var sunsetMarker = document.getElementById('sunset-marker'); - var moonriseMarker = document.getElementById('moonrise-marker'); - var moonsetMarker = document.getElementById('moonset-marker'); - var rpgArcBg = document.getElementById('rpg-arc-bg'); - var rpgSun = document.getElementById('rpg-sun'); + var rpgSunGlow = document.getElementById('rpg-sun-glow'); + var rpgSunCore = document.getElementById('rpg-sun-core'); var rpgMoon = document.getElementById('rpg-moon'); var sunriseMarker = document.getElementById('sunrise-marker'); var sunsetMarker = document.getElementById('sunset-marker'); @@ -425,11 +422,23 @@ rpgSun.setAttribute('cx', sunP.x); rpgSun.setAttribute('cy', sunP.y); rpgSun.setAttribute('opacity', '1'); + rpgSunGlow.setAttribute('cx', sunP.x); + rpgSunGlow.setAttribute('cy', sunP.y); + rpgSunGlow.setAttribute('opacity', '0.4'); + rpgSunCore.setAttribute('cx', sunP.x); + rpgSunCore.setAttribute('cy', sunP.y); + rpgSunCore.setAttribute('opacity', '1'); } else { var sunP = timeToPoint(now, sunOrbitRadius); rpgSun.setAttribute('cx', sunP.x); rpgSun.setAttribute('cy', sunP.y); - rpgSun.setAttribute('opacity', '0.25'); + rpgSun.setAttribute('opacity', '0.4'); + rpgSunGlow.setAttribute('cx', sunP.x); + rpgSunGlow.setAttribute('cy', sunP.y); + rpgSunGlow.setAttribute('opacity', '0.15'); + rpgSunCore.setAttribute('cx', sunP.x); + rpgSunCore.setAttribute('cy', sunP.y); + rpgSunCore.setAttribute('opacity', '0.4'); } var moonTimes = SunCalc.getMoonTimes(now, PASSAU_LAT, PASSAU_LON);