We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14b6358 commit 79dbb0aCopy full SHA for 79dbb0a
1 file changed
assets/js/script.js
@@ -4,10 +4,11 @@
4
// Preloader js
5
$(window).on('load', function () {
6
$('.preloader').fadeOut(100);
7
- if(document.getElementById('calendar-container')){
+ var calendarContainer = document.getElementById('calendar-container');
8
+ if(calendarContainer){
9
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone
10
const html = `<iframe src="https://calendar.google.com/calendar/embed?src=c_62694f414055ac569e5cb12dafbb0890ca22f3640b177a4b10b53171fbc9bdd4%40group.calendar.google.com&ctz=${timezone}" style=" border:0 " width="800" height="600" frameborder="0" scrolling="no"></iframe>`
- document.getElementById('calendar-container').innerHTML = html;
11
+ calendarContainer.innerHTML = html;
12
}
13
});
14
0 commit comments