Init calendar

%STARTSECTION{"init"}%
<literal>
<script>
      document.addEventListener('DOMContentLoaded', function() {
        var calendarEl = document.getElementById('calendar1');
        var calendar = new FullCalendar.Calendar(calendarEl, {
          initialView: 'dayGridMonth'
        });
        calendar.render();
      });
</script>
</literal>
%ENDSECTION{"init"}%

JSON events

[
  {
    "id": 1,
    "title": "Event1",
    "start": "Nov 21 2024",
    "allDay": true
  },
  {
    "id": 2,
    "title": "Workingday",
    "start": "Nov 21 2024 08:30:00",
    "end": "Nov 21 2024 15:00:00",
    "allDay": false
  }
]
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Middle Fork Home Wiki? Send feedback
Syndicate this site RSS