/**
* @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: 'PSICHIATRIA OGGI UNA REALTA\' IN CONTINUO',
description: 'PSICHIATRIA OGGI UNA REALTA\' IN CONTINUO CAMBIAMENTO
Leggi',
datetime: new Date(2025, 11, 30, 10)
},
{
title: 'CORSO DI AGGIORNAMENTO IN RADIOPROTEZIONE AI',
description: 'CORSO DI AGGIORNAMENTO IN RADIOPROTEZIONE AI SENSI DEL D.LGS. 101/2020
Leggi',
datetime: new Date(2025, 11, 30, 07)
},
{
title: 'IL SISTEMA DEL SOCCORSO SANITARIO NELLE',
description: 'IL SISTEMA DEL SOCCORSO SANITARIO NELLE MAXIEMERGENZE
Leggi',
datetime: new Date(2025, 11, 30, 07)
},
{
title: 'MEDICINA DI GENERE 2 FORUM OPINIONI A CONFRONTO:',
description: 'MEDICINA DI GENERE 2 FORUM OPINIONI A CONFRONTO: LA CARDIOLOGIA DI GENERE
Leggi',
datetime: new Date(2025, 4, 07, 09)
},
{
title: 'Piano integrato per la salute e la sicurezza nei',
description: 'Piano integrato per la salute e la sicurezza nei luoghi di lavoro
Leggi',
datetime: new Date(2025, 3, 28, 09)
},
{
title: 'CHIRURGIA GENERALE: INNOVAZIONE E SINERGIA TRA',
description: 'CHIRURGIA GENERALE: INNOVAZIONE E SINERGIA TRA OSPEDALE E TERRITORIO
Leggi',
datetime: new Date(2025, 3, 12, 09)
},
{
title: 'MEDICINA E SERVIZIO ALLA VITA, storie di cura e',
description: 'MEDICINA E SERVIZIO ALLA VITA, storie di cura e di speranza
Leggi',
datetime: new Date(2025, 3, 05, 09)
},
{
title: 'OLIO DI EXTRAVERGINE DI OLIVA ALIMENTAZIONE E',
description: 'OLIO DI EXTRAVERGINE DI OLIVA ALIMENTAZIONE E SALUTE, SVOLTA EPOCALE DOPO 7 MILA ANNI, “RIVALUTAZIONE” SCIENTIFICA DELLE INFINITE AZIONI SALUTARIE
Leggi',
datetime: new Date(2025, 3, 05, 09)
},
{
title: 'Promuovere la qualità di vita dopo la menopausa:',
description: 'Promuovere la qualità di vita dopo la menopausa: un approccio multidisciplinare
Leggi',
datetime: new Date(2025, 3, 03, 09)
},
{
title: 'Ortodonzia con allineatori nel bambino e',
description: 'Ortodonzia con allineatori nel bambino e nell\'adolescente
Leggi',
datetime: new Date(2025, 2, 29, 09)
},
{
title: 'TUMORI DEL CAVO ORALE PREVENIRE, RICONOSCERE,',
description: 'TUMORI DEL CAVO ORALE PREVENIRE, RICONOSCERE, CURARE
Leggi',
datetime: new Date(2025, 2, 15, 08)
},
{
title: 'NAVIGARE LA SANITA’: industria navale, medicina',
description: 'NAVIGARE LA SANITA’: industria navale, medicina e digitalizzazione al servizio delle Persone
Leggi',
datetime: new Date(2025, 2, 14, 09)
},
{
title: 'GIORNATA DI AGGIORNAMENTO: SALUTE ORALE E TERAPIE',
description: 'GIORNATA DI AGGIORNAMENTO: SALUTE ORALE E TERAPIE FARMACOLOGICHE
Leggi',
datetime: new Date(2025, 2, 08, 09)
},
{
title: 'RARI MA UNITI: LA SFIDA DELLA TETRAPLEGIA E DELLE',
description: 'RARI MA UNITI: LA SFIDA DELLA TETRAPLEGIA E DELLE MALATTIE RARE
Leggi',
datetime: new Date(2025, 1, 28, 09)
},
{
title: 'Le terapie ipolipemizzanti di combinazione orali',
description: 'Le terapie ipolipemizzanti di combinazione orali nella prevenzione CV: i benefici di un intervento precoce
Leggi',
datetime: new Date(2025, 1, 20, 09)
},
{
title: 'L\'ADI NELL ERA DELL ACCREDITAMENTO: LA NUOVA',
description: 'L\'ADI NELL ERA DELL ACCREDITAMENTO: LA NUOVA FRONTIERA DELLE CURE DOMICILIARE
Leggi',
datetime: new Date(2025, 1, 08, 09)
},
{
title: 'I giovani e la violenza: un fenomeno in aumento?',
description: 'I giovani e la violenza: un fenomeno in aumento? Aspetti giuridici, sociali, psicologici
Leggi',
datetime: new Date(2025, 0, 31, 15)
},
{
title: 'Management Sanità - Direttore Amministrativo -',
description: 'Management Sanità - Direttore Amministrativo - Direttore Sanitario
Leggi',
datetime: new Date(2024, 11, 31, 23)
},
{
title: 'Management Sanità - RICERTIFICAZIONE per',
description: 'Management Sanità - RICERTIFICAZIONE per Direttori Amministrativi e di Struttura Complessa
Leggi',
datetime: new Date(2024, 11, 31, 17)
},
{
title: 'LA GESTIONE DELLE VIE AEREE DIFFICILI',
description: 'LA GESTIONE DELLE VIE AEREE DIFFICILI
Leggi',
datetime: new Date(2024, 11, 30, 08)
},
{
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, 11, 30, 00)
},
{
title: 'CORSO DI ELETTROCARDIOGRAFIA CLINICA IN EMERGENZA',
description: 'CORSO DI ELETTROCARDIOGRAFIA CLINICA IN EMERGENZA
Leggi',
datetime: new Date(2024, 11, 07, 08)
},
{
title: 'IN DIPENDENZA IL SOTTILE CONFINE TRA SANO E',
description: 'IN DIPENDENZA IL SOTTILE CONFINE TRA SANO E PATOLOGICO NELLE TECNOLOGIE DIGITALI
Leggi',
datetime: new Date(2024, 11, 05, 09)
},
{
title: 'CONTINUA EVOLUZIONE DEL CALENDARIO VACCINALE',
description: 'CONTINUA EVOLUZIONE DEL CALENDARIO VACCINALE REGIONALE. PROSPETTIVE FUTURE
Leggi',
datetime: new Date(2024, 10, 30, 18)
},
{
title: 'TUMORI EREDO-FAMILIARI: COME AFFRONTARE LA',
description: 'TUMORI EREDO-FAMILIARI: COME AFFRONTARE LA POSITIVITÀ AL TEST DEL BRCA ARNAS Civico – Di Cristina – Benfratelli – Palermo - U.O.S.D. Breast Unit
Leggi',
datetime: new Date(2024, 10, 25, 14)
},
{
title: 'Oltre il silenzio: storie di donne resilienti',
description: 'Oltre il silenzio: storie di donne resilienti
Leggi',
datetime: new Date(2024, 10, 25, 09)
},
{
title: 'GESTIONE E COMPLICANZE DEGLI ACCESSI VASCOLARI',
description: 'GESTIONE E COMPLICANZE DEGLI ACCESSI VASCOLARI
Leggi',
datetime: new Date(2024, 10, 21, 08)
},
{
title: 'Gestione Multidisciplinare delle OSAS in età',
description: 'Gestione Multidisciplinare delle OSAS in età adulta e pediatrica: dalla diagnosi alla terapia
Leggi',
datetime: new Date(2024, 10, 16, 09)
},
{
title: 'Causalità e danno nella responsabilità',
description: 'Causalità e danno nella responsabilità sanitaria. Dall’evoluzione giurisprudenziale alla valutazione medico-legale
Leggi',
datetime: new Date(2024, 10, 15, 09)
},
{
title: 'Internauti interistituzionali: una nuova alleanza',
description: 'Internauti interistituzionali: una nuova alleanza per un consapevole e intelligente utilizzo di smart-phone e device
Leggi',
datetime: new Date(2024, 10, 09, 20)
},
{
title: 'XXVI Congresso Nazionale SIOF: ODONTOLOGIA',
description: 'XXVI Congresso Nazionale SIOF: ODONTOLOGIA FORENSE: COMPETENZA E RESPONSABILITA\' GUARDANDO AL FUTURO
Leggi',
datetime: new Date(2024, 10, 08, 14)
},
{
title: 'Facing Abuse 3.0',
description: 'Facing Abuse 3.0
Leggi',
datetime: new Date(2024, 10, 08, 09)
},
{
title: 'Sindrome Fibromialgica: Appropriatezza',
description: 'Sindrome Fibromialgica: Appropriatezza Diagnostica e Terapeutica
Leggi',
datetime: new Date(2024, 10, 01, 09)
},
{
title: 'Dica 43, lo stato di salute dello Statuto',
description: 'Dica 43, lo stato di salute dello Statuto siciliano: conoscerlo per amarlo
Leggi',
datetime: new Date(2024, 9, 29, 10)
},
{
title: 'Psichiatria oggi. Una realtà in continuo',
description: 'Psichiatria oggi. Una realtà in continuo cambiamento
Leggi',
datetime: new Date(2024, 9, 25, 09)
},
{
title: 'GESTIONE E COMPLICANZE DEGLI ACCESSI VASCOLARI',
description: 'GESTIONE E COMPLICANZE DEGLI ACCESSI VASCOLARI
Leggi',
datetime: new Date(2024, 9, 24, 08)
},
{
title: 'Oltre il dolore: principali campi di applicazione',
description: 'Oltre il dolore: principali campi di applicazione ed evidenze dell\'Agopuntura
Leggi',
datetime: new Date(2024, 8, 14, 09)
},
{
title: 'ARGOMENTI DI OFTALMOLOGIA DALLA PREVENZIONE AL',
description: 'ARGOMENTI DI OFTALMOLOGIA DALLA PREVENZIONE AL CONTENZIOSO
Leggi',
datetime: new Date(2024, 8, 14, 09)
},
{
title: 'Commissione CAO Trapani PUBBLICITA’ E',
description: 'Commissione CAO Trapani PUBBLICITA’ E INFORMAZIONE SANITARIA, ECM, DIREZIONE SANITARIA, L’ESERCIZIO DELL’ATTIVITA’ TRA PROFESSIONISTIDELL’ATTIVITA’ TRA PROFESSIONISTI
Leggi',
datetime: new Date(2024, 8, 07, 09)
},
{
title: '1° CONVEGNO EUROMEDITERRANEO \'\'UN\'ISOLA IN',
description: '1° CONVEGNO EUROMEDITERRANEO \'\'UN\'ISOLA IN VOLO\'\' - ASPETTI DI MEDICINA AERONAUTICA NELL\'ALA ROTANTE
Leggi',
datetime: new Date(2024, 6, 11, 09)
},
{
title: 'CONTINUA EVOLUZIONE DEL CALENDARIO VACCINALE',
description: 'CONTINUA EVOLUZIONE DEL CALENDARIO VACCINALE REGIONALE. PROSPETTIVE FUTURE
Leggi',
datetime: new Date(2024, 6, 06, 09)
},
{
title: 'Salute Pubblica - Tra abusivismo professionale e',
description: 'Salute Pubblica - Tra abusivismo professionale e linee guida - Gli Odontoiatri incontrano i NAS
Leggi',
datetime: new Date(2024, 5, 29, 09)
},
{
title: 'LA GESTIONE DELLE VIE AEREE DIFFICILI',
description: 'LA GESTIONE DELLE VIE AEREE DIFFICILI
Leggi',
datetime: new Date(2024, 5, 28, 09)
},
{
title: 'CORSO TEORICO PRATICO TRAUMATOLOGIA DELLA TESTA E',
description: 'CORSO TEORICO PRATICO TRAUMATOLOGIA DELLA TESTA E DEL COLLO E TECNICHE DI SUTURA
Leggi',
datetime: new Date(2024, 5, 22, 08)
},
{
title: 'APPROCCIO DIAGNOSTICO TERAPEUTICO ALLA',
description: 'APPROCCIO DIAGNOSTICO TERAPEUTICO ALLA COAGULOPATIA IN AREA CRITICA
Leggi',
datetime: new Date(2024, 5, 21, 09)
},
{
title: 'SOPRAVVIVERE ALLA TORTURA. LA PRESA IN CARICO',
description: 'SOPRAVVIVERE ALLA TORTURA. LA PRESA IN CARICO MULTIDISCIPLINARE DELLE PERSONE SOPRAVVISSUTE A TORTURA E VIOLENZA INTENZIONALE
Leggi',
datetime: new Date(2024, 5, 20, 08)
},
{
title: 'CORSO ESECUTORE BLSD',
description: 'CORSO ESECUTORE BLSD
Leggi',
datetime: new Date(2024, 5, 18, 08)
},
{
title: 'Focus on: patologie urologiche e qualità di',
description: 'Focus on: patologie urologiche e qualità di vita; L’urologia del Policlinico incontra il territorio
Leggi',
datetime: new Date(2024, 5, 08, 09)
},
{title: '', description: '', datetime: new Date(2025, new Date().getMonth(), 07, 20)}
],
firstDayOfWeek: 0
};
}(jQuery));