Skip to content

Instantly share code, notes, and snippets.

@manutheblacker
Created May 20, 2020 06:03
Show Gist options
  • Save manutheblacker/4d3846f1b139613e98873d7187601b8c to your computer and use it in GitHub Desktop.
Save manutheblacker/4d3846f1b139613e98873d7187601b8c to your computer and use it in GitHub Desktop.
LYpMzEp
<div id='calendar'></div>
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();
});
<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>
html, body {
margin: 0;
padding: 0;
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
font-size: 14px;
}
#calendar {
max-width: 900px;
margin: 40px auto;
}
<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