function show_help(x, y, text) { $("#popup_info").css('left', x - 300); $("#popup_info").css('top', y); $("#popup_info").html(text); $("#popup_info").css('display', 'block'); $("#popup_info").css('z-index', '150'); } function hide_help() { $("#popup_info").css('display', 'none'); } $(function() { console.log('calendar int'); $(document).on("click", ".fc-button", function() { $("table td").removeClass("this"); }); $(document).on("click", ".fc-event", function() { var table_w = $(".fc-content").width(), table_h = td_h * tbody, td_w = table_w / 7 - 2, td_h = $(".fc-content td").height()+5, th_h = $(".fc-border-separate th").height(), tbody = $(".fc-border-separate tbody tr").size(), left = parseInt($(this).css("left")), top = parseInt($(this).css("top")) - th_h, left_shuzi = parseInt(left / td_w), top_shuzi = parseInt(top / td_h); $("table td").removeClass("this"); $(".fc-week" + top_shuzi + " td:eq(" + left_shuzi + ")").addClass("this"); }); $('.rili .loading-box').hide(); $('#calendar').fullCalendar('destroy'); $('#calendar').fullCalendar({ header: { left: 'prev', center: 'title', right: 'next' }, aspectRatio: 4, year:'2026', month:'3', today:'04', lang: 'en', buttonIcons: false, weekNumbers: false, editable: false, eventClick: function(calEvent, jsEvent, view) { if(0 == calEvent.allow_book) { return false; } lave_seat = calEvent.seat; $('#start_box').text(calEvent.raw_start).attr('data-start', calEvent.raw_start).attr('data-tid',calEvent.team_tid); if($('#adults').text() > calEvent.seat ) { $('#adults').text(calEvent.seat) } }, eventMouseover: function(event, jsEvent, view) { strs = event.id.split(" "); str = strs[strs.length - 1]; if (str.substr(0, 2) == "cu") { test = $("." + str).text(); } else { test = $(".cu_" + str).text(); } if (test != "") { show_help(jsEvent.pageX, jsEvent.pageY, test); } }, eventMouseout: function(event, jsEvent, view) { hide_help(); }, events: [ { id: ' cu_tieding cu_2026-04-04', title: '
' + '

Confirmed Group

' + '

' + '

Group No.: SHF040426
Date: 04.04.2026 - 06.04.2026

', // '

Lowest price: 339 € = 339 '+ // ' '+ // ' '+ // ' '+ // '

', start: '2026-04-04', raw_start: '04.04.2026', team: 'SHF040426', team_tid: '177597', allow_book : '1', seat:'9', target: '_blank', url: 'javascript:;', }, { id: 'site_span 2026-04-04', title : 'Available', start: '2026-04-04', raw_start: '04.04.2026', team: 'SHF040426', team_tid: '177597', target: '_blank', url: 'javascript:;', allow_book : '1', seat:'9', }, { id: 'price_span 2026-04-04', title: '339 €', start: '2026-04-04', raw_start: '04.04.2026', team: 'SHF040426', team_tid: '177597', target: '_blank', url: 'javascript:;', allow_book : '1', seat:'9', }, { id: ' cu_tieding cu_2026-04-11', title: '
' + '

Confirmed Group ( End Booking )

' + '

' + '

Group No.: SHF110426
Date: 11.04.2026 - 13.04.2026

', // '

Lowest price: € = 339 '+ // ' '+ // ' '+ // ' '+ // '

', start: '2026-04-11', raw_start: '11.04.2026', team: 'SHF110426', team_tid: '177598', allow_book : '0', seat:'9', target: '_blank', url: 'javascript:;', }, { id: 'site_span 2026-04-11', title : 'End', start: '2026-04-11', raw_start: '11.04.2026', team: 'SHF110426', team_tid: '177598', target: '_blank', url: 'javascript:;', allow_book : '0', seat:'9', }, { id: 'price_span 2026-04-11', title: '', start: '2026-04-11', raw_start: '11.04.2026', team: 'SHF110426', team_tid: '177598', target: '_blank', url: 'javascript:;', allow_book : '0', seat:'9', }, { id: ' cu_tieding cu_2026-04-18', title: '
' + '

Confirmed Group

' + '

' + '

Group No.: SHF180426
Date: 18.04.2026 - 20.04.2026

', // '

Lowest price: 339 € = 339 '+ // ' '+ // ' '+ // ' '+ // '

', start: '2026-04-18', raw_start: '18.04.2026', team: 'SHF180426', team_tid: '177599', allow_book : '1', seat:'9', target: '_blank', url: 'javascript:;', }, { id: 'site_span 2026-04-18', title : 'Available', start: '2026-04-18', raw_start: '18.04.2026', team: 'SHF180426', team_tid: '177599', target: '_blank', url: 'javascript:;', allow_book : '1', seat:'9', }, { id: 'price_span 2026-04-18', title: '339 €', start: '2026-04-18', raw_start: '18.04.2026', team: 'SHF180426', team_tid: '177599', target: '_blank', url: 'javascript:;', allow_book : '1', seat:'9', }, { id: ' cu_tieding cu_2026-04-25', title: '
' + '

Confirmed Group

' + '

' + '

Group No.: SHF250426
Date: 25.04.2026 - 27.04.2026

', // '

Lowest price: 339 € = 339 '+ // ' '+ // ' '+ // ' '+ // '

', start: '2026-04-25', raw_start: '25.04.2026', team: 'SHF250426', team_tid: '177600', allow_book : '1', seat:'9', target: '_blank', url: 'javascript:;', }, { id: 'site_span 2026-04-25', title : 'Available', start: '2026-04-25', raw_start: '25.04.2026', team: 'SHF250426', team_tid: '177600', target: '_blank', url: 'javascript:;', allow_book : '1', seat:'9', }, { id: 'price_span 2026-04-25', title: '339 €', start: '2026-04-25', raw_start: '25.04.2026', team: 'SHF250426', team_tid: '177600', target: '_blank', url: 'javascript:;', allow_book : '1', seat:'9', }, { id: ' cu_tieding cu_2026-05-02', title: '
' + '

Confirmed Group ( End Booking )

' + '

' + '

Group No.: SHF020526
Date: 02.05.2026 - 04.05.2026

', // '

Lowest price: € = 339 '+ // ' '+ // ' '+ // ' '+ // '

', start: '2026-05-02', raw_start: '02.05.2026', team: 'SHF020526', team_tid: '177601', allow_book : '0', seat:'9', target: '_blank', url: 'javascript:;', }, { id: 'site_span 2026-05-02', title : 'End', start: '2026-05-02', raw_start: '02.05.2026', team: 'SHF020526', team_tid: '177601', target: '_blank', url: 'javascript:;', allow_book : '0', seat:'9', }, { id: 'price_span 2026-05-02', title: '', start: '2026-05-02', raw_start: '02.05.2026', team: 'SHF020526', team_tid: '177601', target: '_blank', url: 'javascript:;', allow_book : '0', seat:'9', }, ] }); });