-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathscript.js
More file actions
53 lines (44 loc) · 1.23 KB
/
script.js
File metadata and controls
53 lines (44 loc) · 1.23 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
(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";
}
}