diff options
Diffstat (limited to 'public/js/fullcalendar/examples/full-height.html')
-rw-r--r-- | public/js/fullcalendar/examples/full-height.html | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/public/js/fullcalendar/examples/full-height.html b/public/js/fullcalendar/examples/full-height.html new file mode 100644 index 0000000..18b55f8 --- /dev/null +++ b/public/js/fullcalendar/examples/full-height.html | |||
@@ -0,0 +1,125 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <meta charset='utf-8' /> | ||
5 | <script src='../dist/index.global.js'></script> | ||
6 | <script> | ||
7 | |||
8 | document.addEventListener('DOMContentLoaded', function() { | ||
9 | var calendarEl = document.getElementById('calendar'); | ||
10 | |||
11 | var calendar = new FullCalendar.Calendar(calendarEl, { | ||
12 | height: '100%', | ||
13 | expandRows: true, | ||
14 | slotMinTime: '08:00', | ||
15 | slotMaxTime: '20:00', | ||
16 | headerToolbar: { | ||
17 | left: 'prev,next today', | ||
18 | center: 'title', | ||
19 | right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek' | ||
20 | }, | ||
21 | initialView: 'dayGridMonth', | ||
22 | initialDate: '2023-01-12', | ||
23 | navLinks: true, // can click day/week names to navigate views | ||
24 | editable: true, | ||
25 | selectable: true, | ||
26 | nowIndicator: true, | ||
27 | dayMaxEvents: true, // allow "more" link when too many events | ||
28 | events: [ | ||
29 | { | ||
30 | title: 'All Day Event', | ||
31 | start: '2023-01-01', | ||
32 | }, | ||
33 | { | ||
34 | title: 'Long Event', | ||
35 | start: '2023-01-07', | ||
36 | end: '2023-01-10' | ||
37 | }, | ||
38 | { | ||
39 | groupId: 999, | ||
40 | title: 'Repeating Event', | ||
41 | start: '2023-01-09T16:00:00' | ||
42 | }, | ||
43 | { | ||
44 | groupId: 999, | ||
45 | title: 'Repeating Event', | ||
46 | start: '2023-01-16T16:00:00' | ||
47 | }, | ||
48 | { | ||
49 | title: 'Conference', | ||
50 | start: '2023-01-11', | ||
51 | end: '2023-01-13' | ||
52 | }, | ||
53 | { | ||
54 | title: 'Meeting', | ||
55 | start: '2023-01-12T10:30:00', | ||
56 | end: '2023-01-12T12:30:00' | ||
57 | }, | ||
58 | { | ||
59 | title: 'Lunch', | ||
60 | start: '2023-01-12T12:00:00' | ||
61 | }, | ||
62 | { | ||
63 | title: 'Meeting', | ||
64 | start: '2023-01-12T14:30:00' | ||
65 | }, | ||
66 | { | ||
67 | title: 'Happy Hour', | ||
68 | start: '2023-01-12T17:30:00' | ||
69 | }, | ||
70 | { | ||
71 | title: 'Dinner', | ||
72 | start: '2023-01-12T20:00:00' | ||
73 | }, | ||
74 | { | ||
75 | title: 'Birthday Party', | ||
76 | start: '2023-01-13T07:00:00' | ||
77 | }, | ||
78 | { | ||
79 | title: 'Click for Google', | ||
80 | url: 'http://google.com/', | ||
81 | start: '2023-01-28' | ||
82 | } | ||
83 | ] | ||
84 | }); | ||
85 | |||
86 | calendar.render(); | ||
87 | }); | ||
88 | |||
89 | </script> | ||
90 | <style> | ||
91 | |||
92 | html, body { | ||
93 | overflow: hidden; /* don't do scrollbars */ | ||
94 | font-family: Arial, Helvetica Neue, Helvetica, sans-serif; | ||
95 | font-size: 14px; | ||
96 | } | ||
97 | |||
98 | #calendar-container { | ||
99 | position: fixed; | ||
100 | top: 0; | ||
101 | left: 0; | ||
102 | right: 0; | ||
103 | bottom: 0; | ||
104 | } | ||
105 | |||
106 | .fc-header-toolbar { | ||
107 | /* | ||
108 | the calendar will be butting up against the edges, | ||
109 | but let's scoot in the header's buttons | ||
110 | */ | ||
111 | padding-top: 1em; | ||
112 | padding-left: 1em; | ||
113 | padding-right: 1em; | ||
114 | } | ||
115 | |||
116 | </style> | ||
117 | </head> | ||
118 | <body> | ||
119 | |||
120 | <div id='calendar-container'> | ||
121 | <div id='calendar'></div> | ||
122 | </div> | ||
123 | |||
124 | </body> | ||
125 | </html> | ||