-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathscript.js
More file actions
95 lines (76 loc) · 2.45 KB
/
Copy pathscript.js
File metadata and controls
95 lines (76 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
(function ($) {
'use strict';
// Preloader js
$(window).on('load', function () {
$('.preloader').fadeOut(100);
});
// Accordions
$('.collapse').on('shown.bs.collapse', function () {
$(this).parent().find('.ti-angle-right').removeClass('ti-angle-right').addClass('ti-angle-down');
}).on('hidden.bs.collapse', function () {
$(this).parent().find('.ti-angle-down').removeClass('ti-angle-down').addClass('ti-angle-right');
});
//slider
$('.slider').slick({
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
dots: true,
arrows: false
});
$('.cite-link').click(function() {
var cite = '#' + $(this).attr('data-link');
$(cite).slideToggle();
return false;
})
})(jQuery);
/*!
* JavaScript functions for use in event pages.
*/
/*
* toggleAbstract toggles the visibility of the abstract of a presentation on
* agenda pages of InnerSource events.
*/
function toggleAbstract(elementId) {
var a = document.getElementById(elementId);
var aLink = document.getElementById(elementId + "-link");
if (a.style.display == "none") {
a.style.display = "block";
aLink.text = "Hide Abstract";
} else {
a.style.display = "none";
aLink.text = "Show Abstract";
}
}
(function ($) {
'use strict';
// Preloader js
$(window).on('load', function () {
$('.preloader').fadeOut(100);
var calendarContainer = document.getElementById('calendar-container-old');
if(calendarContainer){
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone
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>`
calendarContainer.innerHTML = html;
}
});
// Accordions
$('.collapse').on('shown.bs.collapse', function () {
$(this).parent().find('.ti-angle-right').removeClass('ti-angle-right').addClass('ti-angle-down');
}).on('hidden.bs.collapse', function () {
$(this).parent().find('.ti-angle-down').removeClass('ti-angle-down').addClass('ti-angle-right');
});
//slider
$('.slider').slick({
slidesToShow: 1,
slidesToScroll: 1,
autoplay: true,
dots: true,
arrows: false
});
$('.cite-link').click(function() {
var cite = '#' + $(this).attr('data-link');
$(cite).slideToggle();
return false;
})
})(jQuery);