From 08e925758e920b898ac2d08710eab2f9638fe276 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 25 Jan 2023 13:08:05 +0000 Subject: update fullcalendar library --- .../fullcalendar/examples/background-events.html | 52 +++-- library/fullcalendar/examples/daygrid-views.html | 45 ++--- .../examples/external-dragging-2cals.html | 20 +- .../examples/external-dragging-builtin.html | 68 +++---- library/fullcalendar/examples/full-height.html | 56 +++--- library/fullcalendar/examples/google-calendar.html | 86 --------- library/fullcalendar/examples/js/theme-chooser.js | 141 -------------- library/fullcalendar/examples/json.html | 93 --------- library/fullcalendar/examples/json/events.json | 56 ------ library/fullcalendar/examples/list-views.html | 48 +++-- library/fullcalendar/examples/locales.html | 152 --------------- library/fullcalendar/examples/month-view.html | 45 ++--- library/fullcalendar/examples/php/get-events.php | 50 ----- .../fullcalendar/examples/php/get-time-zones.php | 9 - library/fullcalendar/examples/php/utils.php | 130 ------------- library/fullcalendar/examples/rrule.html | 73 ------- library/fullcalendar/examples/selectable.html | 52 +++-- library/fullcalendar/examples/theming.html | 215 --------------------- library/fullcalendar/examples/time-zones.html | 145 -------------- library/fullcalendar/examples/timegrid-views.html | 53 +++-- library/fullcalendar/examples/week-numbers.html | 118 ----------- 21 files changed, 201 insertions(+), 1506 deletions(-) delete mode 100644 library/fullcalendar/examples/google-calendar.html delete mode 100644 library/fullcalendar/examples/js/theme-chooser.js delete mode 100644 library/fullcalendar/examples/json.html delete mode 100644 library/fullcalendar/examples/json/events.json delete mode 100644 library/fullcalendar/examples/locales.html delete mode 100644 library/fullcalendar/examples/php/get-events.php delete mode 100644 library/fullcalendar/examples/php/get-time-zones.php delete mode 100644 library/fullcalendar/examples/php/utils.php delete mode 100644 library/fullcalendar/examples/rrule.html delete mode 100644 library/fullcalendar/examples/theming.html delete mode 100644 library/fullcalendar/examples/time-zones.html delete mode 100644 library/fullcalendar/examples/week-numbers.html (limited to 'library/fullcalendar/examples') diff --git a/library/fullcalendar/examples/background-events.html b/library/fullcalendar/examples/background-events.html index 307966dcc..fd36fde4c 100644 --- a/library/fullcalendar/examples/background-events.html +++ b/library/fullcalendar/examples/background-events.html @@ -2,80 +2,72 @@ - - - - - - - - - + - - + - - + - - - - + - - - - + - - - - - - - - - -
loading...
- -
- - - diff --git a/library/fullcalendar/examples/js/theme-chooser.js b/library/fullcalendar/examples/js/theme-chooser.js deleted file mode 100644 index 92a7c4753..000000000 --- a/library/fullcalendar/examples/js/theme-chooser.js +++ /dev/null @@ -1,141 +0,0 @@ - -function initThemeChooser(settings) { - var isInitialized = false; - var currentThemeSystem; // don't set this directly. use setThemeSystem - var currentStylesheetEl; - var loadingEl = document.getElementById('loading'); - var systemSelectEl = document.querySelector('#theme-system-selector select'); - var themeSelectWrapEls = Array.prototype.slice.call( // convert to real array - document.querySelectorAll('.selector[data-theme-system]') - ); - - systemSelectEl.addEventListener('change', function() { - setThemeSystem(this.value); - }); - - setThemeSystem(systemSelectEl.value); - - themeSelectWrapEls.forEach(function(themeSelectWrapEl) { - var themeSelectEl = themeSelectWrapEl.querySelector('select'); - - themeSelectWrapEl.addEventListener('change', function() { - setTheme( - currentThemeSystem, - themeSelectEl.options[themeSelectEl.selectedIndex].value - ); - }); - }); - - - function setThemeSystem(themeSystem) { - var selectedTheme; - - currentThemeSystem = themeSystem; - - themeSelectWrapEls.forEach(function(themeSelectWrapEl) { - var themeSelectEl = themeSelectWrapEl.querySelector('select'); - - if (themeSelectWrapEl.getAttribute('data-theme-system') === themeSystem) { - selectedTheme = themeSelectEl.options[themeSelectEl.selectedIndex].value; - themeSelectWrapEl.style.display = 'inline-block'; - } else { - themeSelectWrapEl.style.display = 'none'; - } - }); - - setTheme(themeSystem, selectedTheme); - } - - - function setTheme(themeSystem, themeName) { - var stylesheetUrl = generateStylesheetUrl(themeSystem, themeName); - var stylesheetEl; - - function done() { - if (!isInitialized) { - isInitialized = true; - settings.init(themeSystem); - } - else { - settings.change(themeSystem); - } - - showCredits(themeSystem, themeName); - } - - if (stylesheetUrl) { - stylesheetEl = document.createElement('link'); - stylesheetEl.setAttribute('rel', 'stylesheet'); - stylesheetEl.setAttribute('href', stylesheetUrl); - document.querySelector('head').appendChild(stylesheetEl); - - loadingEl.style.display = 'inline'; - - whenStylesheetLoaded(stylesheetEl, function() { - if (currentStylesheetEl) { - currentStylesheetEl.parentNode.removeChild(currentStylesheetEl); - } - currentStylesheetEl = stylesheetEl; - loadingEl.style.display = 'none'; - done(); - }); - } else { - if (currentStylesheetEl) { - currentStylesheetEl.parentNode.removeChild(currentStylesheetEl); - currentStylesheetEl = null - } - done(); - } - } - - - function generateStylesheetUrl(themeSystem, themeName) { - if (themeSystem === 'bootstrap') { - if (themeName) { - return 'https://bootswatch.com/4/' + themeName + '/bootstrap.min.css'; - } - else { // the default bootstrap theme - return 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css'; - } - } - } - - - function showCredits(themeSystem, themeName) { - var creditId; - - if (themeSystem.match('bootstrap')) { - if (themeName) { - creditId = 'bootstrap-custom'; - } - else { - creditId = 'bootstrap-standard'; - } - } - - Array.prototype.slice.call( // convert to real array - document.querySelectorAll('.credits') - ).forEach(function(creditEl) { - if (creditEl.getAttribute('data-credit-id') === creditId) { - creditEl.style.display = 'block'; - } else { - creditEl.style.display = 'none'; - } - }) - } - - - function whenStylesheetLoaded(linkNode, callback) { - var isReady = false; - - function ready() { - if (!isReady) { // avoid double-call - isReady = true; - callback(); - } - } - - linkNode.onload = ready; // does not work cross-browser - setTimeout(ready, 2000); // max wait. also handles browsers that don't support onload - } -} diff --git a/library/fullcalendar/examples/json.html b/library/fullcalendar/examples/json.html deleted file mode 100644 index d7c9a5328..000000000 --- a/library/fullcalendar/examples/json.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - -
- php/get-events.php must be running. -
- -
loading...
- -
- - - diff --git a/library/fullcalendar/examples/json/events.json b/library/fullcalendar/examples/json/events.json deleted file mode 100644 index 2352f2d87..000000000 --- a/library/fullcalendar/examples/json/events.json +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "title": "All Day Event", - "start": "2020-05-01" - }, - { - "title": "Long Event", - "start": "2020-05-07", - "end": "2020-05-10" - }, - { - "id": "999", - "title": "Repeating Event", - "start": "2020-05-09T16:00:00-05:00" - }, - { - "id": "999", - "title": "Repeating Event", - "start": "2020-05-16T16:00:00-05:00" - }, - { - "title": "Conference", - "start": "2020-05-11", - "end": "2020-05-13" - }, - { - "title": "Meeting", - "start": "2020-05-12T10:30:00-05:00", - "end": "2020-05-12T12:30:00-05:00" - }, - { - "title": "Lunch", - "start": "2020-05-12T12:00:00-05:00" - }, - { - "title": "Meeting", - "start": "2020-05-12T14:30:00-05:00" - }, - { - "title": "Happy Hour", - "start": "2020-05-12T17:30:00-05:00" - }, - { - "title": "Dinner", - "start": "2020-05-12T20:00:00" - }, - { - "title": "Birthday Party", - "start": "2020-05-13T07:00:00-05:00" - }, - { - "title": "Click for Google", - "url": "http://google.com/", - "start": "2020-05-28" - } -] diff --git a/library/fullcalendar/examples/list-views.html b/library/fullcalendar/examples/list-views.html index e97c1c231..43094334d 100644 --- a/library/fullcalendar/examples/list-views.html +++ b/library/fullcalendar/examples/list-views.html @@ -2,22 +2,18 @@ - - - - + - - - - - - - - - - -
- - Locales: - - -
- -
- - - diff --git a/library/fullcalendar/examples/month-view.html b/library/fullcalendar/examples/month-view.html index 9df8682b3..a285ff949 100644 --- a/library/fullcalendar/examples/month-view.html +++ b/library/fullcalendar/examples/month-view.html @@ -2,75 +2,72 @@ - - - - - + - - - - - - - - - - - -
- - - diff --git a/library/fullcalendar/examples/selectable.html b/library/fullcalendar/examples/selectable.html index 13aa88ee8..09d384498 100644 --- a/library/fullcalendar/examples/selectable.html +++ b/library/fullcalendar/examples/selectable.html @@ -2,26 +2,19 @@ - - - - - - - + - - - - - - - - - - - -
- -
- -
- Theme System: - - -
- - - - - -
- - - -
-
- -
- - - diff --git a/library/fullcalendar/examples/time-zones.html b/library/fullcalendar/examples/time-zones.html deleted file mode 100644 index f4174a714..000000000 --- a/library/fullcalendar/examples/time-zones.html +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - - - - - - - - - - - - - -
- -
- Timezone: - -
- -
- loading... - php/get-events.php must be running. -
- -
- -
- -
- - - diff --git a/library/fullcalendar/examples/timegrid-views.html b/library/fullcalendar/examples/timegrid-views.html index dcef41065..c197b1ae5 100644 --- a/library/fullcalendar/examples/timegrid-views.html +++ b/library/fullcalendar/examples/timegrid-views.html @@ -2,85 +2,80 @@ - - - - - - - - - + - - - - - - - - - -
- - - -- cgit v1.2.3