diff options
author | Mario <mario@mariovavti.com> | 2023-07-11 18:57:18 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-07-11 18:57:18 +0000 |
commit | 63fb8d03929189bfc8cbf53d23cb79984fe2c3cd (patch) | |
tree | b9f74bd8c7721dca7ece251fdbb9a7c4fe9b949a /library/fullcalendar/examples/multiweek-view.html | |
parent | 57796a2f962d045445cbf69237bb3d6786e4d0d4 (diff) | |
parent | 384de0925e502cfa8fe6ca287530ef5529fdff10 (diff) | |
download | volse-hubzilla-63fb8d03929189bfc8cbf53d23cb79984fe2c3cd.tar.gz volse-hubzilla-63fb8d03929189bfc8cbf53d23cb79984fe2c3cd.tar.bz2 volse-hubzilla-63fb8d03929189bfc8cbf53d23cb79984fe2c3cd.zip |
Merge branch '8.6RC'8.6
Diffstat (limited to 'library/fullcalendar/examples/multiweek-view.html')
-rw-r--r-- | library/fullcalendar/examples/multiweek-view.html | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/library/fullcalendar/examples/multiweek-view.html b/library/fullcalendar/examples/multiweek-view.html new file mode 100644 index 000000000..5a175fbb9 --- /dev/null +++ b/library/fullcalendar/examples/multiweek-view.html @@ -0,0 +1,107 @@ +<!DOCTYPE html> +<html> +<head> +<meta charset='utf-8' /> +<script src='../dist/index.global.js'></script> +<script> + + document.addEventListener('DOMContentLoaded', function() { + var calendarEl = document.getElementById('calendar'); + + var calendar = new FullCalendar.Calendar(calendarEl, { + headerToolbar: { + left: 'prev,next today', + center: 'title', + right: 'dayGridYear,dayGridMonth,timeGridWeek' + }, + initialView: 'dayGridYear', + initialDate: '2023-01-12', + editable: true, + selectable: true, + dayMaxEvents: true, // allow "more" link when too many events + // businessHours: true, + // weekends: false, + events: [ + { + title: 'All Day Event', + start: '2023-01-01' + }, + { + title: 'Long Event', + start: '2023-01-07', + end: '2023-01-10' + }, + { + groupId: 999, + title: 'Repeating Event', + start: '2023-01-09T16:00:00' + }, + { + groupId: 999, + title: 'Repeating Event', + start: '2023-01-16T16:00:00' + }, + { + title: 'Conference', + start: '2023-01-11', + end: '2023-01-13' + }, + { + title: 'Meeting', + start: '2023-01-12T10:30:00', + end: '2023-01-12T12:30:00' + }, + { + title: 'Lunch', + start: '2023-01-12T12:00:00' + }, + { + title: 'Meeting', + start: '2023-01-12T14:30:00' + }, + { + title: 'Happy Hour', + start: '2023-01-12T17:30:00' + }, + { + title: 'Dinner', + start: '2023-01-12T20:00:00' + }, + { + title: 'Birthday Party', + start: '2023-01-13T07:00:00' + }, + { + title: 'Click for Google', + url: 'http://google.com/', + start: '2023-01-28' + } + ] + }); + + calendar.render(); + }); + +</script> +<style> + + body { + margin: 40px 10px; + padding: 0; + font-family: Arial, Helvetica Neue, Helvetica, sans-serif; + font-size: 14px; + } + + #calendar { + max-width: 1200px; + margin: 0 auto; + } + +</style> +</head> +<body> + + <div id='calendar'></div> + +</body> +</html> |