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:'2025', month:'8', today:'13', 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_2025-09-13', title: '
Confirmed Group ( End Booking )
' + '
Group No.: EBF130925
Date: 13.09.2025 - 21.09.2025
Lowest price: € = 939 '+ // ' '+ // ' '+ // ' '+ // '
', start: '2025-09-13', raw_start: '13.09.2025', team: 'EBF130925', team_tid: '177572', allow_book : '0', seat:'7', target: '_blank', url: 'javascript:;', }, { id: 'site_span 2025-09-13', title : 'End', start: '2025-09-13', raw_start: '13.09.2025', team: 'EBF130925', team_tid: '177572', target: '_blank', url: 'javascript:;', allow_book : '0', seat:'7', }, { id: 'price_span 2025-09-13', title: '', start: '2025-09-13', raw_start: '13.09.2025', team: 'EBF130925', team_tid: '177572', target: '_blank', url: 'javascript:;', allow_book : '0', seat:'7', }, ] }); });