layout fixes and feedback

This commit is contained in:
kleines Filmröllchen 2024-11-19 00:41:19 +01:00
parent 4c6e510702
commit 89e35a0fcd
Signed by: filmroellchen
SSH key fingerprint: SHA256:NarU6J/XgCfEae4rbei0YIdN2pYaYDccarK6R53dnc8
9 changed files with 404 additions and 351 deletions

View file

@ -13,7 +13,7 @@ export default function hackcal(e, p = 1) {
const calendarParent = document.getElementById("dbkcalendar");
const body = calendar.querySelector("tbody");
const calUri = "https://hackcal.ctbk.de/?period=" + p;
const calUri = `https://hackcal.ctbk.de/?period=${p}`;
fetch(calUri)
.then((res) => res.json())
.then((data) => {
@ -68,7 +68,7 @@ export default function hackcal(e, p = 1) {
}
const categoriesParent = entryItem.querySelector(".categories");
for (const category of event.categories.split(",")) {
for (const category of event.categories?.split(",") || []) {
const categoryItem = document.createElement("em");
categoryItem.innerText = category;
categoriesParent.appendChild(categoryItem);