+function($){ "use strict"; $('.external-event').each(function(){ $(this).data('event', { title: $.trim($(this).text()), className: [$(this).data('class')] }); }); $('.external-event').draggable({ revert: true, revertDuration: 0 }); var cal = $('#fullcalendar').fullCalendar({ theme: true, editable: false, droppable: false, header: { left: 'prev, today, next', center: 'title' }, buttonText: { prev: '', next: '' }, events: [ { "category": "online", "title": "Online: 02 h 06 min", "start": "2022-12-14", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 15 min", "start": "2022-12-15", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 48 min", "start": "2022-12-16", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 27 min", "start": "2022-12-17", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 45 min", "start": "2022-12-18", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 12 min", "start": "2022-12-19", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 24 min", "start": "2022-12-20", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 09 min", "start": "2022-12-21", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 09 min", "start": "2022-12-22", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 57 min", "start": "2022-12-23", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 45 min", "start": "2022-12-24", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 27 min", "start": "2022-12-25", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 33 min", "start": "2022-12-26", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 06 min", "start": "2022-12-27", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 33 min", "start": "2022-12-28", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 45 min", "start": "2022-12-29", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 18 min", "start": "2022-12-30", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 54 min", "start": "2022-12-31", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 06 min", "start": "2023-01-03", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 30 min", "start": "2023-01-04", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 45 min", "start": "2023-01-05", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2023-01-06", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 15 min", "start": "2023-01-07", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 12 min", "start": "2023-01-08", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 48 min", "start": "2023-01-09", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 54 min", "start": "2023-01-10", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 27 min", "start": "2023-01-11", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 06 min", "start": "2023-01-12", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2023-01-13", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 57 min", "start": "2023-01-14", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 24 min", "start": "2023-01-15", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 27 min", "start": "2023-01-16", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 36 min", "start": "2023-01-17", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 57 min", "start": "2023-01-18", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 54 min", "start": "2023-01-19", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 39 min", "start": "2023-01-20", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 27 min", "start": "2023-01-21", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 12 min", "start": "2023-01-22", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 00 min", "start": "2023-01-23", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 57 min", "start": "2023-01-24", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 54 min", "start": "2023-01-25", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 06 min", "start": "2023-01-27", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 42 min", "start": "2023-01-28", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 45 min", "start": "2023-01-29", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 51 min", "start": "2023-01-30", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 57 min", "start": "2023-01-31", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 15 min", "start": "2023-02-01", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 00 min", "start": "2023-02-02", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 18 min", "start": "2023-02-03", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 00 min", "start": "2023-02-04", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 09 min", "start": "2023-02-05", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 30 min", "start": "2023-02-06", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2023-02-07", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 30 min", "start": "2023-02-08", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 42 min", "start": "2023-02-09", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 33 min", "start": "2023-02-10", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 24 min", "start": "2023-02-11", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2023-02-12", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 39 min", "start": "2023-02-13", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 15 min", "start": "2023-02-14", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 09 min", "start": "2023-02-15", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 06 min", "start": "2023-02-16", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 30 min", "start": "2023-02-17", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 39 min", "start": "2023-02-18", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 00 min", "start": "2023-02-19", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 00 min", "start": "2023-02-20", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 42 min", "start": "2023-02-21", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 51 min", "start": "2023-02-22", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 09 min", "start": "2023-02-23", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 03 min", "start": "2023-02-24", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2023-02-25", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2023-02-26", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 27 min", "start": "2023-02-27", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 15 min", "start": "2023-03-01", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 36 min", "start": "2023-03-02", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 12 min", "start": "2023-03-03", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 30 min", "start": "2023-03-04", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 06 min", "start": "2023-03-05", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2023-03-06", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 57 min", "start": "2023-03-07", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 45 min", "start": "2023-03-08", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 54 min", "start": "2023-03-09", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 33 min", "start": "2023-03-10", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 21 min", "start": "2023-03-11", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 33 min", "start": "2023-03-12", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 00 min", "start": "2023-03-13", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 51 min", "start": "2023-03-15", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 21 min", "start": "2023-03-16", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 03 min", "start": "2023-03-17", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 00 min", "start": "2023-03-18", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 54 min", "start": "2023-03-19", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 15 min", "start": "2023-03-20", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 06 min", "start": "2023-03-21", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 51 min", "start": "2023-03-22", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 15 min", "start": "2023-03-23", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 24 min", "start": "2023-03-24", "className": ["success"] }, { "category": "online", "title": "Online: 05 h 09 min", "start": "2023-03-25", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 21 min", "start": "2023-03-26", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 00 min", "start": "2023-03-27", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 27 min", "start": "2023-03-28", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 39 min", "start": "2023-03-29", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 39 min", "start": "2023-03-30", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 42 min", "start": "2023-03-31", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 42 min", "start": "2023-04-01", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 03 min", "start": "2023-04-02", "className": ["success"] }, { "category": "online", "title": "Online: 04 h 00 min", "start": "2023-04-03", "className": ["success"] }, { "category": "online", "title": "Online: 02 h 51 min", "start": "2023-04-04", "className": ["success"] }, { "category": "online", "title": "Online: 01 h 06 min", "start": "2023-04-05", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 42 min", "start": "2025-01-14", "className": ["success"] }, { "category": "online", "title": "Online: 03 h 18 min", "start": "2025-01-15", "className": ["success"] }, { "category": "online", "title": "Online: 00 h 21 min", "start": "2025-01-16", "className": ["success"] }, { "category": "Score", "title": "Max score: 2207", "start": "2022-12-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2836", "start": "2022-12-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 324", "start": "2022-12-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2904", "start": "2022-12-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2725", "start": "2022-12-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2676", "start": "2022-12-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2101", "start": "2022-12-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1858", "start": "2022-12-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 931", "start": "2022-12-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1703", "start": "2022-12-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2121", "start": "2022-12-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2050", "start": "2022-12-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3016", "start": "2022-12-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3209", "start": "2022-12-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3399", "start": "2022-12-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3032", "start": "2022-12-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2834", "start": "2022-12-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1585", "start": "2022-12-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3381", "start": "2023-01-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3674", "start": "2023-01-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3122", "start": "2023-01-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3149", "start": "2023-01-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2727", "start": "2023-01-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2519", "start": "2023-01-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2236", "start": "2023-01-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2378", "start": "2023-01-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1588", "start": "2023-01-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2878", "start": "2023-01-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2490", "start": "2023-01-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1916", "start": "2023-01-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2665", "start": "2023-01-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2114", "start": "2023-01-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3437", "start": "2023-01-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2379", "start": "2023-01-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2100", "start": "2023-01-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2364", "start": "2023-01-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2842", "start": "2023-01-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2887", "start": "2023-01-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2609", "start": "2023-01-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1930", "start": "2023-01-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3913", "start": "2023-01-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2261", "start": "2023-01-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1908", "start": "2023-01-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1934", "start": "2023-01-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2153", "start": "2023-01-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2184", "start": "2023-01-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1244", "start": "2023-02-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2051", "start": "2023-02-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 220", "start": "2023-02-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1700", "start": "2023-02-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1720", "start": "2023-02-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1636", "start": "2023-02-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2030", "start": "2023-02-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1880", "start": "2023-02-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1486", "start": "2023-02-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2301", "start": "2023-02-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1865", "start": "2023-02-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1746", "start": "2023-02-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2836", "start": "2023-02-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1360", "start": "2023-02-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 810", "start": "2023-02-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2546", "start": "2023-02-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2791", "start": "2023-02-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2580", "start": "2023-02-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2510", "start": "2023-02-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2469", "start": "2023-02-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1972", "start": "2023-02-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1939", "start": "2023-02-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1920", "start": "2023-02-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2444", "start": "2023-02-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1547", "start": "2023-02-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2989", "start": "2023-02-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2852", "start": "2023-02-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2362", "start": "2023-03-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1795", "start": "2023-03-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2105", "start": "2023-03-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1795", "start": "2023-03-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3461", "start": "2023-03-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1724", "start": "2023-03-06", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2044", "start": "2023-03-07", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1750", "start": "2023-03-08", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2699", "start": "2023-03-09", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2372", "start": "2023-03-10", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1964", "start": "2023-03-11", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2603", "start": "2023-03-12", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1980", "start": "2023-03-13", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1792", "start": "2023-03-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1923", "start": "2023-03-16", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1693", "start": "2023-03-17", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2040", "start": "2023-03-18", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3472", "start": "2023-03-19", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3315", "start": "2023-03-20", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3877", "start": "2023-03-21", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1976", "start": "2023-03-22", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1067", "start": "2023-03-23", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2399", "start": "2023-03-24", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2879", "start": "2023-03-25", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2559", "start": "2023-03-26", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3011", "start": "2023-03-27", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2097", "start": "2023-03-28", "className": ["primary"] }, { "category": "Score", "title": "Max score: 3311", "start": "2023-03-29", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2617", "start": "2023-03-30", "className": ["primary"] }, { "category": "Score", "title": "Max score: 2228", "start": "2023-03-31", "className": ["primary"] }, { "category": "Score", "title": "Max score: 105", "start": "2023-04-01", "className": ["primary"] }, { "category": "Score", "title": "Max score: 230", "start": "2023-04-02", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1423", "start": "2023-04-03", "className": ["primary"] }, { "category": "Score", "title": "Max score: 1792", "start": "2023-04-04", "className": ["primary"] }, { "category": "Score", "title": "Max score: 117", "start": "2023-04-05", "className": ["primary"] }, { "category": "Score", "title": "Max score: 259", "start": "2025-01-14", "className": ["primary"] }, { "category": "Score", "title": "Max score: 241", "start": "2025-01-15", "className": ["primary"] }, { "category": "Score", "title": "Max score: 172", "start": "2025-01-16", "className": ["primary"] }, { "category": "likes", "title": "New Likes: 97", "start": "2022-12-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 62", "start": "2022-12-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 160", "start": "2022-12-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 141", "start": "2022-12-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 81", "start": "2022-12-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 154", "start": "2022-12-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 202", "start": "2022-12-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 51", "start": "2022-12-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 166", "start": "2022-12-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 149", "start": "2022-12-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 30", "start": "2022-12-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 296", "start": "2022-12-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 326", "start": "2022-12-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 162", "start": "2022-12-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 119", "start": "2022-12-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 27", "start": "2022-12-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 152", "start": "2022-12-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 109", "start": "2023-01-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 328", "start": "2023-01-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 234", "start": "2023-01-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 135", "start": "2023-01-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 95", "start": "2023-01-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 133", "start": "2023-01-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 142", "start": "2023-01-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 241", "start": "2023-01-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 43", "start": "2023-01-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 156", "start": "2023-01-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 146", "start": "2023-01-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 87", "start": "2023-01-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 122", "start": "2023-01-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 80", "start": "2023-01-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 349", "start": "2023-01-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 98", "start": "2023-01-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 246", "start": "2023-01-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 79", "start": "2023-01-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 142", "start": "2023-01-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 33", "start": "2023-01-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 166", "start": "2023-01-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 236", "start": "2023-01-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 133", "start": "2023-01-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 89", "start": "2023-01-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 136", "start": "2023-01-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 37", "start": "2023-01-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 113", "start": "2023-01-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 52", "start": "2023-01-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 105", "start": "2023-02-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 113", "start": "2023-02-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 20", "start": "2023-02-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 110", "start": "2023-02-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 2", "start": "2023-02-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 20", "start": "2023-02-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 101", "start": "2023-02-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 84", "start": "2023-02-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 76", "start": "2023-02-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 96", "start": "2023-02-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 52", "start": "2023-02-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 68", "start": "2023-02-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 174", "start": "2023-02-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 42", "start": "2023-02-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 21", "start": "2023-02-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 151", "start": "2023-02-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 92", "start": "2023-02-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 41", "start": "2023-02-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 91", "start": "2023-02-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 53", "start": "2023-02-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 64", "start": "2023-02-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 122", "start": "2023-02-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 121", "start": "2023-02-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 54", "start": "2023-02-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 102", "start": "2023-02-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 64", "start": "2023-02-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 178", "start": "2023-02-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 99", "start": "2023-03-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 74", "start": "2023-03-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 70", "start": "2023-03-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 55", "start": "2023-03-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 156", "start": "2023-03-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 103", "start": "2023-03-06", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 92", "start": "2023-03-07", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 24", "start": "2023-03-08", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 150", "start": "2023-03-09", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 130", "start": "2023-03-10", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 62", "start": "2023-03-11", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 102", "start": "2023-03-12", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 79", "start": "2023-03-13", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 92", "start": "2023-03-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 100", "start": "2023-03-16", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 103", "start": "2023-03-17", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 73", "start": "2023-03-18", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 187", "start": "2023-03-19", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 160", "start": "2023-03-20", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 310", "start": "2023-03-21", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 63", "start": "2023-03-22", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 81", "start": "2023-03-23", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 78", "start": "2023-03-24", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 128", "start": "2023-03-25", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 110", "start": "2023-03-26", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 153", "start": "2023-03-27", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 119", "start": "2023-03-28", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 81", "start": "2023-03-29", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 129", "start": "2023-03-30", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 65", "start": "2023-03-31", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 54", "start": "2023-04-01", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 73", "start": "2023-04-02", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 169", "start": "2023-04-03", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 118", "start": "2023-04-04", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 50", "start": "2023-04-05", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 388433", "start": "2025-01-14", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 366", "start": "2025-01-15", "className": ["purple"] }, { "category": "likes", "title": "New Likes: 23", "start": "2025-01-16", "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);