/**
* @license e-Calendar v0.9.3
* (c) 2014-2016 - Jhonis de Souza
* License: GNU
*/
(function ($) {
var eCalendar = function (options, object) {
// Initializing global variables
var adDay = new Date().getDate();
var adMonth = new Date().getMonth();
var adYear = new Date().getFullYear();
var dDay = adDay;
var dMonth = adMonth;
var dYear = adYear;
var instance = object;
var settings = $.extend({}, $.fn.eCalendar.defaults, options);
function lpad(value, length, pad) {
if (typeof pad == 'undefined') {
pad = '0';
}
var p;
for (var i = 0; i < length; i++) {
p += pad;
}
return (p + value).slice(-length);
}
var mouseOver = function () {
$(this).addClass('c-nav-btn-over');
};
var mouseLeave = function () {
$(this).removeClass('c-nav-btn-over');
};
var mouseOverEvent = function () {
var d = $(this).attr('data-event-day');
$('div.c-event-item[data-event-day="' + d + '"]').addClass('c-event-over');
};
var mouseLeaveEvent = function () {
$(this).removeClass('c-event-over')
var d = $(this).attr('data-event-day');
$('div.c-event-item[data-event-day="' + d + '"]').removeClass('c-event-over');
$("#id").css("display","");
};
var mouseOverItem = function () {
$(this).addClass('c-event-over');
var d = $(this).attr('data-event-day');
$('div.c-event[data-event-day="' + d + '"]').addClass('c-event-over');
};
var mouseLeaveItem = function () {
$(this).removeClass('c-event-over')
var d = $(this).attr('data-event-day');
$('div.c-event[data-event-day="' + d + '"]').removeClass('c-event-over');
};
var nextMonth = function () {
if (dMonth < 11) {
dMonth++;
} else {
dMonth = 0;
dYear++;
}
print();
};
var previousMonth = function () {
if (dMonth > 0) {
dMonth--;
} else {
dMonth = 11;
dYear--;
}
print();
};
function loadEvents() {
if (typeof settings.url != 'undefined' && settings.url != '') {
$.ajax({url: settings.url,
async: false,
success: function (result) {
settings.events = result;
}
});
}
}
function print() {
loadEvents();
var dWeekDayOfMonthStart = new Date(dYear, dMonth, 1).getDay() - settings.firstDayOfWeek;
if (dWeekDayOfMonthStart < 0) {
dWeekDayOfMonthStart = 6 - ((dWeekDayOfMonthStart + 1) * -1);
}
var dLastDayOfMonth = new Date(dYear, dMonth + 1, 0).getDate();
var dLastDayOfPreviousMonth = new Date(dYear, dMonth + 1, 0).getDate() - dWeekDayOfMonthStart + 1;
var cBody = $('
').addClass('c-grid');
var cEvents = $('').addClass('c-event-grid');
cEvents.hide();
var cEventsBody = $('').addClass('c-event-body');
cEvents.append($('').addClass('c-event-title c-pad-top').html(settings.eventTitle));
cEvents.append(cEventsBody);
var cNext = $('').addClass('c-next c-grid-title c-pad-top');
var cMonth = $('').addClass('c-month c-grid-title c-pad-top');
var cPrevious = $('').addClass('c-previous c-grid-title c-pad-top');
cPrevious.html(settings.textArrows.previous);
cMonth.html(settings.months[dMonth] + ' ' + dYear);
cNext.html(settings.textArrows.next);
cPrevious.on('mouseover', mouseOver).on('mouseleave', mouseLeave).on('click', previousMonth);
cNext.on('mouseover', mouseOver).on('mouseleave', mouseLeave).on('click', nextMonth);
cBody.append(cPrevious);
cBody.append(cMonth);
cBody.append(cNext);
var dayOfWeek = settings.firstDayOfWeek;
for (var i = 0; i < 7; i++) {
if (dayOfWeek > 6) {
dayOfWeek = 0;
}
var cWeekDay = $('').addClass('c-week-day c-pad-top');
cWeekDay.html(settings.weekDays[dayOfWeek]);
cBody.append(cWeekDay);
dayOfWeek++;
}
var day = 1;
var dayOfNextMonth = 1;
for (var i = 0; i < 42; i++) {
var cDay = $('');
if (i < dWeekDayOfMonthStart) {
cDay.addClass('c-day-previous-month c-pad-top');
cDay.html(dLastDayOfPreviousMonth++);
} else if (day <= dLastDayOfMonth) {
cDay.addClass('c-day c-pad-top');
if (day == dDay && adMonth == dMonth && adYear == dYear) {
cDay.addClass('c-today');
}
for (var j = 0; j < settings.events.length; j++) {
var d = settings.events[j].datetime;
if (d.getDate() == day && d.getMonth() == dMonth && d.getFullYear() == dYear) {
cDay.addClass('c-event').attr('data-event-day', d.getDate());
cEvents.show();
cDay.on('mouseover', mouseOverEvent).on('mouseleave', mouseLeaveEvent);
}
}
cDay.html(day++);
} else {
cDay.addClass('c-day-next-month c-pad-top');
cDay.html(dayOfNextMonth++);
}
cBody.append(cDay);
}
var eventList = $('').addClass('c-event-list');
for (var i = 0; i < settings.events.length; i++) {
var d = settings.events[i].datetime;
if (d.getMonth() == dMonth && d.getFullYear() == dYear) {
var date = lpad(d.getDate(), 2) + '/' + lpad(d.getMonth() + 1, 2) + ' ' + lpad(d.getHours(), 2) + ':' + lpad(d.getMinutes(), 2);
var item = $('').addClass('c-event-item');
var title = $('').addClass('title').html(date + ' ' + settings.events[i].title + '
');
var description = $('').addClass('description').html(settings.events[i].description + '
');
item.attr('data-event-day', d.getDate());
item.on('mouseover', mouseOverItem).on('mouseleave', mouseLeaveItem);
item.append(title).append(description);
// Add the url to the description if is set
if( settings.events[i].url !== undefined )
{
/**
* If the setting url_blank is set and is true, the target of the url
* will be "_blank"
*/
type_url = settings.events[i].url_blank !== undefined &&
settings.events[i].url_blank === true ?
'_blank':'';
description.wrap( '' );
}
eventList.append(item);
}
}
$(instance).addClass('calendar');
cEventsBody.append(eventList);
$(instance).html(cBody).append(cEvents);
}
return print();
}
$.fn.eCalendar = function (oInit) {
return this.each(function () {
return eCalendar(oInit, $(this));
});
};
// plugin defaults
$.fn.eCalendar.defaults = {
weekDays: ['Dom', 'Lun', 'Mar', 'Mer', 'Gio', 'Ven', 'Sab'],
months: ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'],
textArrows: {previous: '<', next: '>'},
eventTitle: 'Eventi & Calendario',
url: '',
events: [
{
title: 'CORSO DI AGGIORNAMENTO IN RADIOPROTEZIONE AI',
description: 'CORSO DI AGGIORNAMENTO IN RADIOPROTEZIONE AI SENSI DEL D.LGS. 101/2020
Leggi',
datetime: new Date(2024, 11, 30, 07)
},
{
title: 'IL RISCHIO CLINICO E ASPETTI MEDICO-LEGALI NELLA',
description: 'IL RISCHIO CLINICO E ASPETTI MEDICO-LEGALI NELLA LOTTA ALLE INFEZIONI CORRELATE ALL\'ASSISTENZA
Leggi',
datetime: new Date(2024, 11, 30, 04)
},
{
title: 'IL SISTEMA DEL SOCCORSO SANITARIO NELLE',
description: 'IL SISTEMA DEL SOCCORSO SANITARIO NELLE MAXIEMERGENZE
Leggi',
datetime: new Date(2024, 10, 28, 22)
},
{
title: 'Sindrome Fibromialgica: Appropriatezza',
description: 'Sindrome Fibromialgica: Appropriatezza Diagnostica e Terapeutica
Leggi',
datetime: new Date(2024, 10, 01, 09)
},
{
title: 'CORSO ACCESSO INTRAOSSEO EZ-IO',
description: 'CORSO ACCESSO INTRAOSSEO EZ-IO
Leggi',
datetime: new Date(2024, 5, 07, 09)
},
{
title: 'EMERGENZE ED URGENZE IN ODONTOIATRIA, COMPRESO IL',
description: 'EMERGENZE ED URGENZE IN ODONTOIATRIA, COMPRESO IL RUOLO DELLA SEDAZIONE COSCIENTE
Leggi',
datetime: new Date(2024, 4, 11, 09)
},
{
title: 'Corso di radiofrequenza in Uro-Ginecologia',
description: 'Corso di radiofrequenza in Uro-Ginecologia
Leggi',
datetime: new Date(2024, 4, 10, 19)
},
{
title: 'GIORNATA MONDIALE PER LA SALUTE E LA SICUREZZA',
description: 'GIORNATA MONDIALE PER LA SALUTE E LA SICUREZZA SUL LAVORO Piano Nazionale della Prevenzione 2020-2025: Macrobiettivi e Strategie
Leggi',
datetime: new Date(2024, 3, 29, 09)
},
{
title: 'CORSO ACCESSO INTRAOSSEO EZ-IO - RAGGIUNTO NUMERO',
description: 'CORSO ACCESSO INTRAOSSEO EZ-IO - RAGGIUNTO NUMERO MASSIMO DI PARTECIPANTI
Leggi',
datetime: new Date(2024, 2, 25, 09)
},
{
title: 'Gestione del paziente dislipidemico ad alto',
description: 'Gestione del paziente dislipidemico ad alto rischio CV: personalizzazione della terapia e applicazione delle regole regionali
Leggi',
datetime: new Date(2024, 2, 16, 08)
},
{
title: '1° Forum di Medicina di Genere: opinioni a',
description: '1° Forum di Medicina di Genere: opinioni a confronto
Leggi',
datetime: new Date(2024, 2, 08, 08)
},
{
title: 'Progetto CAO-SIdP - Gengive sane per salvare il',
description: 'Progetto CAO-SIdP - Gengive sane per salvare il sorriso - Le linee guida della terapia delle parodontiti
Leggi',
datetime: new Date(2024, 1, 29, 09)
},
{
title: 'ADR IN ODONTOIATRIA',
description: 'ADR IN ODONTOIATRIA
Leggi',
datetime: new Date(2024, 1, 23, 09)
},
{
title: 'L\'INTERVENTO PRECOCE NEI DISTURBI DELLA',
description: 'L\'INTERVENTO PRECOCE NEI DISTURBI DELLA NUTRIZIONE E DELL\'ALIMENTAZIONE E L’IMPORTANZA DELLA COSTRUZIONE DI UNA RETE ASSISTENZIALE
Leggi',
datetime: new Date(2024, 1, 17, 08)
},
{
title: 'REAZIONI AVVERSE A FARMACI IN ODONTOIATRIA- 10',
description: 'REAZIONI AVVERSE A FARMACI IN ODONTOIATRIA- 10 ECM PER ODONTOIATRI, MEDICI, IGIENISTI DENTALI E FARMACISTI- OPEN PER STUDENTI PARI CDS
Leggi',
datetime: new Date(2024, 1, 01, 09)
},
{
title: 'Update sullo screening per il carcinoma',
description: 'Update sullo screening per il carcinoma colorettale in Sicilia: dalle ombre all\'esigenza di un network regionale integrato
Leggi',
datetime: new Date(2024, 0, 27, 09)
},
{
title: 'AmiloidoSicilia 2024',
description: 'AmiloidoSicilia 2024
Leggi',
datetime: new Date(2024, 0, 26, 09)
},
{
title: 'Convegno Nazionale \"La Prevenzione al Centro. La',
description: 'Convegno Nazionale \"La Prevenzione al Centro. La tutela della salute e sicurezza nei luoghi di lavoro alla luce del Piano Nazionale e Regionale della Prevenzione\"
Leggi',
datetime: new Date(2024, 0, 26, 09)
},
{
title: 'CORSO DI AGGIORNAMENTO IN RADIOPROTEZIONE AI',
description: 'CORSO DI AGGIORNAMENTO IN RADIOPROTEZIONE AI SENSI DEL D.LGS. 101/2020
Leggi',
datetime: new Date(2023, 11, 30, 10)
},
{
title: 'SPIRITUALITA\' E MALATI TERMINALI',
description: 'SPIRITUALITA\' E MALATI TERMINALI
Leggi',
datetime: new Date(2023, 11, 21, 10)
},
{
title: 'Il Percorso per L’autonomia della Persona con',
description: 'Il Percorso per L’autonomia della Persona con Lesione Midollare: VALUTAZIONE, DIRITTI, AUSILI
Leggi',
datetime: new Date(2023, 11, 20, 15)
},
{
title: 'Antimicrobico resistenza: una visione olistica',
description: 'Antimicrobico resistenza: una visione olistica
Leggi',
datetime: new Date(2023, 11, 20, 09)
},
{
title: 'CORSO DI AGGIORNAMENTO IN RADIOPROTEZIONE AI',
description: 'CORSO DI AGGIORNAMENTO IN RADIOPROTEZIONE AI SENSI DEL D.LGS. 101/2020 - 2023
Leggi',
datetime: new Date(2023, 10, 30, 00)
},
{
title: 'AGGIORNAMENTO SULLE TEMATICHE DI PROTEZIONE',
description: 'AGGIORNAMENTO SULLE TEMATICHE DI PROTEZIONE CIVILE 2023
Leggi',
datetime: new Date(2023, 10, 30, 00)
},
{
title: 'GESTIONE EMERGENZE E MEDICINA DELLE CATASTROFI',
description: 'GESTIONE EMERGENZE E MEDICINA DELLE CATASTROFI 2023
Leggi',
datetime: new Date(2023, 10, 30, 00)
},
{
title: 'OBIETTIVO SALUTE, CONGRESSO \"PALERMO CAPITALE',
description: 'OBIETTIVO SALUTE, CONGRESSO \"PALERMO CAPITALE DELLA NUOVA NORMALITA\'\"
Leggi',
datetime: new Date(2023, 10, 24, 09)
},
{
title: 'Le diseguaglianze ordini professionali a',
description: 'Le diseguaglianze ordini professionali a confronto
Leggi',
datetime: new Date(2023, 10, 14, 10)
},
{
title: 'L’impiego delle Radiazioni ionizzanti in ambito',
description: 'L’impiego delle Radiazioni ionizzanti in ambito ospedaliero
Leggi',
datetime: new Date(2023, 10, 11, 11)
},
{
title: 'ANTIBIOTICI: APPROPRIATEZZA PRESCRITTIVA DEGLI',
description: 'ANTIBIOTICI: APPROPRIATEZZA PRESCRITTIVA DEGLI ANTIBIOTICI E RESISTENZE BATTERICHE
Leggi',
datetime: new Date(2023, 10, 11, 09)
},
{
title: 'I° MEMORIAL GIOVANNI CRICCHIO. Elevazione del',
description: 'I° MEMORIAL GIOVANNI CRICCHIO. Elevazione del pavimento del seno mascellare senza innesto
Leggi',
datetime: new Date(2023, 9, 28, 09)
},
{
title: 'La morte improvvisa in età pediatrica e',
description: 'La morte improvvisa in età pediatrica e giovanile - Piccoli Battiti
Leggi',
datetime: new Date(2023, 8, 29, 15)
},
{
title: 'Posticipato a data da destinarsi - Occlusione e',
description: 'Posticipato a data da destinarsi - Occlusione e funzione masticatoria: conoscenze imprescindibili per un corretto sviluppo e funzionamento dell’apparato stomatognatico
Leggi',
datetime: new Date(2023, 8, 22, 09)
},
{
title: 'Colpa Medica - Studio e Approfondimento della',
description: 'Colpa Medica - Studio e Approfondimento della Commissione Ministeriale
Leggi',
datetime: new Date(2023, 8, 18, 15)
},
{
title: 'INDIPENDENZA - Interventi e strategie per il',
description: 'INDIPENDENZA - Interventi e strategie per il contrasto del Gioco d’Azzardo Patologico
Leggi',
datetime: new Date(2023, 8, 15, 15)
},
{
title: 'EVENTO FINALE PROGETTO Smart Rehab',
description: 'EVENTO FINALE PROGETTO Smart Rehab
Leggi',
datetime: new Date(2023, 5, 23, 09)
},
{
title: 'SIMG SICILIA, AL VIA IL 18° CONGRESSO REGIONALE',
description: 'SIMG SICILIA, AL VIA IL 18° CONGRESSO REGIONALE DEI MEDICI DI FAMIGLIA
Leggi',
datetime: new Date(2023, 5, 23, 09)
},
{
title: 'Normative e Nuove Opportunità per la',
description: 'Normative e Nuove Opportunità per la Professione. Pubblicità sanitaria, ECM, autorizzazioni, direzione sanitaria e nuove forme societarie - Società Tra Professionisti (STP)
Leggi',
datetime: new Date(2023, 5, 17, 09)
},
{
title: 'Weight Regain dopo Chirurgia Bariatrica Il team',
description: 'Weight Regain dopo Chirurgia Bariatrica Il team incontra il Medico di Medicina Generale
Leggi',
datetime: new Date(2023, 5, 16, 09)
},
{
title: 'LE INFEZIONI ALLE VIE URINARIE: dal territorio',
description: 'LE INFEZIONI ALLE VIE URINARIE: dal territorio all’ospedale
Leggi',
datetime: new Date(2023, 5, 10, 09)
},
{
title: 'Paolo Giaccone - Un medico, un eroe normale',
description: 'Paolo Giaccone - Un medico, un eroe normale
Leggi',
datetime: new Date(2023, 4, 27, 09)
},
{
title: 'LO STRESS PSICOLOGICO DELL\'EMERGENZA',
description: 'LO STRESS PSICOLOGICO DELL\'EMERGENZA
Leggi',
datetime: new Date(2023, 4, 26, 10)
},
{
title: 'Corso Esecutori BLSD',
description: 'Corso Esecutori BLSD
Leggi',
datetime: new Date(2023, 4, 20, 09)
},
{
title: 'LA GESTIONE INTERDISCIPLINARE DEL LINFEDEMA -',
description: 'LA GESTIONE INTERDISCIPLINARE DEL LINFEDEMA - Dalla prevenzione alla riabilitazione
Leggi',
datetime: new Date(2023, 4, 13, 09)
},
{
title: 'La tutela della fertilità in età evolutiva',
description: 'La tutela della fertilità in età evolutiva
Leggi',
datetime: new Date(2023, 4, 09, 09)
},
{
title: 'Il Medico di Medicina Generale e il genere come',
description: 'Il Medico di Medicina Generale e il genere come determinante di salute
Leggi',
datetime: new Date(2023, 4, 06, 08)
},
{
title: '17° Congresso Regionale “Dialoghi di Palermo',
description: '17° Congresso Regionale “Dialoghi di Palermo Medica”
Leggi',
datetime: new Date(2023, 3, 14, 09)
},
{
title: 'HOSPITAL CHEF - II EDIZIONE – 2023',
description: 'HOSPITAL CHEF - II EDIZIONE – 2023
Leggi',
datetime: new Date(2023, 2, 20, 08)
},
{
title: 'IL PERCORSO DEL PAZIENTE AMPUTATO',
description: 'IL PERCORSO DEL PAZIENTE AMPUTATO
Leggi',
datetime: new Date(2023, 1, 04, 08)
},
{
title: 'DISUGUAGLIANZE SOCIALI DI SALUTE: RIFLESSIONI',
description: 'DISUGUAGLIANZE SOCIALI DI SALUTE: RIFLESSIONI SULL\'APPLICAZIONE DEL MODELLO MARMOT IN ITALIA
Leggi',
datetime: new Date(2023, 0, 30, 09)
},
{
title: 'LA GESTIONE MULTIDISCIPLINARE DELLA SCLEROSI',
description: 'LA GESTIONE MULTIDISCIPLINARE DELLA SCLEROSI MULTIPLA IN SICILIA TRA PRESENTE E FUTURO
Leggi',
datetime: new Date(2023, 0, 21, 09)
},
{title: '', description: '', datetime: new Date(2024, new Date().getMonth(), 14, 22)}
],
firstDayOfWeek: 0
};
}(jQuery));