$(document).ready((function(){var t,e=FullCalendar.Calendar,r=FullCalendarInteraction.Draggable,n=document.getElementById("external-events"),l=document.getElementById("fc-external-drag"),a=document.getElementById("drop-remove");new e(l,{header:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},editable:!0,plugins:["dayGrid","timeGrid","interaction"],droppable:!0,defaultDate:"2019-01-01",events:[{title:"All Day Event",start:"2019-01-01",color:"#009688"},{title:"Long Event",start:"2019-01-07",end:"2019-01-10",color:"#4CAF50"},{id:999,title:"Meeting",start:"2019-01-09T16:00:00",color:"#00bcd4"},{id:999,title:"Happy Hour",start:"2019-01-16T16:00:00",color:"#3f51b5"},{title:"Conference Meeting",start:"2019-01-11",end:"2019-01-13",color:"#e51c23"},{title:"Meeting",start:"2019-01-12T10:30:00",end:"2019-01-12T12:30:00",color:"#00bcd4"},{title:"Dinner",start:"2019-01-12T20:00:00",color:"#4a148c"},{title:"Birthday Party",start:"2019-01-13T07:00:00",color:"#ff5722"},{title:"Click for Google",url:"http://google.com/",start:"2019-01-28"}],drop:function(t){a.checked&&t.draggedEl.parentNode.removeChild(t.draggedEl)}}).render(),$("#external-events .fc-event").each((function(){$(this).css({backgroundColor:$(this).data("color"),borderColor:$(this).data("color")})})),$("#external-events .fc-event").mousemove((function(){t=$(this).data("color")})),new r(n,{itemSelector:".fc-event",eventData:function(e){return{title:e.innerText,color:t}}});var i=document.getElementById("fc-selectable"),o=new FullCalendar.Calendar(i,{header:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},defaultDate:"2016-06-12",selectable:!0,plugins:["dayGrid","timeGrid","interaction"],selectHelper:!0,select:function(t){var e=prompt("Event Title:");e&&o.addEvent({title:e,start:t.start,end:t.end,allDay:t.allDay}),o.unselect()},editable:!0,eventLimit:!0,events:[{title:"All Day Event",start:"2016-06-01"},{title:"Long Event",start:"2016-06-07",end:"2016-06-10"},{id:999,title:"Repeating Event",start:"2016-06-09T16:00:00"},{id:999,title:"Repeating Event",start:"2016-06-16T16:00:00"},{title:"Conference",start:"2016-06-11",end:"2016-06-13"},{title:"Meeting",start:"2016-06-12T10:30:00",end:"2016-06-12T12:30:00"},{title:"Lunch",start:"2016-06-12T12:00:00"},{title:"Meeting",start:"2016-06-12T14:30:00"},{title:"Happy Hour",start:"2016-06-12T17:30:00"},{title:"Dinner",start:"2016-06-12T20:00:00"},{title:"Birthday Party",start:"2016-06-13T07:00:00"},{title:"Click for Google",url:"http://google.com/",start:"2016-06-28"}]});o.render()}));