Browse Source

Fix HTML

main
Adrian Heine 2 years ago
parent
commit
2a1b56f0b7
  1. 9
      index.php

9
index.php

@ -43,7 +43,7 @@ function print_month($start) {
$month_end = (new DateTimeImmutable())->setTimestamp(strtotime("+1 month", $month_start->getTimestamp())); $month_end = (new DateTimeImmutable())->setTimestamp(strtotime("+1 month", $month_start->getTimestamp()));
$month_name = IntlDateFormatter::formatObject($month_start, "MMMM yyyy"); $month_name = IntlDateFormatter::formatObject($month_start, "MMMM yyyy");
?><table class=month> ?><table class=month>
<caption><h3><?= $month_name ?></caption>
<caption><h3><?= $month_name ?></h3></caption>
<tr><?php foreach ($DAYS_OF_WEEK as $day) { echo "<th>$day</th>"; }?></tr> <tr><?php foreach ($DAYS_OF_WEEK as $day) { echo "<th>$day</th>"; }?></tr>
<?php <?php
$date = DateTime::createFromImmutable($week_start); $date = DateTime::createFromImmutable($week_start);
@ -59,7 +59,7 @@ function print_month($start) {
$id = IntlDateFormatter::formatObject($date, "yyyy-MM-dd"); $id = IntlDateFormatter::formatObject($date, "yyyy-MM-dd");
echo "<input type=checkbox name=\"date_$id\" id=\"date_$id\"><label for=\"date_$id\">$label"; echo "<input type=checkbox name=\"date_$id\" id=\"date_$id\"><label for=\"date_$id\">$label";
if (isset($EVENTS[$id])) { if (isset($EVENTS[$id])) {
echo "<div class=event><div class=event-content>".htmlspecialchars($EVENTS[$id])."</div></div>";
echo "<span class=event><span class=event-content>".htmlspecialchars($EVENTS[$id])."</span></span>";
} }
echo "</label>"; echo "</label>";
} }
@ -72,7 +72,9 @@ function print_month($start) {
} }
?><!DOCTYPE html> ?><!DOCTYPE html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<html lang=de>
<title>Soli-Bus-Fahrten nach Lützerath</title>
<meta name=viewport content="width=device-width, initial-scale=1">
<style> <style>
body { body {
margin: 0 margin: 0
@ -191,6 +193,7 @@ main > * {
top: -3.5em; top: -3.5em;
right: -0.9em; right: -0.9em;
line-height: initial; line-height: initial;
display: block;
} }
.event::before { .event::before {
content: ""; content: "";

Loading…
Cancel
Save