Skip to content

Commit

Permalink
add loading message
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzapanther committed Mar 3, 2024
1 parent 25f476b commit f7a7657
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cal.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import dayGridPlugin from '@fullcalendar/daygrid';
import listPlugin from '@fullcalendar/list';
import momentPlugin from '@fullcalendar/moment';

var locale = {
code: 'en-us',
noEventsText: 'Events Loading ...'
};

function load_calendar(view) {
var header = {left: '', right: ''};
if (view == 'dayGridMonth') {
Expand All @@ -15,6 +20,7 @@ function load_calendar(view) {

const calendarEl = document.getElementById('calendar-js');
const calendar = new Calendar(calendarEl, {
locale: locale,
plugins: [
iCalendarPlugin,
dayGridPlugin,
Expand Down

0 comments on commit f7a7657

Please sign in to comment.