2021-04-28 23:53:55 -07:00
|
|
|
$( document ).ready(function() {
|
|
|
|
|
let calendarEl = document.getElementById('vert-schedule-full-calendar');
|
|
|
|
|
if (!calendarEl) return; //check that we need a vertical schedule
|
|
|
|
|
let fullcalData = $('#fullcalendar');
|
|
|
|
|
|
|
|
|
|
var calendar = new FullCalendar.Calendar(calendarEl, {
|
2021-04-30 17:58:52 +08:00
|
|
|
schedulerLicenseKey: fullcalData.data('schedulerLicenseKey'),
|
2021-04-30 17:33:16 +08:00
|
|
|
expandRows: true,
|
2021-04-30 16:50:18 +08:00
|
|
|
allDaySlot: false,
|
2021-04-30 17:33:16 +08:00
|
|
|
slotMinTime: fullcalData.data('startHour') + ':00:00',
|
|
|
|
|
slotMaxTime: fullcalData.data('endHour') + ':00:00',
|
2021-04-30 16:32:06 +08:00
|
|
|
timeZone: 'UTC', // TODO: Events are stored in conference's timezone implicitly (UTC+0) in the database
|
2021-04-28 23:53:55 -07:00
|
|
|
initialDate: fullcalData.data('day'),
|
|
|
|
|
initialView: 'resourceTimeGridDay',
|
|
|
|
|
resources: fullcalData.data('rooms'),
|
|
|
|
|
events: fullcalData.data('events')
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
calendar.render();
|
|
|
|
|
});
|