Skip to content

Commit

Permalink
Making calendar work for different view
Browse files Browse the repository at this point in the history
  • Loading branch information
vishakhanihore committed Jan 23, 2020
1 parent a22370c commit 7874f65
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 7 deletions.
6 changes: 5 additions & 1 deletion assets/css/fullcalendar/daygrid.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions assets/js/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ function renderCalendar() {

var calendar = new FullCalendar.Calendar(calendarEl, {
plugins: [ 'dayGrid', 'googleCalendar', 'moment' ],
defaultView: 'dayGridMonth',
defaultView: 'dayGridWeek',
googleCalendarApiKey: 'AIzaSyDlAwor0K8xljdp_r3V-9nFKnyoBQzm3Ro',
events: {
googleCalenderId: 'cgnt364vd8s86hr2phapfjc6uk@group.calendar.google.com',
},
header: {
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,listYear'
center: 'title,',
right: 'dayGridDay,dayGridWeek,dayGridMonth'
},
eventClick: openEvent,
timezone: 'local',
Expand Down
18 changes: 16 additions & 2 deletions assets/js/fullcalendar/daygrid.min.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions assets/js/fullcalendar/moment.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ twitterHandle = "kubernetes"
googleAnalyticsId = "180100527"

[params.fullcalendar]
js = ["core", "google-calendar", "daygrid"]
js = ["core", "google-calendar", "daygrid", "moment"]
css = ["core", "daygrid"]

[[params.fonts]]
Expand Down

0 comments on commit 7874f65

Please sign in to comment.