-
Notifications
You must be signed in to change notification settings - Fork 11
/
calendar.events.htm
34 lines (27 loc) · 1.01 KB
/
calendar.events.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
layout:
title:
permalink: /calendar-ics/
nav-menu: false
show_tile: false
---
<link href='https://cdn.jsdelivr.net/npm/[email protected]/main.min.css' rel='stylesheet' />
<script src='https://cdn.jsdelivr.net/npm/[email protected]/main.min.js'></script>
<script src=" https://cdn.jsdelivr.net/npm/[email protected]/ical.min.js "></script>
<script src=" https://cdn.jsdelivr.net/npm/@fullcalendar/[email protected]/index.global.min.js "></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var loadingEl = document.getElementById('loading');
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
events: {
url: "../events/3a2r4TYXw7es7ZGt-2024-08-31.ics",
format: 'ics'
},
eventTimeFormat: { hour: 'numeric', minute: '2-digit', timeZoneName: 'short' },
});
calendar.render();
// when the timezone selector changes, dynamically change the calendar option
});
</script>
<div id="calendar"></div>