PageSourceSearch

https://www.ravennafestival.org/wp-content/themes/officine-fct/asset/js/rf-calendar.js?ver=2024

js ravennafestival.org collected 2026-10-02 07:51:08 UTC 7,473 bytes, 144 lines download raw bytes

1jQuery(function ($) {
2    $(document).ready(function () {
3        var lang = $("html").attr("lang"),
4            txt_modal_close = "";
5
6        // jQuery Event Calendar
7        if (lang == "it-IT") {
8            $("#eventCalendarLine").eventCalendar({
9                eventsLimit: 0,
10                eventsjson: '/wp-content/uploads/timeline.json',
11                showDayAsWeeks: false,
12                showDescription: true,
13                onlyOneDescription: false,
14                eventsScrollable: true,
15                siteLang: lang,
16                locales: {
17                    locale: "it",
18                    monthNames: ["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"],
19                    dayNames: ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"],
20                    dayNamesShort: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"],
21                    txt_noEvents: "Nessun evento nel periodo selezionato",
22                    txt_SpecificEvents_prev: "",
23                    txt_SpecificEvents_after: "eventi:",
24                    txt_next: "",
25                    txt_prev: "",
26                    txt_NextEvents: "Prossimi eventi:",
27                    txt_GoToEventUrl: "Pagina evento",
28                    txt_loading: "caricamento...",
29                    txt_close: "Chiudi",
30                    moment: {
31                        "months": ["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"],
32                        "monthsShort": ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"],
33                        "weekdays": ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"],
34                        "weekdaysShort": ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"],
35                        "weekdaysMin": ["Do", "Lu", "Ma", "Me", "Gi", "Ve", "Sa"],
36                        "longDateFormat": {
37                            "LT": "H:mm",
38                            "LTS": "LT:ss",
39                            "L": "DD/MM/YYYY",
40                            "LL": "D MMMM",
41                            "LLL": "D MMMM YYYY LT",
42                            "LLLL": "dddd, D MMMM YYYY LT"
43                        },
44                        "week": {
45                            "dow": 1,
46                            "doy": 4
47                        }
48                    }
49                }
50            });
51
52            txt_modal_close = "Chiudi";
53        }
54        else if (lang == "en-US") {
55            $("#eventCalendarLine").eventCalendar({
56                eventsLimit: 0,
57                eventsjson: '/wp-content/uploads/timeline_en.json',
58                showDayAsWeeks: false,
59                showDescription: true,
60                onlyOneDescription: false,
61                eventsScrollable: true,
62                siteLang: lang,
63                locales: {
64                    locale: "en",
65                    monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
65November", "December"],
66                    dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
67                    dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
68                    txt_noEvents: "No events in selected interval",
69                    txt_SpecificEvents_prev: "",
70                    txt_SpecificEvents_after: "events:",
71                    txt_next: "",
72                    txt_prev: "",
73                    txt_NextEvents: "Next events:",
74                    txt_GoToEventUrl: "Event page",
75                    txt_loading: "loading...",
76                    txt_close: "Close",
77                    moment: {
78                        "months": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
79                        "monthsShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
80                        "weekdays": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
81                        "weekdaysShort": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
82                        "weekdaysMin": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
83                        "longDateFormat": {
84                            "LT": "h:mm a",
85                            "LTS": "h:mm:ss a",
86                            "L": "DD/MM/YYYY",
87                            "LL": "D MMMM",
88                            "LLL": "D MMMM YYYY LT",
89                            "LLLL": "dddd, D MMMM YYYY LT"
90                        },
91                        "week": {
92                            "dow": 1,
93                            "doy": 4
94                        }
95                    }
96                }
97            });
98
99            txt_modal_close = "Close";
100        }
101
102        $(document).click(function(e) {
103            // if the target of the click isn't the container nor a descendant of the container
104            if (!$(".eventCalendar-wrap").is(e.target) && $(".eventCalendar-wrap").has(e.target).length === 0) {
105                $('.eventCalendar-list-wrap').hide();
106            }
107        });
108
109        // Bootstrap Modal
110        if ($(document).width() < 1100) {
111            $('.eventCalendar-list-wrap').attr("role", "dialog")
112                .addClass('modal fade')
113                .children()
114                .wrapAll("<div class='modal-dialog'><div class='modal-content'><div class='modal-body'></div></div></div>");
115            $('.eventCalendar-list-wrap .modal-content').append("<div class='modal-footer'><button type='button' class='btn btn-sm btn-default' data-dismiss='modal'>" + txt_modal_close + "</button></div>");
116        }
117        $(window).resize(function () {
118            if ($(document).width() < 1100 && !$('.eventCalendar-list-wrap .modal-dialog').length) {
119                $('.eventCalendar-list-wrap').modal('hide');
120                $('.eventCalendar-list-wrap').attr("role", "dialog")
121                    .addClass('modal fade')
122                    .appendTo('#eventCalendarLine')
123                    .children()
124                    .wrapAll("<div class='modal-dialog'><div class='modal-content'><div class='modal-body'></div></div></div>");
125                $('.eventCalendar-list-wrap .modal-content').append("<div class='modal-footer'><button type='button' class='btn btn-sm btn-default' data-dismiss='modal'>" + txt_modal_close + "</button></div>");
126                $('.eventCalendar-dayWithEvents a').attr({
127                    "data-toggle": "modal",
128                    "data-target": ".eventCalendar-list-wrap"
129                });
130            }
131            else if ($(document).width() >= 1100) {
132                $('.eventCalendar-list-wrap').hide()
133                    .removeAttr("role dialog")
134                    .removeClass('modal fade');
135                $('.eventCalendar-list-wrap').find('.modal-body')
136                    .children()
137                    .appendTo('.eventCalendar-list-wrap');
138                $('.eventCalendar-list-wrap').find('.modal-dialog')
139                    .remove();
140                $('.eventCalendar-dayWithEvents a').removeAttr("data-toggle data-target");
141            }
142        });
143    });
144});

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.