forked from sef-global/sef-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
team.html
224 lines (192 loc) · 8.22 KB
/
team.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<!DOCTYPE html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-167873271-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-167873271-1');
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Success of every organization depends on the team<br> and we got the 'right'
team">
<meta name="author" content="Sustainable Education Foundation">
<meta property="og:image" content="assets/img/team-header.svg">
<title>Meet Our Team | Sustainable Education Foundation</title>
<!-- Favicon -->
<link href="assets/img/brand/favicon.png" rel="icon" type="image/png">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" rel="stylesheet">
<!-- Icons -->
<link href="assets/vendor/nucleo/css/nucleo.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" rel="stylesheet">
<!-- Argon CSS -->
<link type="text/css" href="assets/css/argon.css?v=1.0.1" rel="stylesheet">
<!-- global CSS -->
<link type="text/css" href="assets/css/global-custom.css" rel="stylesheet">
</head>
<body style="font-family: 'Montserrat', sans-serif;">
<header class="header-global">
<!--nav bar goes here-->
<div id="navbar">
</div>
</header>
<section class="section pb-0">
<div class="container">
<h1 class="display-3 text-center mb-5" >Advisory Panel</h1>
<!--Profile cards goes here-->
<div id="advisoryPanel"></div>
<div class="row justify-content-center">
<button id="btnShowMore_advisoryPanel" class="btn btn-link btn-outline-white btn-info">SEE MORE</button>
</div>
</div>
</section>
<section class="section pb-0" style="background-color: #f8fdff">
<div class="container">
<h1 class="display-3 text-center mb-5" >External Collaborators</h1>
<!--Profile cards goes here-->
<div id="externalCollaborators"></div>
<div class="row justify-content-center">
<button id="btnShowMore_externalCollaborators" class="btn btn-link btn-outline-white btn-info">SEE MORE
</button>
</div>
</div>
</section>
<section class="section pb-0">
<div class="container">
<h1 class="display-3 text-center mb-5">Executive Committee</h1>
<!--Profile cards goes here-->
<div id="executiveCommitee"></div>
<div class="row justify-content-center">
<button id="btnShowMore_executiveCommitee" class="btn btn-link btn-outline-white btn-info">SEE MORE</button>
<button id="btnShowLess_executiveCommitee" class="btn btn-link btn-outline-white btn-info">SEE LESS</button>
</div>
</div>
</section>
<section class="section pb-0" style="background-color: #f8fdff">
<div class="container">
<h1 class="display-3 text-center mb-5" >Dev Team</h1>
<!--Profile cards goes here-->
<div id="techTeam"></div>
<div class="row justify-content-center">
<button id="btnShowMore_techTeam" class="btn btn-link btn-outline-white btn-info">SEE MORE</button>
</div>
</div>
</section>
<section class="section pb-0">
<div class="container">
<h1 class="display-3 text-center mb-5 ">Alumni</h1>
<!--Profile cards goes here-->
<div id="alumni"></div>
<div class="row justify-content-center">
<button id="btnShowMore_alumni" class="btn btn-link btn-outline-white btn-info mb-3">SEE MORE</button>
<button id="btnShowLess_alumni" class="btn btn-link btn-outline-white btn-info mb-3">SEE LESS</button>
</div>
</div>
</section>
<footer class="footer">
<div id="footer"></div>
<!--footer goes here -->
</footer>
</body>
<!-- Core -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.10.4/headroom.min.js"></script>
<!-- Optional JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/14.0.3/nouislider.min.js"></script>
<!-- Argon JS -->
<script src="assets/js/argon.js?v=1.0.1"></script>
<!--Mustache.js-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.3.0/mustache.min.js"></script>
<!-- Script for static navbar and footer -->
<script src="assets/js/navigation.js"></script>
<script type="text/html" id="templateTeam">
<div class="row">
{{#data}}
<div class="col-md-3 col-lg-3 mb-5">
<div class="px-4">
<div class="hover-profile-card">
{{#social}}
<a href="https://www.linkedin.com/in/{{linkedin}}" target="_blank">
<img src="assets/img/profiles/{{image}}"
class="rounded-circle img-center img-fluid shadow shadow-lg--hover imgHover"
>
</a>
<div class="imgIcon">
<a href="https://www.linkedin.com/in/{{linkedin}}" target="_blank"
class="btn btn-default btn-icon-only rounded-circle">
<i class="fab fa-linkedin"></i>
</a>
</div>
{{/social}}
</div>
<div class="pt-4 text-center">
<h5 class="title">
<span class="d-block mb-1">{{name}}</span>
<small class="h6 text-muted">{{description}}</small>
</h5>
</div>
</div>
</div>
{{/data}}
</div>
</script>
<script>
$(function () {
loadNavAndFooter('assets/content/static'); //relative path to content directory
loadProfiles(); // call function to load profiles
});
//function to load profile data
function loadProfiles() {
$.ajax({
type: 'get',
url: 'assets/content/json/team.json',
dataType: 'json',
success: function (payload) {
let advisoryPanel = payload.advisoryPanel;
let externalCollaborators = payload.externalCollaborators;
let executiveCommitee = payload.executiveCommitee;
let techTeam = payload.techTeam;
let designTeam = payload.designTeam;
let alumni = payload.alumni
loadData("advisoryPanel", advisoryPanel);
loadData("externalCollaborators", externalCollaborators);
loadData("executiveCommitee", executiveCommitee);
loadData("techTeam", techTeam);
loadData("designTeam", designTeam);
loadData("alumni", alumni);
}
});
}
function loadData(id, profiles) {
//mustache render - part one
let contentPartOne = Mustache.render($("#templateTeam").html(), {"data": profiles.slice(0, 8)});
//display first 8 profiles
$("#" + id).html(contentPartOne);
if (profiles.length >= 8) {
$("#btnShowLess_" + id).hide();
//hide button
$("#btnShowMore_" + id).click(function () {
let contentPartTwo = Mustache.render($("#templateTeam").html(), {"data": profiles.slice(8)});
$(contentPartTwo).appendTo("#" + id).hide().fadeIn(1000);
$("#btnShowMore_" + id).hide();
$("#btnShowLess_" + id).show();
});
$("#btnShowLess_" + id).click(function () {
$("#" + id).html(contentPartOne);
$("#btnShowMore_" + id).show();
$("#btnShowLess_" + id).hide();
});
} else {
//hide button
$("#btnShowMore_" + id).hide();
$("#btnShowLess_" + id).hide();
}
}
</script>
</html>