FullCalendar 다운로드 : https://fullcalendar.io/docs/initialize-globals
CDN : https://www.jsdelivr.com/package/npm/fullcalendar?version=6.0.1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="calendar/main.css">
<link href='https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css' rel='stylesheet'>
<link href='https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css' rel='stylesheet'>
</head>
<body>
<div id="calendar"></div>
<script src="calendar/main.js"></script>
<script>
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
headerToolbar: { // 상단 툴바 설정
left: 'prev,next today',
center: 'title',
right: 'listMonth,timeGridDay,timeGridWeek,dayGridMonth'
},
initialDate: '2022-12-26', // 달력 로드 시 보여지는 기준 일자
themeSystem: 'bootstrap5', // 달력 테마 설정 *부트스트랩 사용 시 CDN 필수
locale: `ko`
})
calendar.render(); // 달력 렌더링
</script>
</body>
</html>