Start the view to now

This commit is contained in:
Tom Hubrecht 2022-03-07 11:41:32 +01:00
parent 4bbe0cb856
commit e967664769

View file

@ -22,6 +22,7 @@
let openModal = false;
const toggle = () => (openModal = !openModal);
const mobile = window.innerWidth < 765;
const now = new Date();
let calendar;
@ -47,7 +48,8 @@
height: '100%',
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
nowIndicator: true,
now: new Date(),
now: now,
scrollTime: now.toLocaleTimeString(),
eventClick: info => {
openModal = true;
event.set(info.event);