From d778773b9029cbfd6b9ee346bbb1e1a030edd844 Mon Sep 17 00:00:00 2001 From: MG-5 Date: Sun, 22 Oct 2023 13:44:23 +0200 Subject: [PATCH 1/2] Format calendar settings --- pages/01_events.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/01_events.md b/pages/01_events.md index dd24ed6..80ca8cf 100644 --- a/pages/01_events.md +++ b/pages/01_events.md @@ -19,7 +19,10 @@ icon: "far fa-calendar" document.addEventListener('DOMContentLoaded', function() { var calendarEl = document.getElementById('calendar'); var calendar = new FullCalendar.Calendar(calendarEl, { - initialView: 'dayGridMonth', height: "auto", locale: 'de', events: '/calendar-data' + initialView: 'dayGridMonth', + height: "auto", + locale: 'de', + events: '/calendar-data' }); calendar.render(); }); From 88dbe3f8a4078366178fb3f683bedd7bc77b8819 Mon Sep 17 00:00:00 2001 From: MG-5 Date: Sun, 22 Oct 2023 13:44:53 +0200 Subject: [PATCH 2/2] Enable showing weeknumbers Rearrange buttons in header toolbar --- pages/01_events.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pages/01_events.md b/pages/01_events.md index 80ca8cf..e00fbc9 100644 --- a/pages/01_events.md +++ b/pages/01_events.md @@ -22,7 +22,14 @@ icon: "far fa-calendar" initialView: 'dayGridMonth', height: "auto", locale: 'de', - events: '/calendar-data' + events: '/calendar-data', + weekNumbers: true, + headerToolbar: + { + left: 'today', + center: 'title', + right: 'prev,next' + } }); calendar.render(); });