-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpeople.html
202 lines (181 loc) · 7.91 KB
/
people.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
<!DOCTYPE HTML>
<html>
<head>
<title>Labor and Automation in California Agriculture </title>
<link rel="icon" href="images/favicon.png">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body class="homepage is-preload">
<div id="page-wrapper">
<!-- Header -->
<header id="header">
<div class="logo container">
<div>
<h1 id="logo">People</h1>
</div>
</div>
</header>
<nav id="nav">
<a href="/index">
<img style="position:relative; z-index: 100000; margin: 0.1em 0em 0em .5em; float:left; height:55px; width:55px"
class="image featured" src="/images/LOGO_FC.png">
</a>
<ul>
<li> <a href="index">Home</a></li>
<li> <a href="people">People</a> </li>
<li> <a href="news">News & Events</a> </li>
<li><a href="discussion">Discussions</a></li>
</ul>
</nav>
<!-- <div
style="position:fixed;width:500px;height:40px;left:-75px;top:100px; transform: rotate(-45deg);z-index:10000;background-color:lightcoral;">
<h2 style="color:white;"> Site under construction!</h2>
</div> -->
<!-- Banner -->
<!-- <section id="banner">
<div class="content">
<h2>Why LACA?</h2>
<p>This MRPI will focus on food system resilience and the emergent role of human-centered agricultural
technology (agritech) </p>
<a href="index/#main" class="button scrolly">See Our Approach</a>
</div>
</section> -->
<!-- Main -->
<section id="main">
<div class="container">
<div class="row gtr-200">
<div class="col-12">
<section id="people">
</section>
<div id="people-modal" class="modal">
<img id="modal-image" class="image featured"
style="box-shadow: 5px 5px 25px -5px rgba(0, 0, 0, 0.45); margin:3em; margin-bottom: 1em; width:20%; float:left"
src="">
<h2 class="namePosition" id="modal-name" style="color:white">
</h2>
<br>
<h3 id="modal-title" style="color:white">
</h3>
<h3 id="modal-institution" style="color:white">
</h3>
<p id="modal-biography" style="margin:3em; color:white">
No Bio Found
</p>
</div>
<img style="width:100%;" src="images/logos.png" alt="" />
</div>
</div>
</div>
</section>
</div>
<!-- Footer -->
<footer id="footer">
<div class="container">
<div class="row gtr-200">
<div class="col-12">
<section id="contact">
<h2 class="major"><span>Contact us</span></h2>
<p>
PI: Thomas Harmon <br>
Professor, Civil & Environmental Engineering<br>
University of California, Merced<br>
<a href="mailto:laca@ucmerced.edu">laca@ucmerced.edu</a>
</p>
</section>
</div>
</div>
</div>
<!-- Copyright -->
<div id="copyright">
<ul class="menu">
<li>© 2021; CITRIS & Banatao Institute; All rights reserved</li>
</ul>
</div>
</div>
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/jquery.csv.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/js//participant.js"></script>
<script>
var data;
var modal = document.getElementById('people-modal');
modal.style.display = "none";
modal.onclick = function () { modal.style.display = "none"; window.location.hash = ""; }
function loadModal(id) {
if (id != '') {
modal.style.display = "block";
var logo = document.getElementById('modal-image');
logo.src = '/images/participants/' + id + '.jpg';
var name = document.getElementById('modal-name');
name.innerHTML = getInfo(id).FNAME + " " + getInfo(id).LNAME;
var title = document.getElementById('modal-title');
title.innerHTML = getInfo(id).TITLE;
var institution = document.getElementById('modal-institution');
institution.innerHTML = getInfo(id).INSTITUTION;
var biography = document.getElementById('modal-biography');
biography.innerHTML = getInfo(id).BIO + '<hr>';
}
}
$(function () {
$(window).on('hashchange', function (event) {
loadModal(window.location.hash.substring(1));
});
$.get("/people.csv").then(function (text, status, xhr) {
data = $.csv.toObjects(text);
for (var i = 0; i < data.length; i++) {
switch (data[i].ID) {
case "HEADER":
$("#people").append(
$.parseHTML(
'<section class="box highlight"><h2 class="major2">' +
'<span>' + data[i].LNAME + '</span></h2><div class="row">'
)
);
break;
default:
$("#people").append(
$.parseHTML(
// '<a id =' + data[i].ID + '>'+
'<div style="display:inline-block;width:20%;height:25em;padding:4px;vertical-align:top;">' +
'<section class="box feature">' +
'<a class="image featured" style="text-decoration: none;" href= "#' + data[i].ID + '">' +
'<img src="images/participants/' + data[i].ID + '.jpg" alt="" />' +
'<h2>' + data[i].FNAME + ' ' + data[i].LNAME + '</h2>' +
'<h5>' + data[i].TITLE + '</h5>' +
'<h5>' + data[i].INSTITUTION + '</h5>' +
'</a>' +
'</section>' +
'</div>'
)
);
break;
}
}
$("#people").append(
$.parseHTML(
'</section>'
)
);
});
// loadModal(window.location.hash.substring(1));
});
function getInfo(person) {
for (var i = 0; i < data.length; i++) {
if (data[i].ID == person) {
return data[i];
}
}
}
</script>
</body>
</html>