Kleinigkeiten und codierung
This commit is contained in:
@@ -109,7 +109,7 @@ $years = range($currentYear - 2, $currentYear + 5);
|
||||
$months = [
|
||||
1 => 'Januar',
|
||||
2 => 'Februar',
|
||||
3 => 'Maerz',
|
||||
3 => 'März',
|
||||
4 => 'April',
|
||||
5 => 'Mai',
|
||||
6 => 'Juni',
|
||||
@@ -1268,7 +1268,7 @@ foreach ($venusPeakMagnitudeEvents as $venusPeakMagnitudeEvent) {
|
||||
: '';
|
||||
|
||||
$monthEventList[] = [
|
||||
'event' => trim('Venus in groesster Helligkeit' . ($magnitudeText !== '' ? ' (' . $magnitudeText . ')' : '')),
|
||||
'event' => trim('Venus in größter Helligkeit' . ($magnitudeText !== '' ? ' (' . $magnitudeText . ')' : '')),
|
||||
'date' => (string) ($venusPeakMagnitudeEvent['local_date'] ?? ''),
|
||||
'time' => (string) ($venusPeakMagnitudeEvent['local_time'] ?? ''),
|
||||
'local_iso' => (string) ($venusPeakMagnitudeEvent['local_iso'] ?? ''),
|
||||
@@ -1575,8 +1575,8 @@ $observationTipCalendarFilenameJson = json_encode(sprintf('astrotools-monatserei
|
||||
<div class="monatsvorhersage-shell">
|
||||
<form class="monatsvorhersage-form" method="get">
|
||||
<div class="monatsvorhersage-form-header">
|
||||
<h3>Zeitraum waehlen</h3>
|
||||
<p>Die Sternkarte wird fuer den 15. des gewaehlten Monats mit der festen Monatsuhrzeit erzeugt.</p>
|
||||
<h3>Zeitraum wählen</h3>
|
||||
<p>Die Sternkarte wird fuer den 15. des gewählten Monats mit der festen Monatsuhrzeit erzeugt.</p>
|
||||
</div>
|
||||
|
||||
<label class="monatsvorhersage-field">
|
||||
@@ -1629,7 +1629,7 @@ $observationTipCalendarFilenameJson = json_encode(sprintf('astrotools-monatserei
|
||||
<section class="monatskarte-card">
|
||||
<div class="monatskarte-header">
|
||||
<div>
|
||||
<h3>Südhimmel <?= htmlspecialchars($months[$selectedMonth] . ' ' . (string) $selectedYear, ENT_QUOTES, 'UTF-8') ?></h3>
|
||||
<h3>Südhimmel <?= htmlspecialchars($months[$selectedMonth] . ' ' . (string) $selectedYear, ENT_QUOTES, 'UTF-8') ?></h3>
|
||||
<p id="monatskarteSouthMeta">
|
||||
<?= htmlspecialchars($chartConfig['localTimeLabel'], ENT_QUOTES, 'UTF-8') ?>,
|
||||
<?= htmlspecialchars($chartLocationName, ENT_QUOTES, 'UTF-8') ?>
|
||||
@@ -1638,20 +1638,16 @@ $observationTipCalendarFilenameJson = json_encode(sprintf('astrotools-monatserei
|
||||
</div>
|
||||
|
||||
<div class="monatskarte-stage monatskarte-stage-south">
|
||||
<canvas id="monatskarteSouthCanvas" width="1200" height="720" aria-label="Südhimmel-Projektion"></canvas>
|
||||
<canvas id="monatskarteSouthCanvas" width="1200" height="720" aria-label="Südhimmel-Projektion"></canvas>
|
||||
</div>
|
||||
|
||||
<div class="monatskarte-footer">
|
||||
<p id="monatskarteSouthStatus">Bereite Südhimmelkarte vor...</p>
|
||||
<p id="monatskarteSouthStatus">Bereite Südhimmelkarte vor...</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="monatskarte-card">
|
||||
<div class="monatskarte-header">
|
||||
<div>
|
||||
<h3>Mondphasen Im <?= htmlspecialchars($months[$selectedMonth] . ' ' . (string) $selectedYear, ENT_QUOTES, 'UTF-8') ?></h3>
|
||||
<p>Eine Monatszeile vom ersten bis zum letzten Tag mit der Mondtextur aus <code>moon4geocron.png</code>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="monatskarte-stage monatsphase-stage">
|
||||
@@ -2637,18 +2633,18 @@ const OBSERVATION_TIP_ICAL_FILENAME = <?= $observationTipCalendarFilenameJson ?:
|
||||
|
||||
drawDirectionLabel(0, 'Norden', 18, '600 13px Rajdhani, sans-serif', 0.78);
|
||||
drawDirectionLabel(90, 'Westen', 22, '600 13px Rajdhani, sans-serif', 0.78);
|
||||
drawDirectionLabel(180, 'Süden', 18, '600 13px Rajdhani, sans-serif', 0.78);
|
||||
drawDirectionLabel(180, 'Süden', 18, '600 13px Rajdhani, sans-serif', 0.78);
|
||||
drawDirectionLabel(270, 'Osten', 22, '600 13px Rajdhani, sans-serif', 0.78);
|
||||
|
||||
drawDirectionLabel(45, 'Nordosten', 18, '600 11px Rajdhani, sans-serif', 0.64);
|
||||
drawDirectionLabel(315, 'Nordwesten', 18, '600 11px Rajdhani, sans-serif', 0.64);
|
||||
drawDirectionLabel(135, 'Südosten', 18, '600 11px Rajdhani, sans-serif', 0.64);
|
||||
drawDirectionLabel(225, 'Südwesten', 18, '600 11px Rajdhani, sans-serif', 0.64);
|
||||
drawDirectionLabel(135, 'Südosten', 18, '600 11px Rajdhani, sans-serif', 0.64);
|
||||
drawDirectionLabel(225, 'Südwesten', 18, '600 11px Rajdhani, sans-serif', 0.64);
|
||||
|
||||
ctx.fillStyle = 'rgba(214, 226, 255, 0.62)';
|
||||
ctx.font = '600 11px Rajdhani, sans-serif';
|
||||
ctx.fillText('60°', cx, cy - radius * 0.66 - 6);
|
||||
ctx.fillText('30°', cx, cy - radius * 0.33 - 6);
|
||||
ctx.fillText('60°', cx, cy - radius * 0.66 - 6);
|
||||
ctx.fillText('30°', cx, cy - radius * 0.33 - 6);
|
||||
ctx.fillText('Zenit', cx, cy);
|
||||
}
|
||||
|
||||
@@ -3728,9 +3724,9 @@ const OBSERVATION_TIP_ICAL_FILENAME = <?= $observationTipCalendarFilenameJson ?:
|
||||
|
||||
const directionLabels = [
|
||||
{ az: 90, text: 'Osten' },
|
||||
{ az: 135, text: 'Südosten' },
|
||||
{ az: 180, text: 'Süden' },
|
||||
{ az: 225, text: 'Südwesten' },
|
||||
{ az: 135, text: 'Südosten' },
|
||||
{ az: 180, text: 'Süden' },
|
||||
{ az: 225, text: 'Südwesten' },
|
||||
{ az: 270, text: 'Westen' },
|
||||
];
|
||||
|
||||
@@ -3756,7 +3752,7 @@ const OBSERVATION_TIP_ICAL_FILENAME = <?= $observationTipCalendarFilenameJson ?:
|
||||
ctx.font = '600 11px Rajdhani, sans-serif';
|
||||
ctx.textAlign = 'left';
|
||||
ctx.textBaseline = 'middle';
|
||||
ctx.fillText(`${alt}°`, pt.x + 8, pt.y);
|
||||
ctx.fillText(`${alt}°`, pt.x + 8, pt.y);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3941,7 +3937,7 @@ const OBSERVATION_TIP_ICAL_FILENAME = <?= $observationTipCalendarFilenameJson ?:
|
||||
drawMoon(width, height);
|
||||
drawPlanets(width, height);
|
||||
drawStars(width, height);
|
||||
statusEl.textContent = 'Südhimmel für ' + MONTH_CHART_CONFIG.localTimeLabel;
|
||||
statusEl.textContent = 'Südhimmel für ' + MONTH_CHART_CONFIG.localTimeLabel;
|
||||
}
|
||||
|
||||
resizeCanvas();
|
||||
|
||||
Reference in New Issue
Block a user