+function($){ "use strict"; $('.external-event').each(function(){ $(this).data('event', { title: $.trim($(this).text()), className: [$(this).data('class')] }); }); $('.external-event').draggable({ revert: true, revertDuration: 0 }); var cal = $('#fullcalendar').fullCalendar({ theme: true, editable: false, droppable: false, header: { left: 'prev, today, next', center: 'title' }, buttonText: { prev: '', next: '' }, events: [ { "category": "online", "title": "Online: 01 h 45 min", "start": "2023-11-02", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 36 min", "start": "2023-11-03", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 21 min", "start": "2023-11-04", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2023-11-05", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 57 min", "start": "2023-11-10", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 30 min", "start": "2023-11-11", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 36 min", "start": "2023-11-12", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 27 min", "start": "2023-11-13", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 45 min", "start": "2023-11-17", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 45 min", "start": "2023-11-18", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 06 min", "start": "2023-11-19", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 15 min", "start": "2023-11-22", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 12 min", "start": "2023-11-23", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 54 min", "start": "2023-11-24", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 12 min", "start": "2023-11-25", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 21 min", "start": "2023-11-26", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 09 min", "start": "2024-03-15", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2024-03-16", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 36 min", "start": "2024-03-26", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 51 min", "start": "2024-03-27", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 30 min", "start": "2024-03-29", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 48 min", "start": "2024-04-05", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 33 min", "start": "2024-04-06", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2024-04-07", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 48 min", "start": "2024-04-12", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 18 min", "start": "2024-04-13", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 18 min", "start": "2024-04-14", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 30 min", "start": "2024-04-21", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 21 min", "start": "2024-04-27", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 54 min", "start": "2024-04-28", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 39 min", "start": "2024-05-01", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2024-05-08", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2024-05-10", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 57 min", "start": "2024-05-11", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 24 min", "start": "2024-05-12", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 09 min", "start": "2024-05-14", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 45 min", "start": "2024-05-17", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 18 min", "start": "2024-05-18", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 09 min", "start": "2024-05-19", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2024-05-24", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2024-05-25", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 27 min", "start": "2024-05-26", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 03 min", "start": "2024-05-31", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2024-06-01", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2024-06-02", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 33 min", "start": "2024-06-06", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 24 min", "start": "2024-06-09", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 42 min", "start": "2024-06-11", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 24 min", "start": "2024-06-14", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 42 min", "start": "2024-06-15", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 36 min", "start": "2024-06-21", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 48 min", "start": "2024-06-22", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 06 min", "start": "2024-06-23", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 18 min", "start": "2024-06-26", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 54 min", "start": "2024-06-29", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 45 min", "start": "2024-06-30", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 54 min", "start": "2024-07-03", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 45 min", "start": "2024-07-07", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 57 min", "start": "2024-07-08", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 51 min", "start": "2024-07-19", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 36 min", "start": "2024-07-20", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 36 min", "start": "2024-07-21", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2024-07-26", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 15 min", "start": "2024-07-27", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 21 min", "start": "2024-07-30", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 00 min", "start": "2024-07-31", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 00 min", "start": "2024-08-02", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 36 min", "start": "2024-08-03", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 21 min", "start": "2024-08-04", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 24 min", "start": "2024-08-07", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 45 min", "start": "2024-08-13", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 09 min", "start": "2024-08-14", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 39 min", "start": "2024-08-15", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 33 min", "start": "2024-08-16", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 24 min", "start": "2024-08-17", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 48 min", "start": "2024-08-18", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 27 min", "start": "2024-08-23", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 48 min", "start": "2024-10-12", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 30 min", "start": "2024-10-25", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 48 min", "start": "2024-10-26", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 39 min", "start": "2024-10-27", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 00 min", "start": "2024-10-30", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 06 min", "start": "2024-11-09", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 27 min", "start": "2024-11-11", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 57 min", "start": "2024-11-13", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 09 min", "start": "2024-11-15", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 51 min", "start": "2024-11-16", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 57 min", "start": "2024-11-17", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 03 min", "start": "2024-11-24", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 06 min", "start": "2024-11-27", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 03 min", "start": "2024-11-29", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 42 min", "start": "2024-11-30", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 51 min", "start": "2024-12-04", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 54 min", "start": "2024-12-06", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 45 min", "start": "2024-12-07", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 48 min", "start": "2024-12-11", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 36 min", "start": "2024-12-13", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 54 min", "start": "2024-12-15", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 45 min", "start": "2024-12-25", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 42 min", "start": "2024-12-27", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 45 min", "start": "2024-12-28", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 48 min", "start": "2024-12-29", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 09 min", "start": "2024-12-30", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 18 min", "start": "2024-12-31", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 21 min", "start": "2025-01-01", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2025-01-02", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 54 min", "start": "2025-01-03", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 48 min", "start": "2025-01-04", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 45 min", "start": "2025-01-05", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 45 min", "start": "2025-01-13", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 48 min", "start": "2025-01-24", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 30 min", "start": "2025-01-26", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 00 min", "start": "2025-01-30", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 57 min", "start": "2025-01-31", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 42 min", "start": "2025-02-02", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 48 min", "start": "2025-02-05", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 48 min", "start": "2025-02-07", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 03 min", "start": "2025-02-12", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 27 min", "start": "2025-02-14", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 03 min", "start": "2025-02-19", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 27 min", "start": "2025-02-21", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 15 min", "start": "2025-02-23", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 12 min", "start": "2025-02-25", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 24 min", "start": "2025-02-27", "className": ["success"] }, { "category": "Score", "title": "Max score: 246", "start": "2023-11-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 82", "start": "2023-11-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 275", "start": "2023-11-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 138", "start": "2023-11-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 165", "start": "2023-11-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 473", "start": "2023-11-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 285", "start": "2023-11-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 444", "start": "2023-11-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 161", "start": "2023-11-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 393", "start": "2023-11-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 357", "start": "2023-11-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 290", "start": "2023-11-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 348", "start": "2023-11-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 608", "start": "2023-11-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 329", "start": "2023-11-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 532", "start": "2023-11-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2456", "start": "2024-03-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3573", "start": "2024-03-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1336", "start": "2024-03-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 463", "start": "2024-03-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 945", "start": "2024-03-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 250", "start": "2024-04-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2353", "start": "2024-04-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2760", "start": "2024-04-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 782", "start": "2024-04-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3287", "start": "2024-04-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1002", "start": "2024-04-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3558", "start": "2024-04-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3050", "start": "2024-04-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2498", "start": "2024-04-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 325", "start": "2024-05-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 412", "start": "2024-05-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 165", "start": "2024-05-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2580", "start": "2024-05-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 899", "start": "2024-05-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 633", "start": "2024-05-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2323", "start": "2024-05-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3759", "start": "2024-05-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3149", "start": "2024-05-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3179", "start": "2024-05-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1957", "start": "2024-05-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3650", "start": "2024-05-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1675", "start": "2024-05-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1465", "start": "2024-06-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2593", "start": "2024-06-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1056", "start": "2024-06-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4736", "start": "2024-06-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1229", "start": "2024-06-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2324", "start": "2024-06-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1602", "start": "2024-06-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3473", "start": "2024-06-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4945", "start": "2024-06-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3873", "start": "2024-06-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 644", "start": "2024-06-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 877", "start": "2024-06-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3308", "start": "2024-06-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 619", "start": "2024-07-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1441", "start": "2024-07-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 680", "start": "2024-07-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2283", "start": "2024-07-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4570", "start": "2024-07-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 719", "start": "2024-07-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6241", "start": "2024-07-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5918", "start": "2024-07-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 7045", "start": "2024-07-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 7438", "start": "2024-07-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4713", "start": "2024-08-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4758", "start": "2024-08-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4146", "start": "2024-08-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5859", "start": "2024-08-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6935", "start": "2024-08-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6291", "start": "2024-08-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 8166", "start": "2024-08-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6002", "start": "2024-08-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6037", "start": "2024-08-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5125", "start": "2024-08-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6149", "start": "2024-08-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1532", "start": "2024-10-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4577", "start": "2024-10-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 728", "start": "2024-10-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3412", "start": "2024-10-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 897", "start": "2024-10-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4848", "start": "2024-11-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 538", "start": "2024-11-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1199", "start": "2024-11-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 816", "start": "2024-11-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6513", "start": "2024-11-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3720", "start": "2024-11-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6041", "start": "2024-11-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4237", "start": "2024-11-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6755", "start": "2024-11-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6446", "start": "2024-11-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5968", "start": "2024-12-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6262", "start": "2024-12-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 585", "start": "2024-12-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6790", "start": "2024-12-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5015", "start": "2024-12-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5720", "start": "2024-12-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5820", "start": "2024-12-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 7069", "start": "2024-12-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4934", "start": "2024-12-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 7236", "start": "2024-12-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6859", "start": "2024-12-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5617", "start": "2024-12-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 7989", "start": "2025-01-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5179", "start": "2025-01-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5166", "start": "2025-01-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5165", "start": "2025-01-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 8032", "start": "2025-01-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 785", "start": "2025-01-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6019", "start": "2025-01-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1753", "start": "2025-01-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5776", "start": "2025-01-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1267", "start": "2025-01-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 955", "start": "2025-02-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1080", "start": "2025-02-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1080", "start": "2025-02-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 834", "start": "2025-02-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 572", "start": "2025-02-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 10161", "start": "2025-02-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1151", "start": "2025-02-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1391", "start": "2025-02-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1273", "start": "2025-02-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 8448", "start": "2025-02-27", "className": ["primary"] }, { "category": "likes", "title": "New Likes: 49", "start": "2023-11-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 113", "start": "2023-11-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 68", "start": "2023-11-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 125", "start": "2023-11-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 171", "start": "2023-11-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 153", "start": "2023-11-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 260", "start": "2023-11-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 125", "start": "2023-11-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 179", "start": "2023-11-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 224", "start": "2023-11-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 90", "start": "2023-11-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 125", "start": "2023-11-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 453", "start": "2023-11-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 120", "start": "2023-11-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 494", "start": "2023-11-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 16935", "start": "2024-03-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 358", "start": "2024-03-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 809", "start": "2024-03-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 334", "start": "2024-03-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 385", "start": "2024-03-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 137", "start": "2024-04-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 240", "start": "2024-04-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 271", "start": "2024-04-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 406", "start": "2024-04-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 268", "start": "2024-04-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 586", "start": "2024-04-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 549", "start": "2024-04-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 281", "start": "2024-04-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 432", "start": "2024-04-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 94", "start": "2024-05-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 216", "start": "2024-05-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 92", "start": "2024-05-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 587", "start": "2024-05-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 387", "start": "2024-05-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 414", "start": "2024-05-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 139", "start": "2024-05-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1202", "start": "2024-05-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 457", "start": "2024-05-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 551", "start": "2024-05-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 657", "start": "2024-05-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 300", "start": "2024-05-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 206", "start": "2024-05-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 631", "start": "2024-06-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 104", "start": "2024-06-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 354", "start": "2024-06-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 533", "start": "2024-06-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 620", "start": "2024-06-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 980", "start": "2024-06-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 635", "start": "2024-06-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 782", "start": "2024-06-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1599", "start": "2024-06-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 508", "start": "2024-06-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 324", "start": "2024-06-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 229", "start": "2024-06-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 938", "start": "2024-06-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 284", "start": "2024-07-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 533", "start": "2024-07-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 347", "start": "2024-07-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 738", "start": "2024-07-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 930", "start": "2024-07-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 320", "start": "2024-07-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1401", "start": "2024-07-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1296", "start": "2024-07-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 2382", "start": "2024-07-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1537", "start": "2024-07-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1234", "start": "2024-08-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1208", "start": "2024-08-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 461", "start": "2024-08-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 374", "start": "2024-08-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1066", "start": "2024-08-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 2180", "start": "2024-08-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1300", "start": "2024-08-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1486", "start": "2024-08-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 475", "start": "2024-08-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 352", "start": "2024-08-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 773", "start": "2024-08-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 11183", "start": "2024-10-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1487", "start": "2024-10-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 186", "start": "2024-10-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 741", "start": "2024-10-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 341", "start": "2024-10-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 2932", "start": "2024-11-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 288", "start": "2024-11-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 366", "start": "2024-11-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 394", "start": "2024-11-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 2555", "start": "2024-11-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 359", "start": "2024-11-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 814", "start": "2024-11-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 313", "start": "2024-11-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 697", "start": "2024-11-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 689", "start": "2024-11-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 415", "start": "2024-12-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 727", "start": "2024-12-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 354", "start": "2024-12-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 362", "start": "2024-12-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 620", "start": "2024-12-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 657", "start": "2024-12-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 394", "start": "2024-12-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 2191", "start": "2024-12-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 820", "start": "2024-12-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 855", "start": "2024-12-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1827", "start": "2024-12-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1723", "start": "2024-12-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 2970", "start": "2025-01-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1797", "start": "2025-01-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1461", "start": "2025-01-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 699", "start": "2025-01-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 605", "start": "2025-01-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 213", "start": "2025-01-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 215", "start": "2025-01-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 786", "start": "2025-01-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 332", "start": "2025-01-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 489", "start": "2025-01-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 396", "start": "2025-02-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 241", "start": "2025-02-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 303", "start": "2025-02-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 112", "start": "2025-02-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 90", "start": "2025-02-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 325", "start": "2025-02-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 172", "start": "2025-02-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 398", "start": "2025-02-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 186", "start": "2025-02-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1155", "start": "2025-02-27", "className": ["purple"] } ], drop: function(date) { if ($('#drop-remove').is(':checked')) { $(this).remove(); } }, dayClick: function(date, jsEvent, view) { var modal = $('#new_event_modal'); modal.modal('show'); modal.find('#event_start').val(date.format()); } }); $.fn.windowCheck = function() { var ww = $(window).width(); if(ww > 768) { cal.fullCalendar('changeView', 'month'); } else if(ww < 768 && ww > 540) { cal.fullCalendar('changeView', 'basicWeek'); } else { cal.fullCalendar('changeView', 'basicDay'); } }; $(window).on('resize', function(e){ $().windowCheck(); }); $('.fc-prev-button').append(''); $('.fc-next-button').append(''); // add new event category $('#new_event_cat_form').on('submit', function(e){ e.preventDefault(); var name = $(this).find('#category_name').val(); var color = $(this).find('#category_color').val(); var category = $('
'); category.text(name); category.addClass(color); category.data('event', { title: name, className: [color] }); category.draggable({ revert: true, revertDuration: 0 }); $('#external-events').append(category); $('#new_event_cat_modal').modal('hide'); }); // add new event $('#new_event_form').on('submit', function(e){ e.preventDefault(); var title = $(this).find('#event_title').val(); var category = $(this).find('#event_category').val(); var start = $(this).find('#event_start').val(); cal.fullCalendar('addEventSource', [ { title: title, start: start, className: [category] } ]) $('#new_event_modal').modal('hide'); }); }(jQuery);