-
Notifications
You must be signed in to change notification settings - Fork 0
/
officers.html
195 lines (177 loc) · 5.16 KB
/
officers.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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
---
layout: default
title: "Officers"
js: [/js/imagesloaded.js, /js/animonscroll.js]
---
<h2>Who's That Officer?</h2>
<div class="card-holder">
<div class="card">
<img src="/images/officers/walter.jpg" />
<header>Walter Oji</header>
<p>[email protected]</p>
</div>
</div>
<div class="card-holder middle">
<div class="card">
<img src="/images/officers/unknownvice.png" />
<header>Chris Fernald</header>
<p>[email protected]</p>
</div>
</div>
<div class="card-holder">
<div class="card">
<img src="/images/officers/unknowncorporate.png" />
<header>Haley Alexander</header>
<p>[email protected]</p>
</div>
</div>
<div class="card-holder">
<div class="card">
<img src="/images/officers/ross.jpg" />
<header>Ross McNulty</header>
<p>[email protected]</p>
</div>
</div>
<div id="mp-cards" class="card-holder middle">
<div class="card back">
<img src="/images/officers/unknownmp.png" />
<header></header>
<p>[email protected]</p>
</div>
<div class="card mid">
<img src="/images/officers/unknownmp.png" />
<header></header>
<p>[email protected]</p>
</div>
<div class="card front">
<img src="/images/officers/karthik.jpg" />
<header>Karthik Konath</header>
<p>[email protected]</p>
</div>
</div>
<div id="ae-cards" class="card-holder">
<div class="card hid2">
<img src="/images/officers/unknownae.png" />
<header></header>
<p>[email protected]</p>
</div>
<div class="card hid1">
<img src="/images/officers/unknownae.png" />
<header></header>
<p>[email protected]</p>
</div>
<div class="card back">
<img src="/images/officers/unknownae.png" />
<header></header>
<p>[email protected]</p>
</div>
<div class="card mid">
<img src="/images/officers/unknownae.png" />
<header></header>
<p>[email protected]</p>
</div>
<div class="card front">
<img src="/images/officers/ali.jpg" />
<header>Ali de Jong</header>
<p>[email protected]</p>
</div>
</div>
<div id="mr-cards" class="card-holder">
<div class="card mid">
<img src="/images/officers/unknownmr.png" />
<header></header>
<p>[email protected]</p>
</div>
<div class="card front">
<img src="/images/officers/rob.jpg" />
<header>Rob Misasi</header>
<p>[email protected]</p>
</div>
</div>
<div id="sec-cards" class="card-holder middle">
<div class="card back">
<img src="/images/officers/unknownsec.png" />
<header></header>
<p>[email protected]</p>
</div>
<div class="card mid">
<img src="/images/officers/unknownsec.png" />
<header></header>
<p>[email protected]</p>
</div>
<div class="card front">
<img src="/images/officers/hannah.jpg" />
<header>Hannah Peeler</header>
<p>[email protected]</p>
</div>
</div>
<div class="card-holder">
<div class="card">
<img src="/images/officers/leela.jpg" />
<header>Leela Karunakaran</header>
<p>[email protected]</p>
</div>
</div>
<script>
new AnimOnScroll( document.getElementById( 'content' ), {
minDuration : 0.4,
maxDuration : 0.7,
viewportFactor : 0.2
} );
</script>
<script>
var isAnimating = false;
function cardSwap (num, evt) {
if(isAnimating) { return false; }
isAnimating = true;
switch(num) {
case 2:
var $front = $(this).children("div.front"),
$mid = $(this).children("div.mid");
$front.bind("animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd", function(){
$mid.removeClass("mid").addClass("front");
$front.unbind();
$front.removeClass("front").removeClass("card-rotateFall").addClass("mid").addClass("card-moveFromRight");
isAnimating = false;
});
$front.addClass("card-rotateFall");
break;
case 5:
var $front = $(this).children("div.front"),
$mid = $(this).children("div.mid"),
$back = $(this).children("div.back"),
$hid1 = $(this).children("div.hid1"),
$hid2 = $(this).children("div.hid2");
$front.bind("animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd", function(){
$mid.removeClass("mid").addClass("front");
$back.removeClass("back").addClass("mid");
$hid1.removeClass("hid1").addClass("back").addClass("card-moveFromRight");
$hid2.removeClass("hid2").addClass("hid1");
$front.unbind();
$front.removeClass("front").removeClass("card-rotateFall").addClass("hid2");
isAnimating = false;
});
$front.addClass("card-rotateFall");
break;
case 3:
var $front = $(this).children("div.front"),
$mid = $(this).children("div.mid"),
$back = $(this).children("div.back");
$front.bind("animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd", function(){
$mid.removeClass("mid").addClass("front");
$back.removeClass("back").addClass("mid");
$front.unbind();
$front.removeClass("front").removeClass("card-rotateFall").addClass("back").addClass("card-moveFromRight");
isAnimating = false;
});
$front.addClass("card-rotateFall");
break;
}
}
$(document).ready(function(){
$("#mp-cards").on('click', function() { cardSwap.call(this, 3); });
$("#ae-cards").on('click', function() { cardSwap.call(this, 5); });
$("#mr-cards").on('click', function() { cardSwap.call(this, 2); });
$("#sec-cards").on('click', function() { cardSwap.call(this, 3); });
});
</script>