A Pen by Emmanuel ADEKPLOVI on CodePen.
Created
May 20, 2020 06:03
-
-
Save manutheblacker/4d3846f1b139613e98873d7187601b8c to your computer and use it in GitHub Desktop.
LYpMzEp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id='calendar'></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener('DOMContentLoaded', function() { | |
var calendarEl = document.getElementById('calendar'); | |
var calendar = new FullCalendar.Calendar(calendarEl, { | |
plugins: [ 'dayGrid' ], | |
timeZone: 'UTC', | |
defaultView: 'dayGridMonth', | |
events: 'https://fullcalendar.io/demo-events.json' | |
}); | |
calendar.render(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://unpkg.com/@fullcalendar/core@4.4.0/main.min.js"></script> | |
<script src="https://unpkg.com/@fullcalendar/daygrid@4.4.0/main.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body { | |
margin: 0; | |
padding: 0; | |
font-family: Arial, Helvetica Neue, Helvetica, sans-serif; | |
font-size: 14px; | |
} | |
#calendar { | |
max-width: 900px; | |
margin: 40px auto; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://unpkg.com/@fullcalendar/core@4.4.0/main.min.css" rel="stylesheet" /> | |
<link href="https://unpkg.com/@fullcalendar/daygrid@4.4.0/main.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment