Server IP : 173.249.157.85 / Your IP : 3.133.130.192 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/public_html/public/back/assets/js/demo10/pages/components/calendar/ |
Upload File : |
"use strict"; var KTCalendarGoogle = function() { return { //main function to initiate the module init: function() { $('#kt_calendar').fullCalendar({ isRTL: KTUtil.isRTL(), header: { left: 'prev,next today', center: 'title', right: 'month,listYear' }, displayEventTime: false, // don't show the time column in list view // THIS KEY WON'T WORK IN PRODUCTION!!! // To make your own Google API key, follow the directions here: // http://fullcalendar.io/docs/google_calendar/ googleCalendarApiKey: 'AIzaSyDcnW6WejpTOCffshGDDb4neIrXVUA1EAE', // US Holidays events: 'en.usa#holiday@group.v.calendar.google.com', eventClick: function(event) { // opens events in a popup window window.open(event.url, 'gcalevent', 'width=700,height=600'); return false; }, loading: function(bool) { return; /* KTApp.block(portlet.getSelf(), { type: 'loader', state: 'success', message: 'Please wait...' }); */ }, eventRender: function(event, element) { if (!event.description) { return; } if (element.hasClass('fc-day-grid-event')) { element.data('content', event.description); element.data('placement', 'top'); KTApp.initPopover(element); } else if (element.hasClass('fc-time-grid-event')) { element.find('.fc-title').append('<div class="fc-description">' + event.description + '</div>'); } else if (element.find('.fc-list-item-title').lenght !== 0) { element.find('.fc-list-item-title').append('<div class="fc-description">' + event.description + '</div>'); } } }); } }; }(); jQuery(document).ready(function() { KTCalendarGoogle.init(); });