+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 09 min", "start": "2022-02-08", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 30 min", "start": "2022-02-09", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 24 min", "start": "2022-02-10", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 30 min", "start": "2022-02-11", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 21 min", "start": "2022-02-13", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 30 min", "start": "2022-02-14", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 27 min", "start": "2022-02-15", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 03 min", "start": "2022-02-16", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 54 min", "start": "2022-02-17", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 51 min", "start": "2022-02-18", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 09 min", "start": "2022-02-19", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 21 min", "start": "2022-02-20", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 57 min", "start": "2022-02-21", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 06 min", "start": "2022-02-22", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 09 min", "start": "2022-02-23", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 15 min", "start": "2022-02-24", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 21 min", "start": "2022-02-25", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 03 min", "start": "2022-02-28", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 00 min", "start": "2022-03-01", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 33 min", "start": "2022-03-02", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 51 min", "start": "2022-03-03", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 54 min", "start": "2022-03-04", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 54 min", "start": "2022-03-05", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 09 min", "start": "2022-03-06", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 36 min", "start": "2022-03-07", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 39 min", "start": "2022-03-09", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 57 min", "start": "2022-03-10", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 06 min", "start": "2022-03-20", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 42 min", "start": "2022-03-21", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 57 min", "start": "2022-03-23", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 03 min", "start": "2022-03-24", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 18 min", "start": "2022-03-27", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 21 min", "start": "2022-04-04", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 57 min", "start": "2022-04-05", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 00 min", "start": "2022-04-06", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 39 min", "start": "2022-04-07", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 12 min", "start": "2022-04-12", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 06 min", "start": "2022-04-13", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 51 min", "start": "2022-04-14", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 39 min", "start": "2022-04-15", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 21 min", "start": "2022-04-19", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2022-05-10", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 24 min", "start": "2022-05-11", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2022-05-12", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2022-05-13", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2022-05-16", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 06 min", "start": "2022-05-18", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 54 min", "start": "2022-05-19", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 57 min", "start": "2022-05-22", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 39 min", "start": "2022-05-26", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 36 min", "start": "2022-05-27", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 30 min", "start": "2022-05-28", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 33 min", "start": "2022-05-30", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 00 min", "start": "2022-05-31", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 51 min", "start": "2022-06-01", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 09 min", "start": "2022-06-02", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 09 min", "start": "2022-06-03", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 33 min", "start": "2022-06-04", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2022-06-07", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2022-06-08", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 09 min", "start": "2022-06-09", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 06 min", "start": "2022-06-10", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 03 min", "start": "2022-06-11", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 57 min", "start": "2022-06-21", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 57 min", "start": "2022-06-22", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 36 min", "start": "2022-06-23", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 42 min", "start": "2022-06-24", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 39 min", "start": "2022-06-25", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2022-06-26", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 30 min", "start": "2022-06-28", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2022-06-29", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 06 min", "start": "2022-06-30", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 21 min", "start": "2022-07-01", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 42 min", "start": "2022-07-03", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 21 min", "start": "2022-07-05", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 45 min", "start": "2022-07-06", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 36 min", "start": "2022-07-07", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 15 min", "start": "2022-07-11", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 39 min", "start": "2022-07-13", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 39 min", "start": "2022-07-14", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 36 min", "start": "2022-07-18", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 00 min", "start": "2022-07-20", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 57 min", "start": "2022-08-03", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 21 min", "start": "2022-08-04", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 06 min", "start": "2022-08-05", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2022-08-10", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 45 min", "start": "2022-08-11", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 54 min", "start": "2022-08-15", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 18 min", "start": "2022-08-16", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 09 min", "start": "2022-08-17", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 48 min", "start": "2022-08-18", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 33 min", "start": "2022-08-26", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 39 min", "start": "2022-08-30", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 57 min", "start": "2022-08-31", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2022-09-07", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 39 min", "start": "2022-09-08", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 27 min", "start": "2022-09-11", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 09 min", "start": "2022-09-13", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 18 min", "start": "2022-09-15", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 27 min", "start": "2022-09-20", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 12 min", "start": "2022-09-21", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 09 min", "start": "2022-09-24", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 00 min", "start": "2022-10-02", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 48 min", "start": "2022-10-03", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 27 min", "start": "2022-10-18", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2022-10-19", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 30 min", "start": "2022-11-04", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 18 min", "start": "2022-11-07", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 36 min", "start": "2022-11-18", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2022-11-19", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 36 min", "start": "2022-11-20", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2022-11-22", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 27 min", "start": "2022-11-23", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 12 min", "start": "2022-11-24", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 21 min", "start": "2022-11-25", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 15 min", "start": "2022-11-26", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 00 min", "start": "2022-11-27", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2022-11-29", "className": ["success"] }, { "category": "online", "title": "Online: 08 h 03 min", "start": "2025-02-18", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 30 min", "start": "2025-02-19", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2025-02-20", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 45 min", "start": "2025-02-22", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 42 min", "start": "2025-02-25", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 24 min", "start": "2025-02-26", "className": ["success"] }, { "category": "Score", "title": "Max score: 586", "start": "2022-02-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1884", "start": "2022-02-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2635", "start": "2022-02-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4594", "start": "2022-02-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6879", "start": "2022-02-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 7574", "start": "2022-02-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 8471", "start": "2022-02-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 8706", "start": "2022-02-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 8565", "start": "2022-02-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 7783", "start": "2022-02-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5994", "start": "2022-02-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 7684", "start": "2022-02-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 7469", "start": "2022-02-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6642", "start": "2022-02-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 7470", "start": "2022-02-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 7171", "start": "2022-02-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 7125", "start": "2022-02-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6780", "start": "2022-02-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6771", "start": "2022-03-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5144", "start": "2022-03-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4347", "start": "2022-03-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4496", "start": "2022-03-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4896", "start": "2022-03-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5457", "start": "2022-03-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4790", "start": "2022-03-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4889", "start": "2022-03-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4887", "start": "2022-03-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5067", "start": "2022-03-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 5594", "start": "2022-03-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4690", "start": "2022-03-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3929", "start": "2022-03-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2773", "start": "2022-03-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3232", "start": "2022-04-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3519", "start": "2022-04-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3357", "start": "2022-04-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2976", "start": "2022-04-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 770", "start": "2022-04-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1240", "start": "2022-04-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2464", "start": "2022-04-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1940", "start": "2022-04-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 748", "start": "2022-04-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1867", "start": "2022-05-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1755", "start": "2022-05-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1236", "start": "2022-05-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1856", "start": "2022-05-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1451", "start": "2022-05-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2010", "start": "2022-05-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2082", "start": "2022-05-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2148", "start": "2022-05-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1530", "start": "2022-05-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1533", "start": "2022-05-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1136", "start": "2022-05-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 633", "start": "2022-05-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1216", "start": "2022-05-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2455", "start": "2022-06-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1896", "start": "2022-06-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 306", "start": "2022-06-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1998", "start": "2022-06-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1011", "start": "2022-06-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1453", "start": "2022-06-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 963", "start": "2022-06-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 927", "start": "2022-06-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 910", "start": "2022-06-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2195", "start": "2022-06-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2162", "start": "2022-06-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 797", "start": "2022-06-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1241", "start": "2022-06-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 641", "start": "2022-06-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1011", "start": "2022-06-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 632", "start": "2022-06-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 827", "start": "2022-06-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1156", "start": "2022-06-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 584", "start": "2022-07-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 555", "start": "2022-07-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1833", "start": "2022-07-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 656", "start": "2022-07-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1127", "start": "2022-07-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1223", "start": "2022-07-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 688", "start": "2022-07-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2314", "start": "2022-07-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 884", "start": "2022-07-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 586", "start": "2022-07-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 943", "start": "2022-08-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 585", "start": "2022-08-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 685", "start": "2022-08-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 421", "start": "2022-08-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1261", "start": "2022-08-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 648", "start": "2022-08-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2180", "start": "2022-08-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1103", "start": "2022-08-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 975", "start": "2022-08-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 690", "start": "2022-08-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 491", "start": "2022-08-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 523", "start": "2022-08-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 462", "start": "2022-09-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 767", "start": "2022-09-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 757", "start": "2022-09-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 344", "start": "2022-09-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 462", "start": "2022-09-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1035", "start": "2022-09-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 190", "start": "2022-09-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 409", "start": "2022-09-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 810", "start": "2022-10-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1824", "start": "2022-10-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 710", "start": "2022-10-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 575", "start": "2022-10-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 592", "start": "2022-11-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1292", "start": "2022-11-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1219", "start": "2022-11-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1448", "start": "2022-11-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1844", "start": "2022-11-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1023", "start": "2022-11-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 471", "start": "2022-11-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 496", "start": "2022-11-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 240", "start": "2022-11-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1606", "start": "2022-11-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 846", "start": "2022-11-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6712", "start": "2022-11-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 336", "start": "2025-02-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 202", "start": "2025-02-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 238", "start": "2025-02-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 207", "start": "2025-02-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 157", "start": "2025-02-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 346", "start": "2025-02-26", "className": ["primary"] }, { "category": "likes", "title": "New Likes: 1509", "start": "2022-02-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1301", "start": "2022-02-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 2041", "start": "2022-02-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 3091", "start": "2022-02-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 2357", "start": "2022-02-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 2309", "start": "2022-02-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 2050", "start": "2022-02-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1507", "start": "2022-02-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1528", "start": "2022-02-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 41", "start": "2022-02-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 773", "start": "2022-02-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1711", "start": "2022-02-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 70", "start": "2022-02-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1472", "start": "2022-02-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 964", "start": "2022-02-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 930", "start": "2022-02-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1121", "start": "2022-02-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 46", "start": "2022-03-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1376", "start": "2022-03-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 138", "start": "2022-03-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 931", "start": "2022-03-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 753", "start": "2022-03-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1464", "start": "2022-03-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 580", "start": "2022-03-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1203", "start": "2022-03-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 264", "start": "2022-03-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 2065", "start": "2022-03-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1795", "start": "2022-03-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 909", "start": "2022-03-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 16", "start": "2022-03-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 472", "start": "2022-03-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1411", "start": "2022-04-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 467", "start": "2022-04-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 957", "start": "2022-04-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 427", "start": "2022-04-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 719", "start": "2022-04-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 721", "start": "2022-04-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1365", "start": "2022-04-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1197", "start": "2022-04-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 186", "start": "2022-04-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 927", "start": "2022-05-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 821", "start": "2022-05-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 640", "start": "2022-05-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 943", "start": "2022-05-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 775", "start": "2022-05-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1097", "start": "2022-05-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1257", "start": "2022-05-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 940", "start": "2022-05-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 456", "start": "2022-05-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 758", "start": "2022-05-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 423", "start": "2022-05-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 161", "start": "2022-05-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 667", "start": "2022-05-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1358", "start": "2022-06-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 967", "start": "2022-06-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 55", "start": "2022-06-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1135", "start": "2022-06-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 443", "start": "2022-06-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 355", "start": "2022-06-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 440", "start": "2022-06-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 421", "start": "2022-06-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 200", "start": "2022-06-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 854", "start": "2022-06-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1442", "start": "2022-06-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 246", "start": "2022-06-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 718", "start": "2022-06-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 172", "start": "2022-06-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 576", "start": "2022-06-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 131", "start": "2022-06-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 500", "start": "2022-06-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1239", "start": "2022-06-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 526", "start": "2022-07-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 329", "start": "2022-07-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 979", "start": "2022-07-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 554", "start": "2022-07-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 780", "start": "2022-07-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 832", "start": "2022-07-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 247", "start": "2022-07-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1078", "start": "2022-07-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 636", "start": "2022-07-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 367", "start": "2022-07-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 497", "start": "2022-08-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 91", "start": "2022-08-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 173", "start": "2022-08-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 286", "start": "2022-08-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 769", "start": "2022-08-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 478", "start": "2022-08-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 868", "start": "2022-08-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 471", "start": "2022-08-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 411", "start": "2022-08-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 399", "start": "2022-08-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 246", "start": "2022-08-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 211", "start": "2022-08-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 277", "start": "2022-09-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 286", "start": "2022-09-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 704", "start": "2022-09-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 227", "start": "2022-09-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 67", "start": "2022-09-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 526", "start": "2022-09-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 81", "start": "2022-09-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 267", "start": "2022-09-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 259", "start": "2022-10-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 231", "start": "2022-10-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 324", "start": "2022-10-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 292", "start": "2022-10-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 197", "start": "2022-11-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 532", "start": "2022-11-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 421", "start": "2022-11-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 798", "start": "2022-11-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 935", "start": "2022-11-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 559", "start": "2022-11-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 132", "start": "2022-11-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 40", "start": "2022-11-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 57", "start": "2022-11-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 937", "start": "2022-11-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 183", "start": "2022-11-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 496", "start": "2022-11-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 7274", "start": "2025-02-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 508", "start": "2025-02-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 818", "start": "2025-02-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1575", "start": "2025-02-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 604", "start": "2025-02-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 460", "start": "2025-02-26", "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);