Skip to content

Commit 8a62006

Browse files
authored
Merge pull request #1010 from InnerSourceCommons/calendar-revert
revert calendar
2 parents a8f0c9e + 81783e0 commit 8a62006

File tree

2 files changed

+54
-2
lines changed

2 files changed

+54
-2
lines changed

assets/js/script.js

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,46 @@ function toggleAbstract(elementId) {
5050
a.style.display = "none";
5151
aLink.text = "Show Abstract";
5252
}
53-
}
53+
}
54+
55+
56+
(function ($) {
57+
'use strict';
58+
59+
// Preloader js
60+
$(window).on('load', function () {
61+
$('.preloader').fadeOut(100);
62+
var calendarContainer = document.getElementById('calendar-container-old');
63+
if(calendarContainer){
64+
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone
65+
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>`
66+
calendarContainer.innerHTML = html;
67+
}
68+
});
69+
70+
// Accordions
71+
$('.collapse').on('shown.bs.collapse', function () {
72+
$(this).parent().find('.ti-angle-right').removeClass('ti-angle-right').addClass('ti-angle-down');
73+
}).on('hidden.bs.collapse', function () {
74+
$(this).parent().find('.ti-angle-down').removeClass('ti-angle-down').addClass('ti-angle-right');
75+
});
76+
77+
78+
//slider
79+
$('.slider').slick({
80+
slidesToShow: 1,
81+
slidesToScroll: 1,
82+
autoplay: true,
83+
dots: true,
84+
arrows: false
85+
});
86+
87+
$('.cite-link').click(function() {
88+
var cite = '#' + $(this).attr('data-link');
89+
$(cite).slideToggle();
90+
91+
return false;
92+
})
93+
94+
})(jQuery);
95+

content/en/calendar/_index.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,14 @@ title: "InnerSource Commons Calendar"
33
subtitle: ""
44
description: "The InnerSource Commons Calendar."
55
draft: false
6-
---
6+
---
7+
<section class="section">
8+
<div class="container">
9+
<div class="row align-items-center">
10+
<p>Welcome to the InnerSource Commons Calendar! Our events and working groups are open to everyone because we know that magic happens when people come together to share their experience and knowledge. </p>
11+
<div class="col-md-6 order-1 order-md-2 mb-4 mb-md-0" id="calendar-container-old">
12+
</div>
13+
</div>
14+
</div>
15+
</div>
16+
</section>

0 commit comments

Comments
 (0)