Skip to content

Commit 850c61a

Browse files
authored
Add loading message to calendar iframe
Updated the events page to display a loading message while the calendar is being fetched.
1 parent 68ef68e commit 850c61a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ layout: default
33
permalink: /events/
44
---
55

6+
<div id="calendar-container">Loading calendar...</div>
7+
68
<script type="text/javascript">
79
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone
810
const html = `<iframe src="https://calendar.google.com/calendar/embed?src=7000a514e4c452c330b7786deba4a311e5d2e7aac1951ba87451e2b0961882a8%40group.calendar.google.com&ctz=${timezone}" style=" border-width:0 " width="800" height="600" frameborder="0" scrolling="no"></iframe>`
911
document.getElementById('calendar-container').innerHTML = html;
1012
</script>
11-
<div id="calendar-container"></div>
12-

0 commit comments

Comments
 (0)