-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmembers.html
45 lines (37 loc) · 1.27 KB
/
members.html
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
---
layout: page
---
<link rel="stylesheet" href="/assets/css/page-members.css">
{% include title-container.html title="Ph.D Students" %}
{% include member-group.html members=site.data.members.phd %}
{% include title-container.html title="Master Students" %}
{% include member-group.html members=site.data.members.master %}
{% include title-container.html title="Undergraduate Student" %}
{% include member-group.html members=site.data.members.intern %}
{% include title-container.html title="Alumni" %}
{% assign alumni = site.data.members.alumniPhd | concat: site.data.members.alumniMaster %}
{% include member-group.html members=alumni %}
<script>
$(function () {
var trgClass = 'active'
var $memCards = $('.member');
var $window = $(window);
function reset() {
$memCards.removeClass(trgClass);
}
$window.click(function () {
reset()
});
$memCards.click(function (e) {
e.stopPropagation();
var $self = $(this);
if($self.hasClass(trgClass)) return;
reset();
$(this).addClass(trgClass);
})
$('[data-dismiss]', $memCards).click(function (e) {
e.stopPropagation();
reset();
});
})
</script>