PageSourceSearch

https://mefop.it/js/calendario.js

js mefop.it collected 2026-09-24 23:38:20 UTC 1,617 bytes, 78 lines download raw bytes

1// JavaScript Document
2
3jQuery(document).ready(function(){
4	
5	if(jQuery('.events-calendar').length){
6		
7		var calendar = {};
8		var myEvents = [];
9		
10		jQuery.ajax({
11			url: '/events',
12			dataType: 'json',
13			type: 'POST',
14			data: {
15				month: moment().format('MM'),
16				year: moment().format('YYYY')
17			},
18			success: function(data){
19				
20				for(var i = 0; i < data.length; i++){
21					
22					datax = {
23						tipology: data[i].tipology, 
24						title: data[i].title, 
25						url: data[i].url, 
26						date: data[i].date
27					};
28					myEvents.push(datax);
29				}
30				
31				calendar.clndr = jQuery('.events-calendar')
32					.clndr({
33						events: myEvents,
34						template: jQuery('#mini-clndr-template').html(),
35						clickEvents: {
36							
37							click: function(target){
38								
39								//console.log(target.events);
40								if(target.events.length > 0){
41									
42									window.location.href = target.events[0].url;
43								}
44							},
45							onMonthChange: function(month){
46								
47								jQuery.ajax({
48									url: '/events',
49									dataType: 'json',
50									type: 'POST',
51									data: {
52										month: month.format('MM'),
53										year: month.format('YYYY')
54									},
55									success: function(data){
56										
57										calendar.clndr.addEvents(data);
58									}
59								});
60							}
61						},
62						doneRendering: function() {
63							
64							$('[data-toggle="tooltip"]').tooltip();
65						}
66					});
67			}
68		});
69	}
70	
71	//$('[data-toggle="tooltip"]').tooltip();
72	/*jQuery(document).on('mouseover', '.calendar-container .day.event', function(e){
73		
74		var target = e.target;
75		
76		console.log(e);
77	});*/
78});

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.