aboutsummaryrefslogtreecommitdiffstats
path: root/library/fullcalendar/examples/external-dragging-2cals.html
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-06-15 08:19:13 +0000
committerMario <mario@mariovavti.com>2020-06-15 08:19:13 +0000
commit56ec55110a27a13cc2c7d1fb09f1650f8c4cd842 (patch)
tree1ed6199b0d09b232b3ba5dce28a0a0134242df55 /library/fullcalendar/examples/external-dragging-2cals.html
parent570497071d7dc231be6ab0eee951c22f1ad05df2 (diff)
downloadvolse-hubzilla-56ec55110a27a13cc2c7d1fb09f1650f8c4cd842.tar.gz
volse-hubzilla-56ec55110a27a13cc2c7d1fb09f1650f8c4cd842.tar.bz2
volse-hubzilla-56ec55110a27a13cc2c7d1fb09f1650f8c4cd842.zip
update fullcalendar to version 4.4.2
Diffstat (limited to 'library/fullcalendar/examples/external-dragging-2cals.html')
-rw-r--r--library/fullcalendar/examples/external-dragging-2cals.html75
1 files changed, 75 insertions, 0 deletions
diff --git a/library/fullcalendar/examples/external-dragging-2cals.html b/library/fullcalendar/examples/external-dragging-2cals.html
new file mode 100644
index 000000000..52023b7be
--- /dev/null
+++ b/library/fullcalendar/examples/external-dragging-2cals.html
@@ -0,0 +1,75 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset='utf-8' />
+<link href='../packages/core/main.css' rel='stylesheet' />
+<link href='../packages/daygrid/main.css' rel='stylesheet' />
+<script src='../packages/core/main.js'></script>
+<script src='../packages/interaction/main.js'></script>
+<script src='../packages/daygrid/main.js'></script>
+<script>
+
+ document.addEventListener('DOMContentLoaded', function() {
+ var srcCalendarEl = document.getElementById('source-calendar');
+ var destCalendarEl = document.getElementById('destination-calendar');
+
+ var srcCalendar = new FullCalendar.Calendar(srcCalendarEl, {
+ plugins: [ 'interaction', 'dayGrid' ],
+ editable: true,
+ defaultDate: '2020-05-12',
+ events: [
+ {
+ title: 'event1',
+ start: '2020-05-11T10:00:00',
+ end: '2020-05-11T16:00:00'
+ },
+ {
+ title: 'event2',
+ start: '2020-05-13T10:00:00',
+ end: '2020-05-13T16:00:00'
+ }
+ ],
+ eventLeave: function(info) {
+ console.log('event left!', info.event);
+ }
+ });
+
+ var destCalendar = new FullCalendar.Calendar(destCalendarEl, {
+ plugins: [ 'interaction', 'dayGrid' ],
+ defaultDate: '2020-05-12',
+ editable: true,
+ droppable: true, // will let it receive events!
+ eventReceive: function(info) {
+ console.log('event received!', info.event);
+ }
+ });
+
+ srcCalendar.render();
+ destCalendar.render();
+ });
+
+</script>
+<style>
+
+ body {
+ margin: 20px 0 0 20px;
+ font-size: 14px;
+ font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
+ }
+
+ #source-calendar,
+ #destination-calendar {
+ float: left;
+ width: 600px;
+ margin: 0 20px 20px 0;
+ }
+
+</style>
+</head>
+<body>
+
+ <div id='source-calendar'></div>
+ <div id='destination-calendar'></div>
+
+</body>
+</html>