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