+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 36 min", "start": "2024-03-10", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 33 min", "start": "2024-03-12", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 18 min", "start": "2024-03-14", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 03 min", "start": "2024-03-16", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 03 min", "start": "2024-03-17", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2024-03-19", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 27 min", "start": "2024-03-21", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 54 min", "start": "2024-03-26", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 36 min", "start": "2024-03-31", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 00 min", "start": "2024-04-02", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 33 min", "start": "2024-04-03", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 48 min", "start": "2024-04-05", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 33 min", "start": "2024-04-06", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 42 min", "start": "2024-04-07", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 09 min", "start": "2024-04-10", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 24 min", "start": "2024-04-12", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 54 min", "start": "2024-04-13", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 57 min", "start": "2024-04-14", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 15 min", "start": "2024-04-17", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 06 min", "start": "2024-04-19", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 06 min", "start": "2024-04-20", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 30 min", "start": "2024-04-21", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 48 min", "start": "2024-04-25", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 39 min", "start": "2024-04-27", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 24 min", "start": "2024-04-28", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2024-05-01", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 00 min", "start": "2024-05-03", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2024-05-05", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 30 min", "start": "2024-05-06", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 51 min", "start": "2024-05-08", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 15 min", "start": "2024-05-10", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2024-05-11", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 24 min", "start": "2024-05-12", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 36 min", "start": "2024-05-14", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 18 min", "start": "2024-05-17", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 54 min", "start": "2024-05-18", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 51 min", "start": "2024-05-19", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 27 min", "start": "2024-05-25", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 27 min", "start": "2024-05-26", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 33 min", "start": "2024-05-29", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 00 min", "start": "2024-05-31", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 00 min", "start": "2024-06-01", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2024-06-05", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2024-06-09", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 09 min", "start": "2024-06-13", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 39 min", "start": "2024-06-15", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 36 min", "start": "2024-06-16", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 15 min", "start": "2024-06-29", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2024-06-30", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 30 min", "start": "2024-07-02", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 54 min", "start": "2024-07-03", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 09 min", "start": "2024-07-06", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 09 min", "start": "2024-07-10", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 18 min", "start": "2024-07-12", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 57 min", "start": "2024-07-13", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 33 min", "start": "2024-07-14", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 57 min", "start": "2024-07-24", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 15 min", "start": "2024-07-26", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2024-07-27", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 18 min", "start": "2024-07-28", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 06 min", "start": "2024-07-31", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 48 min", "start": "2024-08-03", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 12 min", "start": "2024-08-04", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 42 min", "start": "2024-08-06", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 30 min", "start": "2024-08-07", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2024-08-09", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 54 min", "start": "2024-08-11", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 36 min", "start": "2024-08-12", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 06 min", "start": "2024-08-13", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2024-08-15", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 36 min", "start": "2024-08-18", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 18 min", "start": "2024-08-19", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 24 min", "start": "2024-08-20", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 27 min", "start": "2024-08-21", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 54 min", "start": "2024-08-24", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2024-08-26", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 30 min", "start": "2024-08-27", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 18 min", "start": "2024-08-28", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 48 min", "start": "2024-08-31", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 06 min", "start": "2024-09-01", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2024-09-02", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2024-09-08", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 18 min", "start": "2024-09-09", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 39 min", "start": "2024-09-12", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 39 min", "start": "2024-09-15", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 45 min", "start": "2024-09-17", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 18 min", "start": "2024-09-19", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 42 min", "start": "2024-09-20", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 30 min", "start": "2024-09-22", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 00 min", "start": "2024-09-23", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 33 min", "start": "2024-09-25", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 09 min", "start": "2024-09-26", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 42 min", "start": "2024-09-28", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2024-09-29", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 30 min", "start": "2024-10-05", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 45 min", "start": "2024-10-06", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 54 min", "start": "2024-10-16", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 36 min", "start": "2024-10-17", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 45 min", "start": "2024-10-19", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 45 min", "start": "2024-10-20", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 36 min", "start": "2024-10-23", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 33 min", "start": "2024-10-26", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 18 min", "start": "2024-10-27", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 51 min", "start": "2024-10-29", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 33 min", "start": "2024-10-30", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2024-11-02", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 36 min", "start": "2024-11-03", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 18 min", "start": "2024-11-12", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 33 min", "start": "2024-11-14", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2024-11-16", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2024-11-19", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 18 min", "start": "2024-11-21", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 54 min", "start": "2024-11-23", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 00 min", "start": "2024-11-25", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 51 min", "start": "2024-11-26", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 51 min", "start": "2024-11-28", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 45 min", "start": "2024-11-29", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2024-12-01", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 45 min", "start": "2024-12-02", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2024-12-04", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 00 min", "start": "2024-12-11", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 30 min", "start": "2024-12-13", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 57 min", "start": "2024-12-14", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 30 min", "start": "2024-12-15", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 39 min", "start": "2024-12-19", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2024-12-21", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 00 min", "start": "2024-12-25", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 33 min", "start": "2024-12-26", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 24 min", "start": "2024-12-27", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2024-12-30", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 36 min", "start": "2025-01-02", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 42 min", "start": "2025-01-03", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 33 min", "start": "2025-01-04", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 18 min", "start": "2025-01-09", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 48 min", "start": "2025-01-10", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 24 min", "start": "2025-01-12", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2025-01-13", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 48 min", "start": "2025-01-15", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 54 min", "start": "2025-01-17", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 21 min", "start": "2025-01-20", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 18 min", "start": "2025-01-22", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 45 min", "start": "2025-01-23", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 54 min", "start": "2025-01-27", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 54 min", "start": "2025-01-28", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 18 min", "start": "2025-01-30", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 15 min", "start": "2025-01-31", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 21 min", "start": "2025-02-08", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 06 min", "start": "2025-02-09", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2025-02-11", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 00 min", "start": "2025-02-12", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 18 min", "start": "2025-02-14", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2025-02-15", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2025-02-16", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 06 min", "start": "2025-02-18", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 33 min", "start": "2025-02-19", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 09 min", "start": "2025-02-20", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 09 min", "start": "2025-02-22", "className": ["success"] }, { "category": "Score", "title": "Max score: 726", "start": "2024-03-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 586", "start": "2024-03-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 639", "start": "2024-03-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 516", "start": "2024-03-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 566", "start": "2024-03-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 299", "start": "2024-03-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 345", "start": "2024-03-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 354", "start": "2024-03-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 354", "start": "2024-03-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 341", "start": "2024-04-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 359", "start": "2024-04-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1102", "start": "2024-04-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 590", "start": "2024-04-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 158", "start": "2024-04-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1434", "start": "2024-04-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 411", "start": "2024-04-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2116", "start": "2024-04-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 913", "start": "2024-04-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 518", "start": "2024-04-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 265", "start": "2024-04-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 379", "start": "2024-04-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 613", "start": "2024-04-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 239", "start": "2024-04-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 235", "start": "2024-04-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1320", "start": "2024-04-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1900", "start": "2024-05-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 301", "start": "2024-05-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3393", "start": "2024-05-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 4184", "start": "2024-05-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 424", "start": "2024-05-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 374", "start": "2024-05-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 403", "start": "2024-05-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1287", "start": "2024-05-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 246", "start": "2024-05-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 315", "start": "2024-05-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 496", "start": "2024-05-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 587", "start": "2024-05-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 244", "start": "2024-05-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 600", "start": "2024-05-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 355", "start": "2024-05-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1055", "start": "2024-05-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1979", "start": "2024-06-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 317", "start": "2024-06-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 297", "start": "2024-06-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 224", "start": "2024-06-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 220", "start": "2024-06-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1192", "start": "2024-06-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 263", "start": "2024-06-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 271", "start": "2024-06-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 311", "start": "2024-07-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 383", "start": "2024-07-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 291", "start": "2024-07-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 482", "start": "2024-07-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 202", "start": "2024-07-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 327", "start": "2024-07-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 601", "start": "2024-07-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 416", "start": "2024-07-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 432", "start": "2024-07-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 369", "start": "2024-07-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 432", "start": "2024-07-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 585", "start": "2024-07-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 380", "start": "2024-08-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 583", "start": "2024-08-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 307", "start": "2024-08-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 381", "start": "2024-08-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 401", "start": "2024-08-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 372", "start": "2024-08-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 793", "start": "2024-08-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 455", "start": "2024-08-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 119", "start": "2024-08-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 467", "start": "2024-08-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 416", "start": "2024-08-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 492", "start": "2024-08-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 372", "start": "2024-08-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 571", "start": "2024-08-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 453", "start": "2024-08-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 467", "start": "2024-08-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2799", "start": "2024-08-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 501", "start": "2024-08-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 762", "start": "2024-09-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 454", "start": "2024-09-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 603", "start": "2024-09-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 691", "start": "2024-09-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 610", "start": "2024-09-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 588", "start": "2024-09-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 583", "start": "2024-09-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 347", "start": "2024-09-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 363", "start": "2024-09-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 317", "start": "2024-09-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 450", "start": "2024-09-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 479", "start": "2024-09-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 388", "start": "2024-09-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 350", "start": "2024-09-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 528", "start": "2024-09-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 303", "start": "2024-10-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 386", "start": "2024-10-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 224", "start": "2024-10-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 301", "start": "2024-10-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 438", "start": "2024-10-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 263", "start": "2024-10-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 370", "start": "2024-10-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 361", "start": "2024-10-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 232", "start": "2024-10-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 272", "start": "2024-10-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 421", "start": "2024-10-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 363", "start": "2024-11-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 372", "start": "2024-11-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 435", "start": "2024-11-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 371", "start": "2024-11-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 479", "start": "2024-11-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 341", "start": "2024-11-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 258", "start": "2024-11-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 259", "start": "2024-11-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 367", "start": "2024-11-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 376", "start": "2024-11-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 329", "start": "2024-11-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 254", "start": "2024-11-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 267", "start": "2024-12-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 384", "start": "2024-12-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 290", "start": "2024-12-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 272", "start": "2024-12-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 419", "start": "2024-12-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 340", "start": "2024-12-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 358", "start": "2024-12-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 234", "start": "2024-12-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 401", "start": "2024-12-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 294", "start": "2024-12-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 330", "start": "2024-12-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 252", "start": "2024-12-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 391", "start": "2024-12-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 427", "start": "2025-01-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 475", "start": "2025-01-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 416", "start": "2025-01-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 767", "start": "2025-01-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 330", "start": "2025-01-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 482", "start": "2025-01-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 751", "start": "2025-01-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 430", "start": "2025-01-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 432", "start": "2025-01-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 422", "start": "2025-01-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 317", "start": "2025-01-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 272", "start": "2025-01-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 480", "start": "2025-01-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 447", "start": "2025-01-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 446", "start": "2025-01-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 295", "start": "2025-01-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 477", "start": "2025-02-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 717", "start": "2025-02-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 358", "start": "2025-02-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 514", "start": "2025-02-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 390", "start": "2025-02-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 602", "start": "2025-02-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 556", "start": "2025-02-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 469", "start": "2025-02-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 592", "start": "2025-02-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 438", "start": "2025-02-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 455", "start": "2025-02-22", "className": ["primary"] }, { "category": "likes", "title": "New Likes: 531", "start": "2024-03-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 642", "start": "2024-03-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 614", "start": "2024-03-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 537", "start": "2024-03-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 162", "start": "2024-03-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 329", "start": "2024-03-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 327", "start": "2024-03-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 284", "start": "2024-03-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 136", "start": "2024-04-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 411", "start": "2024-04-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 609", "start": "2024-04-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 629", "start": "2024-04-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 28", "start": "2024-04-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 590", "start": "2024-04-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 443", "start": "2024-04-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 847", "start": "2024-04-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 182", "start": "2024-04-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 713", "start": "2024-04-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 137", "start": "2024-04-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 358", "start": "2024-04-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 263", "start": "2024-04-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 316", "start": "2024-04-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 216", "start": "2024-04-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 231", "start": "2024-04-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 346", "start": "2024-05-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 281", "start": "2024-05-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 449", "start": "2024-05-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 422", "start": "2024-05-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 245", "start": "2024-05-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 159", "start": "2024-05-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 312", "start": "2024-05-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 180", "start": "2024-05-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 160", "start": "2024-05-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 129", "start": "2024-05-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 404", "start": "2024-05-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 305", "start": "2024-05-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 230", "start": "2024-05-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 344", "start": "2024-05-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 240", "start": "2024-05-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 244", "start": "2024-05-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 294", "start": "2024-06-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 178", "start": "2024-06-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 181", "start": "2024-06-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 124", "start": "2024-06-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 179", "start": "2024-06-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 99", "start": "2024-06-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 172", "start": "2024-06-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 168", "start": "2024-06-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 230", "start": "2024-07-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 172", "start": "2024-07-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 322", "start": "2024-07-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 428", "start": "2024-07-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 112", "start": "2024-07-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 253", "start": "2024-07-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 483", "start": "2024-07-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 372", "start": "2024-07-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 200", "start": "2024-07-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 296", "start": "2024-07-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 274", "start": "2024-07-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 421", "start": "2024-07-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 128", "start": "2024-08-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 464", "start": "2024-08-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 166", "start": "2024-08-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 298", "start": "2024-08-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 196", "start": "2024-08-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 284", "start": "2024-08-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 578", "start": "2024-08-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 370", "start": "2024-08-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 42", "start": "2024-08-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 257", "start": "2024-08-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 159", "start": "2024-08-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 248", "start": "2024-08-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 180", "start": "2024-08-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 412", "start": "2024-08-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 219", "start": "2024-08-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 274", "start": "2024-08-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 700", "start": "2024-08-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 221", "start": "2024-08-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 439", "start": "2024-09-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 216", "start": "2024-09-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 172", "start": "2024-09-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 699", "start": "2024-09-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 528", "start": "2024-09-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 415", "start": "2024-09-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 370", "start": "2024-09-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 383", "start": "2024-09-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 131", "start": "2024-09-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 290", "start": "2024-09-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 437", "start": "2024-09-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 357", "start": "2024-09-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 300", "start": "2024-09-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 233", "start": "2024-09-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 411", "start": "2024-09-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 240", "start": "2024-10-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 285", "start": "2024-10-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 69", "start": "2024-10-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 286", "start": "2024-10-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 244", "start": "2024-10-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 133", "start": "2024-10-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 289", "start": "2024-10-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 239", "start": "2024-10-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 165", "start": "2024-10-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 83", "start": "2024-10-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 256", "start": "2024-10-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 213", "start": "2024-11-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 161", "start": "2024-11-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 239", "start": "2024-11-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 113", "start": "2024-11-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 264", "start": "2024-11-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 122", "start": "2024-11-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 220", "start": "2024-11-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 171", "start": "2024-11-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 270", "start": "2024-11-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 219", "start": "2024-11-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 290", "start": "2024-11-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 191", "start": "2024-11-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 203", "start": "2024-12-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 209", "start": "2024-12-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 108", "start": "2024-12-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 59", "start": "2024-12-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 224", "start": "2024-12-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 228", "start": "2024-12-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 207", "start": "2024-12-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 44", "start": "2024-12-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 257", "start": "2024-12-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 177", "start": "2024-12-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 131", "start": "2024-12-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 128", "start": "2024-12-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 184", "start": "2024-12-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 231", "start": "2025-01-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 363", "start": "2025-01-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 221", "start": "2025-01-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 253", "start": "2025-01-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 145", "start": "2025-01-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 270", "start": "2025-01-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 434", "start": "2025-01-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 211", "start": "2025-01-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 106", "start": "2025-01-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 283", "start": "2025-01-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 196", "start": "2025-01-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 127", "start": "2025-01-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 321", "start": "2025-01-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 278", "start": "2025-01-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 349", "start": "2025-01-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 148", "start": "2025-01-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 281", "start": "2025-02-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 386", "start": "2025-02-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 161", "start": "2025-02-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 416", "start": "2025-02-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 181", "start": "2025-02-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 344", "start": "2025-02-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 209", "start": "2025-02-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 277", "start": "2025-02-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 298", "start": "2025-02-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 136", "start": "2025-02-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 211", "start": "2025-02-22", "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);