$('#calendar').fullCalendar({
header: {
left: '',
center: 'title',
right: 'prev,next,today,month,listMonth'
},
themeSystem: 'bootstrap4',
locale: 'tr',
displayEventEnd: true,
url: false,
timeFormat: 'H:mm',
events: [
{
id: '8',
title: 'Cin Ali Çocuk Bahçesinde',
icon: 'cicon icon-muze',
timePTF: 'fc-event-past',
start: '2021-07-01 16:00:00',
end: '2021-07-01 19:00:00',
url: 'https://www.cinali.com.tr/etkinlikler/cin-ali-cocuk-bahcesinde',
editable: '',
color: '#9d9d9c',
image: '
'
},
{
id: '9',
title: 'Genç Müze 02',
icon: 'cicon icon-muze',
timePTF: 'fc-event-past',
start: '2021-06-28 19:30:00',
end: '2021-06-28 21:30:00',
url: 'https://www.cinali.com.tr/etkinlikler/genc-muze-02',
editable: '',
color: '#9d9d9c',
image: '
'
},
{
id: '3',
title: 'Genç Müze',
icon: 'cicon icon-muze',
timePTF: 'fc-event-past',
start: '2021-05-24 19:00:00',
end: '2021-05-24 21:30:00',
url: 'https://www.cinali.com.tr/etkinlikler/genc-muze',
editable: '',
color: '#9d9d9c',
image: '
'
},
{
id: '4',
title: '53. Müze Buluşması / Kıpır Kıpır Müze',
icon: 'cicon icon-muze',
timePTF: 'fc-event-past',
start: '2021-05-18 19:00:00',
end: '2021-05-18 21:00:00',
url: 'https://www.cinali.com.tr/etkinlikler/53.-muze-bulusmasi-/-kipir-kipir-muze',
editable: '',
color: '#9d9d9c',
image: '
'
},
{
id: '5',
title: '23 Nisan',
icon: 'cicon icon-muze',
timePTF: 'fc-event-past',
start: '2021-04-23 15:00:00',
end: '2021-04-23 17:00:00',
url: 'https://www.cinali.com.tr/etkinlikler/23-nisan',
editable: '',
color: '#9d9d9c',
image: '
'
},
{
id: '6',
title: 'Müze Eğitimi',
icon: 'cicon icon-muze',
timePTF: 'fc-event-past',
start: '2021-03-20 20:00:00',
end: '2021-03-20 22:00:00',
url: 'https://www.cinali.com.tr/etkinlikler/muze-egitimi',
editable: '',
color: '#9d9d9c',
image: '
'
},
{
id: '7',
title: 'Mapatuleyi Tutmak Belgeseli',
icon: 'cicon icon-muze',
timePTF: 'fc-event-past',
start: '2021-03-08 19:30:00',
end: '2021-03-08 21:30:00',
url: 'https://www.cinali.com.tr/etkinlikler/mapatuleyi-tutmak-belgeseli',
editable: '',
color: '#9d9d9c',
image: '
'
},
{
id: '1',
title: 'Deneme',
icon: 'cicon icon-muze',
timePTF: 'fc-event-past',
start: '2020-04-15 20:00:00',
end: '2020-04-18 19:00:00',
url: 'https://www.cinali.com.tr/etkinlikler/deneme',
editable: '',
color: '#9d9d9c',
image: '
'
},
],
eventRender: function(event, element) {
$(element).toggleClass(event.timePTF);
if (event.icon) {
element.find(".fc-title").html("");
};
element.popover({
container: 'body',
html: true,
placement: 'bottom',
title: '' + event.title + '',
content: event.image,
trigger: 'hover',
});
}
});
// POPUP
$(document).ready(function() {
if($('#popup').length){
setTimeout(function () {
$('#popup').fancybox({
afterShow: function () {
$(".fancybox-image").wrap($("", {
href: 'https://biletinial.com/tr-tr/muzik/notalardaki-baskent',
target: "_parent"
}));
}
}).click();
}, 1000);
}
});