diff options
author | polo <ordipolo@gmx.fr> | 2025-06-23 03:33:38 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-06-23 03:33:38 +0200 |
commit | cebc19ef236aac2968d2ffccfcff9b975b63fa8d (patch) | |
tree | 5b8e08045a45063475f533bfae4b4524720fe7bd /public/js/fullcalendar/examples/external-dragging-2cals.html | |
parent | 8cf5ac1abf9e2a6134cb82d4582aecaa99b1331a (diff) | |
download | cms-cebc19ef236aac2968d2ffccfcff9b975b63fa8d.zip |
fullcalendar
Diffstat (limited to 'public/js/fullcalendar/examples/external-dragging-2cals.html')
-rw-r--r-- | public/js/fullcalendar/examples/external-dragging-2cals.html | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/public/js/fullcalendar/examples/external-dragging-2cals.html b/public/js/fullcalendar/examples/external-dragging-2cals.html new file mode 100644 index 0000000..066685d --- /dev/null +++ b/public/js/fullcalendar/examples/external-dragging-2cals.html | |||
@@ -0,0 +1,69 @@ | |||
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 srcCalendarEl = document.getElementById('source-calendar'); | ||
10 | var destCalendarEl = document.getElementById('destination-calendar'); | ||
11 | |||
12 | var srcCalendar = new FullCalendar.Calendar(srcCalendarEl, { | ||
13 | editable: true, | ||
14 | initialDate: '2023-01-12', | ||
15 | events: [ | ||
16 | { | ||
17 | title: 'event1', | ||
18 | start: '2023-01-11T10:00:00', | ||
19 | end: '2023-01-11T16:00:00' | ||
20 | }, | ||
21 | { | ||
22 | title: 'event2', | ||
23 | start: '2023-01-13T10:00:00', | ||
24 | end: '2023-01-13T16:00:00' | ||
25 | } | ||
26 | ], | ||
27 | eventLeave: function(info) { | ||
28 | console.log('event left!', info.event); | ||
29 | } | ||
30 | }); | ||
31 | |||
32 | var destCalendar = new FullCalendar.Calendar(destCalendarEl, { | ||
33 | initialDate: '2023-01-12', | ||
34 | editable: true, | ||
35 | droppable: true, // will let it receive events! | ||
36 | eventReceive: function(info) { | ||
37 | console.log('event received!', info.event); | ||
38 | } | ||
39 | }); | ||
40 | |||
41 | srcCalendar.render(); | ||
42 | destCalendar.render(); | ||
43 | }); | ||
44 | |||
45 | </script> | ||
46 | <style> | ||
47 | |||
48 | body { | ||
49 | margin: 20px 0 0 20px; | ||
50 | font-size: 14px; | ||
51 | font-family: Arial, Helvetica Neue, Helvetica, sans-serif; | ||
52 | } | ||
53 | |||
54 | #source-calendar, | ||
55 | #destination-calendar { | ||
56 | float: left; | ||
57 | width: 600px; | ||
58 | margin: 0 20px 20px 0; | ||
59 | } | ||
60 | |||
61 | </style> | ||
62 | </head> | ||
63 | <body> | ||
64 | |||
65 | <div id='source-calendar'></div> | ||
66 | <div id='destination-calendar'></div> | ||
67 | |||
68 | </body> | ||
69 | </html> | ||