+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: 02 h 36 min", "start": "2023-04-15", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 36 min", "start": "2023-04-17", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 57 min", "start": "2023-04-18", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 00 min", "start": "2023-04-19", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 15 min", "start": "2023-04-20", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 03 min", "start": "2023-04-21", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 00 min", "start": "2023-04-22", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 21 min", "start": "2023-04-23", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 09 min", "start": "2023-04-24", "className": ["success"] }, { "category": "online", "title": "Online: 08 h 12 min", "start": "2023-04-25", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 09 min", "start": "2023-04-26", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 00 min", "start": "2023-04-27", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 24 min", "start": "2023-04-28", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 45 min", "start": "2023-04-29", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 21 min", "start": "2023-04-30", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 48 min", "start": "2023-05-02", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 57 min", "start": "2023-05-03", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 42 min", "start": "2023-05-04", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 18 min", "start": "2023-05-05", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 06 min", "start": "2023-05-06", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 15 min", "start": "2023-05-08", "className": ["success"] }, { "category": "online", "title": "Online: 09 h 30 min", "start": "2023-05-09", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 36 min", "start": "2023-05-10", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 15 min", "start": "2023-05-11", "className": ["success"] }, { "category": "online", "title": "Online: 08 h 27 min", "start": "2023-05-12", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 30 min", "start": "2023-05-13", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 36 min", "start": "2023-05-14", "className": ["success"] }, { "category": "online", "title": "Online: 08 h 45 min", "start": "2023-05-15", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 30 min", "start": "2023-05-16", "className": ["success"] }, { "category": "online", "title": "Online: 09 h 27 min", "start": "2023-05-17", "className": ["success"] }, { "category": "online", "title": "Online: 08 h 39 min", "start": "2023-05-18", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 39 min", "start": "2023-05-19", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 21 min", "start": "2023-05-20", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 09 min", "start": "2023-05-21", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 57 min", "start": "2023-05-22", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 39 min", "start": "2023-05-23", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 39 min", "start": "2023-05-24", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 39 min", "start": "2023-05-25", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 54 min", "start": "2023-05-26", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 39 min", "start": "2023-05-27", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 21 min", "start": "2023-05-28", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 30 min", "start": "2023-05-29", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 06 min", "start": "2023-06-01", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 57 min", "start": "2023-06-02", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 03 min", "start": "2023-06-03", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 09 min", "start": "2023-06-04", "className": ["success"] }, { "category": "online", "title": "Online: 08 h 12 min", "start": "2023-06-05", "className": ["success"] }, { "category": "online", "title": "Online: 08 h 03 min", "start": "2023-06-06", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 42 min", "start": "2023-06-07", "className": ["success"] }, { "category": "online", "title": "Online: 08 h 18 min", "start": "2023-06-08", "className": ["success"] }, { "category": "online", "title": "Online: 09 h 03 min", "start": "2023-06-09", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 30 min", "start": "2023-06-10", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 21 min", "start": "2023-06-11", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 57 min", "start": "2023-06-12", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 39 min", "start": "2023-06-13", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 12 min", "start": "2023-06-14", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 30 min", "start": "2023-10-30", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 48 min", "start": "2023-10-31", "className": ["success"] }, { "category": "online", "title": "Online: 08 h 27 min", "start": "2023-11-01", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 18 min", "start": "2023-11-02", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 12 min", "start": "2023-11-03", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 27 min", "start": "2023-11-04", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 39 min", "start": "2023-11-05", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 39 min", "start": "2023-11-06", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2023-11-07", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 30 min", "start": "2023-11-21", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 36 min", "start": "2023-11-22", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 06 min", "start": "2023-11-23", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 30 min", "start": "2023-11-24", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 45 min", "start": "2023-11-25", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 09 min", "start": "2023-11-26", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 33 min", "start": "2023-11-27", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 00 min", "start": "2023-11-28", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 39 min", "start": "2023-11-29", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 12 min", "start": "2023-11-30", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 39 min", "start": "2023-12-01", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 57 min", "start": "2023-12-02", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 39 min", "start": "2023-12-03", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 57 min", "start": "2023-12-04", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 48 min", "start": "2023-12-13", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 36 min", "start": "2023-12-14", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 00 min", "start": "2024-03-03", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 39 min", "start": "2024-03-04", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 45 min", "start": "2024-03-05", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 27 min", "start": "2024-03-06", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 57 min", "start": "2024-03-07", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 36 min", "start": "2024-03-08", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2024-03-11", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 45 min", "start": "2024-03-12", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 51 min", "start": "2024-03-13", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 09 min", "start": "2024-03-14", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 48 min", "start": "2024-03-15", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 27 min", "start": "2024-03-16", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 15 min", "start": "2024-03-24", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 48 min", "start": "2024-03-25", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 24 min", "start": "2024-03-26", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 33 min", "start": "2024-03-27", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 00 min", "start": "2024-03-28", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 42 min", "start": "2024-03-31", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 51 min", "start": "2024-11-10", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 00 min", "start": "2024-11-11", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 27 min", "start": "2024-11-12", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 06 min", "start": "2024-11-13", "className": ["success"] }, { "category": "Score", "title": "Max score: 254", "start": "2023-04-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 225", "start": "2023-04-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 185", "start": "2023-04-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 620", "start": "2023-04-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 621", "start": "2023-04-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2106", "start": "2023-04-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 658", "start": "2023-04-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1541", "start": "2023-04-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 339", "start": "2023-04-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 437", "start": "2023-04-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 161", "start": "2023-04-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 308", "start": "2023-04-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 188", "start": "2023-04-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 250", "start": "2023-04-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 395", "start": "2023-04-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 268", "start": "2023-05-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 135", "start": "2023-05-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 163", "start": "2023-05-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 384", "start": "2023-05-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 157", "start": "2023-05-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 807", "start": "2023-05-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 387", "start": "2023-05-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 481", "start": "2023-05-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 134", "start": "2023-05-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 145", "start": "2023-05-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 205", "start": "2023-05-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 308", "start": "2023-05-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 167", "start": "2023-05-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 341", "start": "2023-05-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 132", "start": "2023-05-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 106", "start": "2023-05-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 571", "start": "2023-05-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 492", "start": "2023-05-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 469", "start": "2023-05-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 852", "start": "2023-05-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 412", "start": "2023-05-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 817", "start": "2023-05-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 337", "start": "2023-05-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 663", "start": "2023-05-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 116", "start": "2023-05-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 564", "start": "2023-05-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 137", "start": "2023-05-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 581", "start": "2023-06-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 275", "start": "2023-06-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 880", "start": "2023-06-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 218", "start": "2023-06-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1081", "start": "2023-06-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 548", "start": "2023-06-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 268", "start": "2023-06-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 619", "start": "2023-06-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 598", "start": "2023-06-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 679", "start": "2023-06-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 331", "start": "2023-06-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 622", "start": "2023-06-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1273", "start": "2023-06-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 252", "start": "2023-06-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 261", "start": "2023-10-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1378", "start": "2023-10-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1092", "start": "2023-11-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 929", "start": "2023-11-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1148", "start": "2023-11-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1124", "start": "2023-11-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1327", "start": "2023-11-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1110", "start": "2023-11-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1676", "start": "2023-11-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1022", "start": "2023-11-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 772", "start": "2023-11-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 167", "start": "2023-11-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 357", "start": "2023-11-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1775", "start": "2023-11-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 557", "start": "2023-11-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1099", "start": "2023-11-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 654", "start": "2023-11-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 754", "start": "2023-11-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 597", "start": "2023-11-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1103", "start": "2023-12-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 992", "start": "2023-12-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1474", "start": "2023-12-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 662", "start": "2023-12-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 960", "start": "2023-12-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 66", "start": "2023-12-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 344", "start": "2024-03-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 527", "start": "2024-03-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 813", "start": "2024-03-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1041", "start": "2024-03-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 431", "start": "2024-03-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 179", "start": "2024-03-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 488", "start": "2024-03-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 902", "start": "2024-03-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 737", "start": "2024-03-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 287", "start": "2024-03-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1043", "start": "2024-03-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 251", "start": "2024-03-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 593", "start": "2024-03-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 784", "start": "2024-03-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 367", "start": "2024-03-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1018", "start": "2024-03-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 228", "start": "2024-03-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 105", "start": "2024-03-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 200", "start": "2024-11-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 438", "start": "2024-11-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 436", "start": "2024-11-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 398", "start": "2024-11-13", "className": ["primary"] }, { "category": "likes", "title": "New Likes: 258", "start": "2023-04-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 210", "start": "2023-04-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 409", "start": "2023-04-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 414", "start": "2023-04-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 639", "start": "2023-04-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 356", "start": "2023-04-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 401", "start": "2023-04-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 575", "start": "2023-04-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 565", "start": "2023-04-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 169", "start": "2023-04-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 145", "start": "2023-04-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 167", "start": "2023-04-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 263", "start": "2023-04-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 190", "start": "2023-04-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 365", "start": "2023-05-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 331", "start": "2023-05-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 159", "start": "2023-05-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 265", "start": "2023-05-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 134", "start": "2023-05-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 541", "start": "2023-05-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 632", "start": "2023-05-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 387", "start": "2023-05-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 201", "start": "2023-05-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 208", "start": "2023-05-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 316", "start": "2023-05-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 293", "start": "2023-05-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 285", "start": "2023-05-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 304", "start": "2023-05-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 238", "start": "2023-05-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 166", "start": "2023-05-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 431", "start": "2023-05-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 268", "start": "2023-05-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 410", "start": "2023-05-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 440", "start": "2023-05-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 334", "start": "2023-05-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 896", "start": "2023-05-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 334", "start": "2023-05-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 537", "start": "2023-05-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 123", "start": "2023-05-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 586", "start": "2023-05-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 173", "start": "2023-05-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 865", "start": "2023-06-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 451", "start": "2023-06-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 821", "start": "2023-06-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 397", "start": "2023-06-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 769", "start": "2023-06-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 644", "start": "2023-06-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 230", "start": "2023-06-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 680", "start": "2023-06-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 526", "start": "2023-06-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 424", "start": "2023-06-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 416", "start": "2023-06-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 438", "start": "2023-06-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1027", "start": "2023-06-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 293", "start": "2023-06-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 68955", "start": "2023-10-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 548", "start": "2023-10-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1503", "start": "2023-11-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 623", "start": "2023-11-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 796", "start": "2023-11-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 370", "start": "2023-11-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 732", "start": "2023-11-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 540", "start": "2023-11-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 626", "start": "2023-11-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 568", "start": "2023-11-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 497", "start": "2023-11-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 71", "start": "2023-11-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 148", "start": "2023-11-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1226", "start": "2023-11-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 264", "start": "2023-11-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 220", "start": "2023-11-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 508", "start": "2023-11-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 586", "start": "2023-11-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 278", "start": "2023-11-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 517", "start": "2023-12-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 392", "start": "2023-12-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 469", "start": "2023-12-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 156", "start": "2023-12-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1241", "start": "2023-12-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 27", "start": "2023-12-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 240", "start": "2024-03-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 661", "start": "2024-03-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 463", "start": "2024-03-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 681", "start": "2024-03-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 297", "start": "2024-03-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 73", "start": "2024-03-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 351", "start": "2024-03-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 547", "start": "2024-03-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 376", "start": "2024-03-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 109", "start": "2024-03-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 622", "start": "2024-03-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 95", "start": "2024-03-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 279", "start": "2024-03-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 401", "start": "2024-03-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 207", "start": "2024-03-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 483", "start": "2024-03-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 110", "start": "2024-03-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 80", "start": "2024-03-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 115", "start": "2024-11-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 515", "start": "2024-11-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 436", "start": "2024-11-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 257", "start": "2024-11-13", "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);