PageSourceSearch

https://ingenierosnavales.com/wp-content/plugins/simple-calendar-f…/assets/js/fullcalendar-grid.js?ver=4.2.0

js ingenierosnavales.com collected 2026-10-02 04:37:58 UTC 3,494 bytes, 112 lines download raw bytes

1(function( window, undefined ) {
2	'use strict';
3
4	jQuery( function( $ ) {
5
6		$( document ).ready( function() {
7
8			// Run through each of these if there are multiple calendars on a page
9			$( '.simcal-fullcalendar-grid .simcal-fullcal' ).each( function() {
10
11				var fc = $( this );
12				var currentView = '';
13
14				var bubbleTrigger = fc.data( 'event-bubble-trigger' );
15
16				fc.fullCalendar( {
17					header: {
18						left: fc.data( 'paging-buttons' ) + fc.data( 'today-button' ),
19						center: 'title',
20						right: fc.data( 'month-button' ) + fc.data( 'week-button' ) + fc.data( 'day-button' )
21					},
22					eventSources: {
23						url: simcal_fullcal.settings.ajax_url,
24						type: 'POST',
25						data: {
26							action: 'simcal_fullcal_load_events',
27							calendar_id: fc.data( 'calendar-id' )
28						},
29						error: function( response ) {
30							console.log( 'Error', response );
31						},
32						success: function( response ) {
33						}
34					},
35					eventClick: function( calEvent, jsEvent, view ) {
36						// Prevent the link from being followed
37						event.preventDefault();
38					},
39					viewRender: function( view ) {
40						currentView = view.name;
41					},
42					eventRender: function( event, element ) {
43						element.qtip( {
44							content: $( '.simcal-fullcal-qtip-id-' + event.qtip_id ).html(),
45							position: {
46								my: 'top center',
47								at: 'bottom center',
48								target: currentView === 'month' ? $( element ) : 'mouse',
49								viewport: $( window ),
50								adjust: {
51									method: 'shift',
52									scroll: false,
53									mouse: false
54								}
55							},
56							style: {
57								def: false,
58								classes: 'simcal-default-calendar simcal-event-bubble'
59							},
60							show: {
61								solo: true,
62								effect: false,
63								event: bubbleTrigger == 'hover' ? 'mouseenter' : 'click'
64							},
65							hide: {
66								fixed: true,
67								effect: false,
68								event: bubbleTrigger == 'click' ? 'unfocus' : 'mouseleave',
69								delay: 100
70							}
71						} );
72					},
73					defaultView: fc.data( 'default-view' ),
74					timezone: fc.data( 'timezone' ),
75					firstDay: fc.data( 'week-starts' ),
76
77					// TODO Pulling language from FC locale setting for now (instead of detecting WordPress setting).
78					/*
79					monthNames: simcal_fullcal.months.full,
80					monthNamesShort: simcal_fullcal.months.short,
81					dayNames: simcal_fullcal.days.full,
82					dayNamesShort: simcal_fullcal.days.short,
83					isRTL: simcal_fullcal.settings.is_rtl,
84					*/
85
86					fixedWeekCount: false,
87					defaultDate: fc.data( 'start' ),
88					eventLimit: fc.data( 'event-limit' ),
89
90					loading: function( isLoading, view ) {
91						// Target icon for fadeToggle animation.
92						fc.siblings( '.simcal-ajax-loader' ).find( 'i' ).fadeToggle();
93					},
94
95					eventColor: fc.data( 'event-color' ),
96					eventTextColor: fc.data( 'text-color' ),
97					scrollTime: fc.data( 'default-start-time' ),
98					minTime: fc.data( 'display-min-time' ),
99					maxTime: fc.data( 'display-max-time' ),
100
101					lang: fc.data( 'display-language' ),  // TODO Rename to "locale" for FC v3.
102					timeFormat: fc.data( 'date-format' )
103				} );
104
105				// Since the height is not initially set (default FC) we do this check after setting up the calendar initially.
106				if ( fc.data( 'calendar-height' ) != -1 ) {
107					fc.fullCalendar( 'option', 'height', fc.data( 'calendar-height' ) );
108				}
109			} );
110		} );
111	} );
112})( this );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.