Server IP : 173.249.157.85 / Your IP : 216.73.216.232 Web Server : Apache System : Linux server.frogzhost.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 User : econtech ( 1005) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/econtech/www/public/back/assets/js/demo11/pages/components/calendar/ |
Upload File : |
"use strict";var KTCalendarExternalEvents={init:function(){var t,e,i,r,a;$("#kt_calendar_external_events .fc-event").each(function(){$(this).data("event",{title:$.trim($(this).text()),stick:!0,className:$(this).data("color"),description:"Lorem ipsum dolor eius mod tempor labore"}),$(this).draggable({zIndex:999,revert:!0,revertDuration:0})}),t=moment().startOf("day"),e=t.format("YYYY-MM"),i=t.clone().subtract(1,"day").format("YYYY-MM-DD"),r=t.format("YYYY-MM-DD"),a=t.clone().add(1,"day").format("YYYY-MM-DD"),$("#kt_calendar").fullCalendar({isRTL:KTUtil.isRTL(),header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay,listWeek"},eventLimit:!0,navLinks:!0,events:[{title:"All Day Event",start:e+"-01",description:"Lorem ipsum dolor sit incid idunt ut",className:"fc-event-success"},{title:"Reporting",start:e+"-14T13:30:00",description:"Lorem ipsum dolor incid idunt ut labore",end:e+"-14",className:"fc-event-accent"},{title:"Company Trip",start:e+"-02",description:"Lorem ipsum dolor sit tempor incid",end:e+"-03",className:"fc-event-primary"},{title:"Expo",start:e+"-03",description:"Lorem ipsum dolor sit tempor inci",end:e+"-05",className:"fc-event-primary"},{title:"Dinner",start:e+"-12",description:"Lorem ipsum dolor sit amet, conse ctetur",end:e+"-10"},{id:999,title:"Repeating Event",start:e+"-09T16:00:00",description:"Lorem ipsum dolor sit ncididunt ut labore",className:"fc-event-danger"},{id:1e3,title:"Repeating Event",description:"Lorem ipsum dolor sit amet, labore",start:e+"-16T16:00:00"},{title:"Conference",start:i,end:a,description:"Lorem ipsum dolor eius mod tempor labore",className:"fc-event-accent"},{title:"Meeting",start:r+"T10:30:00",end:r+"T12:30:00",description:"Lorem ipsum dolor eiu idunt ut labore"},{title:"Lunch",start:r+"T12:00:00",className:"fc-event-info",description:"Lorem ipsum dolor sit amet, ut labore"},{title:"Meeting",start:r+"T14:30:00",className:"fc-event-warning",description:"Lorem ipsum conse ctetur adipi scing"},{title:"Happy Hour",start:r+"T17:30:00",className:"fc-event-metal",description:"Lorem ipsum dolor sit amet, conse ctetur"},{title:"Dinner",start:r+"T20:00:00",description:"Lorem ipsum dolor sit ctetur adipi scing"},{title:"Birthday Party",start:a+"T07:00:00",className:"fc-event-primary",description:"Lorem ipsum dolor sit amet, scing"},{title:"Click for Google",url:"http://google.com/",start:e+"-28",description:"Lorem ipsum dolor sit amet, labore"}],editable:!0,droppable:!0,drop:function(t,e,i,r){var a=$.fullCalendar.moment(t.format());a.stripTime(),a.time("08:00:00");var n=$.fullCalendar.moment(t.format());n.stripTime(),n.time("12:00:00"),$(this).data("event").start=a,$(this).data("event").end=n,$("#kt_calendar_external_events_remove").is(":checked")&&$(this).remove()},eventRender:function(t,e){e.hasClass("fc-day-grid-event")?(e.data("content",t.description),e.data("placement","top"),KTApp.initPopover(e)):e.hasClass("fc-time-grid-event")?e.find(".fc-title").append('<div class="fc-description">'+t.description+"</div>"):0!==e.find(".fc-list-item-title").lenght&&e.find(".fc-list-item-title").append('<div class="fc-description">'+t.description+"</div>")}})}};jQuery(document).ready(function(){KTCalendarExternalEvents.init()});