Created
June 9, 2019 21:35
-
-
Save reederz/2933b869d6a0f9a7994a7d62dc1b0fc9 to your computer and use it in GitHub Desktop.
Refreshing gcal iframe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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