+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 12 min", "start": "2023-10-30", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 21 min", "start": "2023-10-31", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 39 min", "start": "2023-11-02", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 18 min", "start": "2023-11-03", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 48 min", "start": "2023-11-06", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 00 min", "start": "2023-11-07", "className": ["success"] }, { "category": "online", "title": "Online: 08 h 09 min", "start": "2023-11-09", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 36 min", "start": "2023-11-10", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 54 min", "start": "2023-11-11", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 03 min", "start": "2023-11-12", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 42 min", "start": "2023-11-13", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 30 min", "start": "2023-11-16", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 00 min", "start": "2023-11-17", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 24 min", "start": "2023-11-18", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 30 min", "start": "2023-11-19", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 00 min", "start": "2023-11-20", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 00 min", "start": "2024-01-05", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 57 min", "start": "2024-01-06", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 12 min", "start": "2024-01-07", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 48 min", "start": "2024-01-09", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 57 min", "start": "2024-01-10", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 30 min", "start": "2024-01-11", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 51 min", "start": "2024-01-12", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 36 min", "start": "2024-01-13", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 42 min", "start": "2024-01-14", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 03 min", "start": "2024-01-24", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 03 min", "start": "2024-01-25", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 57 min", "start": "2024-01-26", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 30 min", "start": "2024-01-27", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 06 min", "start": "2024-01-28", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 45 min", "start": "2024-02-02", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 57 min", "start": "2024-02-04", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 42 min", "start": "2024-02-05", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 15 min", "start": "2024-02-08", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 09 min", "start": "2024-02-09", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 06 min", "start": "2024-02-10", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2024-02-11", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 15 min", "start": "2024-02-14", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 30 min", "start": "2024-02-18", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 09 min", "start": "2024-02-21", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 30 min", "start": "2024-02-22", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 36 min", "start": "2024-02-23", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 42 min", "start": "2024-02-24", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 27 min", "start": "2024-02-25", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 15 min", "start": "2024-02-29", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 30 min", "start": "2024-03-01", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 39 min", "start": "2024-03-02", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 48 min", "start": "2024-03-03", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 15 min", "start": "2024-03-04", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 24 min", "start": "2024-03-06", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 45 min", "start": "2024-03-07", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 30 min", "start": "2024-03-08", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 00 min", "start": "2024-03-10", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 15 min", "start": "2024-03-14", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2024-03-15", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 21 min", "start": "2024-04-14", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 54 min", "start": "2024-04-15", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 06 min", "start": "2024-04-19", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 45 min", "start": "2024-04-20", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 06 min", "start": "2024-04-21", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 06 min", "start": "2024-04-22", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 48 min", "start": "2024-04-23", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 30 min", "start": "2024-04-25", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 48 min", "start": "2024-04-26", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2024-04-27", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 33 min", "start": "2024-04-28", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 09 min", "start": "2024-04-30", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 24 min", "start": "2024-05-03", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 48 min", "start": "2024-05-04", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 42 min", "start": "2024-05-05", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 06 min", "start": "2024-05-06", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 36 min", "start": "2024-05-07", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 12 min", "start": "2024-05-08", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 33 min", "start": "2024-05-09", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 00 min", "start": "2024-05-12", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 12 min", "start": "2024-05-14", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 51 min", "start": "2024-05-17", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 24 min", "start": "2024-05-18", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 24 min", "start": "2024-05-19", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 15 min", "start": "2024-05-20", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 45 min", "start": "2024-05-23", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 21 min", "start": "2024-05-25", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 36 min", "start": "2024-05-26", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 18 min", "start": "2024-05-27", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 03 min", "start": "2024-06-01", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 51 min", "start": "2024-06-02", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 51 min", "start": "2024-06-03", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 42 min", "start": "2024-06-04", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 51 min", "start": "2024-06-09", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 06 min", "start": "2024-06-11", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 36 min", "start": "2024-06-14", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 54 min", "start": "2024-06-15", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 18 min", "start": "2024-06-16", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 48 min", "start": "2024-06-17", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 03 min", "start": "2024-06-18", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 09 min", "start": "2024-06-22", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 06 min", "start": "2024-06-23", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 33 min", "start": "2024-06-24", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 33 min", "start": "2024-06-25", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 51 min", "start": "2024-06-28", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 51 min", "start": "2024-06-29", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 09 min", "start": "2024-06-30", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 51 min", "start": "2024-07-02", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 54 min", "start": "2024-07-04", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 21 min", "start": "2024-07-05", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 57 min", "start": "2024-07-06", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 45 min", "start": "2024-07-07", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 27 min", "start": "2024-07-11", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 30 min", "start": "2024-07-13", "className": ["success"] }, { "category": "online", "title": "Online: 07 h 21 min", "start": "2024-07-14", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 42 min", "start": "2024-07-15", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2024-07-18", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 51 min", "start": "2024-07-19", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 45 min", "start": "2024-07-20", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 48 min", "start": "2024-07-21", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 48 min", "start": "2024-07-22", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 24 min", "start": "2024-07-23", "className": ["success"] }, { "category": "online", "title": "Online: 06 h 54 min", "start": "2024-07-26", "className": ["success"] }, { "category": "online", "title": "Online: 09 h 48 min", "start": "2024-07-27", "className": ["success"] }, { "category": "online", "title": "Online: 10 h 51 min", "start": "2024-07-28", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 27 min", "start": "2024-10-05", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 09 min", "start": "2024-10-06", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 00 min", "start": "2024-10-07", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 00 min", "start": "2024-10-08", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 15 min", "start": "2024-10-11", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 18 min", "start": "2024-10-12", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 33 min", "start": "2024-10-13", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 48 min", "start": "2024-10-15", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 48 min", "start": "2024-10-17", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 48 min", "start": "2024-10-18", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 39 min", "start": "2024-10-19", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2024-10-20", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 54 min", "start": "2024-10-21", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 09 min", "start": "2024-10-22", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 24 min", "start": "2024-10-25", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 36 min", "start": "2024-10-26", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 45 min", "start": "2024-10-27", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 24 min", "start": "2024-10-28", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 00 min", "start": "2024-10-29", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2024-11-01", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2024-11-02", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 27 min", "start": "2024-11-03", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 54 min", "start": "2024-11-04", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 33 min", "start": "2024-11-05", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 06 min", "start": "2024-11-09", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 03 min", "start": "2024-11-10", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 42 min", "start": "2024-11-11", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 06 min", "start": "2024-11-12", "className": ["success"] }, { "category": "Score", "title": "Max score: 92", "start": "2023-10-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 94", "start": "2023-10-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 113", "start": "2023-11-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 133", "start": "2023-11-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 159", "start": "2023-11-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 199", "start": "2023-11-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 117", "start": "2023-11-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 121", "start": "2023-11-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 139", "start": "2023-11-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 143", "start": "2023-11-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 167", "start": "2023-11-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 64", "start": "2023-11-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 98", "start": "2023-11-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 139", "start": "2023-11-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 151", "start": "2023-11-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 106", "start": "2023-11-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 171", "start": "2024-01-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 111", "start": "2024-01-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 244", "start": "2024-01-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 289", "start": "2024-01-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 294", "start": "2024-01-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 221", "start": "2024-01-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 409", "start": "2024-01-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 350", "start": "2024-01-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 315", "start": "2024-01-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3", "start": "2024-01-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 233", "start": "2024-01-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 117", "start": "2024-01-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 93", "start": "2024-01-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 225", "start": "2024-01-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 127", "start": "2024-02-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 247", "start": "2024-02-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 124", "start": "2024-02-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 153", "start": "2024-02-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 153", "start": "2024-02-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 179", "start": "2024-02-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 220", "start": "2024-02-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 220", "start": "2024-02-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 130", "start": "2024-02-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 221", "start": "2024-02-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 154", "start": "2024-02-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 180", "start": "2024-02-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 143", "start": "2024-02-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 169", "start": "2024-02-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 77", "start": "2024-02-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 94", "start": "2024-03-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 68", "start": "2024-03-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 178", "start": "2024-03-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 129", "start": "2024-03-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 134", "start": "2024-03-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 80", "start": "2024-03-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 127", "start": "2024-03-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 113", "start": "2024-03-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 69", "start": "2024-03-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 95", "start": "2024-03-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 141", "start": "2024-04-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 105", "start": "2024-04-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 104", "start": "2024-04-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 95", "start": "2024-04-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 171", "start": "2024-04-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 111", "start": "2024-04-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 161", "start": "2024-04-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 123", "start": "2024-04-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 113", "start": "2024-04-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 124", "start": "2024-04-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 192", "start": "2024-04-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 189", "start": "2024-04-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 121", "start": "2024-05-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 117", "start": "2024-05-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 210", "start": "2024-05-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 124", "start": "2024-05-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 8", "start": "2024-05-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 77", "start": "2024-05-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 6", "start": "2024-05-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 144", "start": "2024-05-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 165", "start": "2024-05-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 125", "start": "2024-05-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 221", "start": "2024-05-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 128", "start": "2024-05-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 182", "start": "2024-05-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 144", "start": "2024-05-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 135", "start": "2024-05-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 244", "start": "2024-05-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 151", "start": "2024-05-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2", "start": "2024-06-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 172", "start": "2024-06-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 347", "start": "2024-06-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 238", "start": "2024-06-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 168", "start": "2024-06-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 159", "start": "2024-06-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 187", "start": "2024-06-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 237", "start": "2024-06-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 434", "start": "2024-06-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 240", "start": "2024-06-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 209", "start": "2024-06-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 254", "start": "2024-06-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 975", "start": "2024-06-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 179", "start": "2024-06-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 203", "start": "2024-06-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 172", "start": "2024-06-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 113", "start": "2024-06-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 125", "start": "2024-06-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 171", "start": "2024-07-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 172", "start": "2024-07-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 151", "start": "2024-07-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 135", "start": "2024-07-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 202", "start": "2024-07-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 178", "start": "2024-07-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 112", "start": "2024-07-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 155", "start": "2024-07-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 269", "start": "2024-07-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 182", "start": "2024-07-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 107", "start": "2024-07-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 132", "start": "2024-07-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 135", "start": "2024-07-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 234", "start": "2024-07-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 201", "start": "2024-07-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 145", "start": "2024-07-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 157", "start": "2024-07-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 172", "start": "2024-07-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 91", "start": "2024-10-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 178", "start": "2024-10-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 333", "start": "2024-10-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 255", "start": "2024-10-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 148", "start": "2024-10-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 236", "start": "2024-10-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 253", "start": "2024-10-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 231", "start": "2024-10-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 215", "start": "2024-10-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 227", "start": "2024-10-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 191", "start": "2024-10-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 164", "start": "2024-10-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 248", "start": "2024-10-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 225", "start": "2024-10-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 203", "start": "2024-10-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 203", "start": "2024-10-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 184", "start": "2024-10-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 168", "start": "2024-10-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 255", "start": "2024-10-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 182", "start": "2024-11-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 161", "start": "2024-11-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 159", "start": "2024-11-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 277", "start": "2024-11-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 104", "start": "2024-11-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 117", "start": "2024-11-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 267", "start": "2024-11-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 193", "start": "2024-11-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 198", "start": "2024-11-12", "className": ["primary"] }, { "category": "likes", "title": "New Likes: 312", "start": "2023-10-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 453", "start": "2023-11-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 439", "start": "2023-11-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 565", "start": "2023-11-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 691", "start": "2023-11-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 301", "start": "2023-11-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 286", "start": "2023-11-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 385", "start": "2023-11-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 457", "start": "2023-11-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 756", "start": "2023-11-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 156", "start": "2023-11-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 182", "start": "2023-11-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 475", "start": "2023-11-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 362", "start": "2023-11-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 423", "start": "2023-11-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 498", "start": "2024-01-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 385", "start": "2024-01-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 725", "start": "2024-01-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 977", "start": "2024-01-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 625", "start": "2024-01-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 620", "start": "2024-01-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1362", "start": "2024-01-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 903", "start": "2024-01-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1020", "start": "2024-01-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 12", "start": "2024-01-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 628", "start": "2024-01-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 272", "start": "2024-01-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 239", "start": "2024-01-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 926", "start": "2024-01-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 295", "start": "2024-02-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 684", "start": "2024-02-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 354", "start": "2024-02-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 367", "start": "2024-02-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 364", "start": "2024-02-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 376", "start": "2024-02-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 555", "start": "2024-02-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 714", "start": "2024-02-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 413", "start": "2024-02-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 694", "start": "2024-02-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 353", "start": "2024-02-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 530", "start": "2024-02-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 397", "start": "2024-02-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 358", "start": "2024-02-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 234", "start": "2024-02-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 322", "start": "2024-03-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 213", "start": "2024-03-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 602", "start": "2024-03-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 219", "start": "2024-03-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 364", "start": "2024-03-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 219", "start": "2024-03-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 495", "start": "2024-03-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 258", "start": "2024-03-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 80", "start": "2024-03-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 154", "start": "2024-03-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 572", "start": "2024-04-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 213", "start": "2024-04-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 146", "start": "2024-04-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 387", "start": "2024-04-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 544", "start": "2024-04-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 278", "start": "2024-04-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 552", "start": "2024-04-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 447", "start": "2024-04-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 158", "start": "2024-04-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 286", "start": "2024-04-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 506", "start": "2024-04-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 435", "start": "2024-04-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 363", "start": "2024-05-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 257", "start": "2024-05-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 925", "start": "2024-05-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 374", "start": "2024-05-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 4", "start": "2024-05-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 96", "start": "2024-05-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1", "start": "2024-05-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 547", "start": "2024-05-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 607", "start": "2024-05-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 287", "start": "2024-05-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 475", "start": "2024-05-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 303", "start": "2024-05-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 932", "start": "2024-05-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 307", "start": "2024-05-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 655", "start": "2024-05-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 763", "start": "2024-05-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 678", "start": "2024-05-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: -20", "start": "2024-06-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 520", "start": "2024-06-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 622", "start": "2024-06-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 617", "start": "2024-06-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 302", "start": "2024-06-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 406", "start": "2024-06-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 844", "start": "2024-06-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 842", "start": "2024-06-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1888", "start": "2024-06-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 735", "start": "2024-06-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1026", "start": "2024-06-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 922", "start": "2024-06-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1008", "start": "2024-06-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 487", "start": "2024-06-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 761", "start": "2024-06-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 455", "start": "2024-06-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 410", "start": "2024-06-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 269", "start": "2024-06-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 321", "start": "2024-07-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 495", "start": "2024-07-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 388", "start": "2024-07-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 426", "start": "2024-07-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 645", "start": "2024-07-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 502", "start": "2024-07-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 366", "start": "2024-07-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 321", "start": "2024-07-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 592", "start": "2024-07-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 486", "start": "2024-07-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 199", "start": "2024-07-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 326", "start": "2024-07-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 482", "start": "2024-07-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 601", "start": "2024-07-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 405", "start": "2024-07-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 458", "start": "2024-07-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 205", "start": "2024-07-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 373", "start": "2024-07-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: -32", "start": "2024-10-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 593", "start": "2024-10-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1223", "start": "2024-10-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 916", "start": "2024-10-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 589", "start": "2024-10-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 795", "start": "2024-10-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 949", "start": "2024-10-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 1394", "start": "2024-10-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 743", "start": "2024-10-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 857", "start": "2024-10-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 717", "start": "2024-10-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 539", "start": "2024-10-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 776", "start": "2024-10-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 497", "start": "2024-10-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 314", "start": "2024-10-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 605", "start": "2024-10-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 555", "start": "2024-10-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 513", "start": "2024-10-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 678", "start": "2024-10-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 316", "start": "2024-11-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 599", "start": "2024-11-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 679", "start": "2024-11-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 637", "start": "2024-11-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 311", "start": "2024-11-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 663", "start": "2024-11-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 997", "start": "2024-11-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 435", "start": "2024-11-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 663", "start": "2024-11-12", "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);