Skip to content

Instantly share code, notes, and snippets.

@reederz
Created June 9, 2019 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reederz/2933b869d6a0f9a7994a7d62dc1b0fc9 to your computer and use it in GitHub Desktop.
Save reederz/2933b869d6a0f9a7994a7d62dc1b0fc9 to your computer and use it in GitHub Desktop.
Refreshing gcal iframe
<html>
<head>
<script type="text/javascript">
setInterval(function () {
console.log('Refreshing...');
// see https://stackoverflow.com/a/4062084
document.getElementById('calendar-frame').src = document.getElementById('calendar-frame').src;
console.log('Refreshed.');
}, 3000)
</script>
</head>
<body>
<iframe id="calendar-frame" style="height: 600; width: 840;" src="https://calendar.google.com/calendar/embed?src=en.danish%23holiday%40group.v.calendar.google.com&ctz=America%2FLos_Angeles">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment