diff --git a/src/App.svelte b/src/App.svelte index e247689..9176fe7 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -23,6 +23,11 @@ const toggle = () => (openModal = !openModal); const mobile = window.innerWidth < 765; const now = new Date(); + const scrollTo = (() => { + const time = new Date(); + time.setHours(Math.max(0, time.getHours() - 2)); + return time.toLocaleTimeString(); + })(); let calendar; @@ -49,7 +54,7 @@ schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives', nowIndicator: true, now: now, - scrollTime: now.toLocaleTimeString(), + scrollTime: scrollTo, eventClick: info => { openModal = true; event.set(info.event); @@ -82,17 +87,19 @@ -
-
- -
-
+ -