+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: 03 h 24 min", "start": "2023-01-09", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 57 min", "start": "2023-01-10", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2023-01-11", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 09 min", "start": "2023-01-12", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 54 min", "start": "2023-01-13", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 06 min", "start": "2023-01-14", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 33 min", "start": "2023-01-20", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 42 min", "start": "2023-01-21", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 39 min", "start": "2023-01-22", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 36 min", "start": "2023-01-23", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 06 min", "start": "2023-01-24", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 03 min", "start": "2023-01-28", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 42 min", "start": "2023-01-29", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 15 min", "start": "2023-02-07", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 48 min", "start": "2023-02-08", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 06 min", "start": "2023-02-10", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 54 min", "start": "2023-02-11", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 06 min", "start": "2023-02-12", "className": ["success"] }, { "category": "online", "title": "Online: 08 h 15 min", "start": "2023-02-17", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 18 min", "start": "2023-02-18", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 51 min", "start": "2023-02-19", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 09 min", "start": "2023-02-21", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 15 min", "start": "2023-02-24", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 33 min", "start": "2023-02-25", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 09 min", "start": "2023-02-26", "className": ["success"] }, { "category": "online", "title": "Online: 11 h 51 min", "start": "2023-03-03", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 57 min", "start": "2023-03-04", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 00 min", "start": "2023-03-05", "className": ["success"] }, { "category": "online", "title": "Online: 09 h 21 min", "start": "2023-03-09", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 45 min", "start": "2023-03-10", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 48 min", "start": "2023-03-11", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 03 min", "start": "2023-03-12", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 12 min", "start": "2023-03-17", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 03 min", "start": "2023-03-18", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 57 min", "start": "2023-03-19", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 06 min", "start": "2023-03-20", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 33 min", "start": "2023-03-21", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 27 min", "start": "2023-03-24", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2023-03-25", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 42 min", "start": "2023-03-29", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 54 min", "start": "2023-03-30", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 33 min", "start": "2023-04-01", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 18 min", "start": "2023-04-02", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 39 min", "start": "2023-04-05", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2023-04-06", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 42 min", "start": "2023-04-07", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 15 min", "start": "2023-04-09", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 33 min", "start": "2023-04-13", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 30 min", "start": "2023-04-14", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 39 min", "start": "2023-04-15", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 48 min", "start": "2023-04-16", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 03 min", "start": "2023-04-17", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 42 min", "start": "2023-04-20", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 03 min", "start": "2023-04-22", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2023-04-23", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 45 min", "start": "2023-04-24", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 54 min", "start": "2023-04-27", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 45 min", "start": "2023-04-28", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 12 min", "start": "2023-04-30", "className": ["success"] }, { "category": "online", "title": "Online: 08 h 03 min", "start": "2023-05-01", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 45 min", "start": "2023-05-05", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 48 min", "start": "2023-05-06", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 36 min", "start": "2023-05-10", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 06 min", "start": "2023-05-11", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 00 min", "start": "2023-05-15", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 54 min", "start": "2023-05-16", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 00 min", "start": "2023-05-17", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 09 min", "start": "2023-05-18", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 15 min", "start": "2023-05-19", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 21 min", "start": "2023-05-20", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 03 min", "start": "2023-05-21", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2023-05-22", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 51 min", "start": "2023-05-26", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 24 min", "start": "2023-05-29", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 36 min", "start": "2023-05-31", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 18 min", "start": "2023-06-01", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 03 min", "start": "2023-06-03", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 27 min", "start": "2023-06-04", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 24 min", "start": "2023-11-02", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 36 min", "start": "2023-11-04", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 42 min", "start": "2023-11-09", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 18 min", "start": "2023-11-10", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 15 min", "start": "2023-11-11", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 18 min", "start": "2023-11-12", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 39 min", "start": "2023-11-16", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 51 min", "start": "2023-11-20", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 54 min", "start": "2023-11-21", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 24 min", "start": "2023-11-28", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 00 min", "start": "2023-11-30", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2023-12-01", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 12 min", "start": "2023-12-02", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 00 min", "start": "2023-12-03", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 09 min", "start": "2023-12-04", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2023-12-08", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 36 min", "start": "2023-12-09", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 33 min", "start": "2023-12-10", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 36 min", "start": "2023-12-27", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 57 min", "start": "2023-12-28", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 21 min", "start": "2023-12-29", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 36 min", "start": "2023-12-31", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 00 min", "start": "2024-01-03", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 30 min", "start": "2024-01-04", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 06 min", "start": "2024-01-06", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 27 min", "start": "2024-01-07", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 36 min", "start": "2024-01-14", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 45 min", "start": "2024-01-17", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 30 min", "start": "2024-01-23", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 36 min", "start": "2024-01-25", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 06 min", "start": "2024-05-18", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 42 min", "start": "2024-06-12", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 45 min", "start": "2024-06-19", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 48 min", "start": "2024-06-20", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 21 min", "start": "2024-06-22", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 57 min", "start": "2024-06-23", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 09 min", "start": "2024-06-28", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 48 min", "start": "2024-06-30", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 36 min", "start": "2024-07-02", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 39 min", "start": "2024-07-10", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 24 min", "start": "2024-07-17", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 45 min", "start": "2024-08-09", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 48 min", "start": "2024-08-10", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 30 min", "start": "2024-09-05", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 45 min", "start": "2024-11-10", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 54 min", "start": "2024-11-11", "className": ["success"] }, { "category": "Score", "title": "Max score: 1789", "start": "2023-01-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1306", "start": "2023-01-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 853", "start": "2023-01-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 894", "start": "2023-01-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 586", "start": "2023-01-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1102", "start": "2023-01-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 402", "start": "2023-01-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 342", "start": "2023-01-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 444", "start": "2023-01-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 745", "start": "2023-01-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 638", "start": "2023-01-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 729", "start": "2023-01-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 959", "start": "2023-01-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 862", "start": "2023-02-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1505", "start": "2023-02-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 105", "start": "2023-02-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 715", "start": "2023-02-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 250", "start": "2023-02-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 808", "start": "2023-02-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 769", "start": "2023-02-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 596", "start": "2023-02-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 159", "start": "2023-02-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 39", "start": "2023-02-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 641", "start": "2023-02-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 723", "start": "2023-02-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 851", "start": "2023-03-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 673", "start": "2023-03-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 496", "start": "2023-03-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 657", "start": "2023-03-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 291", "start": "2023-03-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 624", "start": "2023-03-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 538", "start": "2023-03-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 283", "start": "2023-03-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 440", "start": "2023-03-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 642", "start": "2023-03-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 365", "start": "2023-03-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 555", "start": "2023-03-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 461", "start": "2023-03-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 400", "start": "2023-03-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 399", "start": "2023-03-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 384", "start": "2023-03-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1350", "start": "2023-04-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1280", "start": "2023-04-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1029", "start": "2023-04-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 784", "start": "2023-04-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 770", "start": "2023-04-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2856", "start": "2023-04-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 258", "start": "2023-04-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 888", "start": "2023-04-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1813", "start": "2023-04-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2006", "start": "2023-04-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2685", "start": "2023-04-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 467", "start": "2023-04-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1703", "start": "2023-04-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1797", "start": "2023-04-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 524", "start": "2023-04-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 89", "start": "2023-04-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 264", "start": "2023-04-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 61", "start": "2023-04-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 585", "start": "2023-05-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 216", "start": "2023-05-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 176", "start": "2023-05-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 117", "start": "2023-05-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 73", "start": "2023-05-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 424", "start": "2023-05-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 460", "start": "2023-05-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 266", "start": "2023-05-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 22", "start": "2023-05-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 216", "start": "2023-05-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 242", "start": "2023-05-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 506", "start": "2023-05-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 235", "start": "2023-05-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 154", "start": "2023-05-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 157", "start": "2023-05-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 157", "start": "2023-05-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 160", "start": "2023-06-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 156", "start": "2023-06-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 230", "start": "2023-06-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 182", "start": "2023-11-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 246", "start": "2023-11-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 293", "start": "2023-11-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 496", "start": "2023-11-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 288", "start": "2023-11-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 349", "start": "2023-11-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 242", "start": "2023-11-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 226", "start": "2023-11-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 151", "start": "2023-11-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 145", "start": "2023-11-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 180", "start": "2023-11-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 109", "start": "2023-12-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 216", "start": "2023-12-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 388", "start": "2023-12-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 226", "start": "2023-12-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 176", "start": "2023-12-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 507", "start": "2023-12-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 173", "start": "2023-12-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 411", "start": "2023-12-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 382", "start": "2023-12-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 378", "start": "2023-12-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 300", "start": "2023-12-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 350", "start": "2024-01-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 170", "start": "2024-01-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 178", "start": "2024-01-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 259", "start": "2024-01-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 268", "start": "2024-01-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 349", "start": "2024-01-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 154", "start": "2024-01-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 157", "start": "2024-01-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 223", "start": "2024-05-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 109", "start": "2024-06-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 89", "start": "2024-06-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 143", "start": "2024-06-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 294", "start": "2024-06-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 240", "start": "2024-06-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 141", "start": "2024-06-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 163", "start": "2024-06-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 150", "start": "2024-07-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 307", "start": "2024-07-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 156", "start": "2024-07-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 189", "start": "2024-08-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 89", "start": "2024-08-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 199", "start": "2024-09-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 144", "start": "2024-11-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 313", "start": "2024-11-11", "className": ["primary"] }, { "category": "likes", "title": "New Likes: 1581", "start": "2023-01-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 650", "start": "2023-01-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 727", "start": "2023-01-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 396", "start": "2023-01-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 893", "start": "2023-01-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 502", "start": "2023-01-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 218", "start": "2023-01-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 201", "start": "2023-01-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 549", "start": "2023-01-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 279", "start": "2023-01-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 641", "start": "2023-01-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 773", "start": "2023-01-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 725", "start": "2023-02-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 828", "start": "2023-02-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 99", "start": "2023-02-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 606", "start": "2023-02-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 88", "start": "2023-02-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 854", "start": "2023-02-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 679", "start": "2023-02-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 491", "start": "2023-02-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 224", "start": "2023-02-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 40", "start": "2023-02-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 655", "start": "2023-02-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 655", "start": "2023-02-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1635", "start": "2023-03-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 424", "start": "2023-03-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 163", "start": "2023-03-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 900", "start": "2023-03-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 99", "start": "2023-03-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 466", "start": "2023-03-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 400", "start": "2023-03-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 391", "start": "2023-03-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 381", "start": "2023-03-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 866", "start": "2023-03-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 113", "start": "2023-03-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 312", "start": "2023-03-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 335", "start": "2023-03-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 282", "start": "2023-03-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 171", "start": "2023-03-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 203", "start": "2023-03-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1010", "start": "2023-04-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 854", "start": "2023-04-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 542", "start": "2023-04-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 724", "start": "2023-04-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 578", "start": "2023-04-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1400", "start": "2023-04-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 180", "start": "2023-04-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 300", "start": "2023-04-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 901", "start": "2023-04-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1672", "start": "2023-04-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1816", "start": "2023-04-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 368", "start": "2023-04-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 506", "start": "2023-04-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 351", "start": "2023-04-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 396", "start": "2023-04-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 61", "start": "2023-04-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 73", "start": "2023-04-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 21", "start": "2023-04-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 637", "start": "2023-05-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 244", "start": "2023-05-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 110", "start": "2023-05-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 128", "start": "2023-05-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 32", "start": "2023-05-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 593", "start": "2023-05-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 234", "start": "2023-05-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 198", "start": "2023-05-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 16", "start": "2023-05-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 248", "start": "2023-05-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 275", "start": "2023-05-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 403", "start": "2023-05-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 175", "start": "2023-05-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 177", "start": "2023-05-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 97", "start": "2023-05-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 131", "start": "2023-05-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 87", "start": "2023-06-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 69", "start": "2023-06-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 271", "start": "2023-06-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 19587", "start": "2023-11-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 141", "start": "2023-11-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 276", "start": "2023-11-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 439", "start": "2023-11-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 271", "start": "2023-11-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 459", "start": "2023-11-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 174", "start": "2023-11-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 198", "start": "2023-11-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 166", "start": "2023-11-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 271", "start": "2023-11-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 292", "start": "2023-11-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 71", "start": "2023-12-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 183", "start": "2023-12-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 215", "start": "2023-12-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 231", "start": "2023-12-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 247", "start": "2023-12-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 375", "start": "2023-12-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 143", "start": "2023-12-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 551", "start": "2023-12-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 327", "start": "2023-12-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 222", "start": "2023-12-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 302", "start": "2023-12-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 463", "start": "2024-01-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 231", "start": "2024-01-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 254", "start": "2024-01-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 304", "start": "2024-01-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 199", "start": "2024-01-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 435", "start": "2024-01-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 122", "start": "2024-01-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 109", "start": "2024-01-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 469", "start": "2024-05-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 310", "start": "2024-06-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 115", "start": "2024-06-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 283", "start": "2024-06-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 441", "start": "2024-06-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 846", "start": "2024-06-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 390", "start": "2024-06-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 350", "start": "2024-06-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 207", "start": "2024-07-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 518", "start": "2024-07-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 388", "start": "2024-07-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 496", "start": "2024-08-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 130", "start": "2024-08-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 341", "start": "2024-09-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 327", "start": "2024-11-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 483", "start": "2024-11-11", "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);