-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
296 lines (274 loc) · 12.3 KB
/
index.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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="University of Maryland - Bring Your Own Bioinformatics" />
<meta name="keywords" content="UMD, BYOB, bioinformatics, computational biology, research, genomics, transcriptomics, python, R" />
<title>University of Maryland - Bring Your Own Bioinformatics (UMD BYOB)</title>
<link rel='stylesheet' href='resources/css/theme-8bit-base.css' />
<link rel='stylesheet' href='resources/css/theme-8bit-spring.css' />
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
</head>
<body>
<div id='title-container'>
<!-- source: https://monoculus.blogspot.com/2012/08/8bit-icon-attack-standard.html -->
<img id='title-left-img' src='resources/img/MyComputerLaptop.png'
alt='computer' />
<span id='title-left'>UMD</span>
<span id='title-right'>BYOB</span>
<!-- source: https://www.gamenguide.com/articles/5329/20130226/minecraft-breaking-bad.htm -->
<!--<img id='title-right-img-a' src='resources/img/8bit_beaker-dark-c.png'-->
<!-- alt='science beaker' />-->
<img id='title-right-img-a' src='resources/img/8bit_beaker.png'
alt='science beaker' />
<!-- source: https://www.spreadshirt.com/beer-8bit-C3376A16153836#/ -->
<img id='title-right-img-b' src='resources/img/8bit_beer.png'
alt='beer mug' />
<div id='meeting-info'>Archive of NIH BYOB presentations.</div>
</div>
<!-- menu -->
<div id='menu'>
<a id='fall-2017-link' class='link selected' href='#fall-2017'>Fall 2017</a> |
<a id='spring-2016-link' class='link' href='#spring-2016'>Spring 2016</a> |
<a id='fall-2015-link' class='link' href='#fall-2015'>Fall 2015</a> |
<a id='spring-2015-link' class='link' href='#spring-2015'>Spring 2015</a> |
<a id='fall-2014-link' class='link' href='#fall-2014'>Fall 2014</a> |
<a id='spring-2014-link' class='link' href='#spring-2014'>Spring 2014</a> |
<a id='fall-2013-link' class='link' href='#fall-2013'>Fall 2013</a>
</div>
<!-- schedule -->
<div id='schedule'>
<div id='fall-2017' class='schedule-section' style='height: 375px;'>
<div class='schedule-header'>Schedule (Spring 2017)</div>
<ul></ul>
</div>
<div id='spring-2016' class='schedule-section' style='display:none;'>
<div class='schedule-header'>Schedule (Spring 2016)</div>
<ul></ul>
</div>
<div id='fall-2015' class='schedule-section' style='display:none;'>
<div class='schedule-header'>Schedule (Fall 2015)</div>
<ul></ul>
</div>
<div id='spring-2015' class='schedule-section' style='display:none;'>
<div class='schedule-header'>Schedule (Spring 2015)</div>
<ul></ul>
</div>
<div id='fall-2014' class='schedule-section' style='display:none;'>
<div class='schedule-header'>Schedule (Fall 2014)</div>
<ul></ul>
</div>
<div id='spring-2014' class='schedule-section' style='display:none;'>
<div class='schedule-header'>Schedule (Spring 2014)</div>
<ul></ul>
</div>
<div id='fall-2013' class='schedule-section' style='display:none;'>
<div class='schedule-header'>Schedule (Fall 2013)</div>
<ul></ul>
</div>
</div>
<!-- Footer -->
<div id='footer'>
<!-- Footer links -->
<div id='footer-links'>
<a class='link' href='mailto:[email protected]'>Contact</a> |
<a class='link' href='https://groups.google.com/forum/#!forum/umd-byob'>Mailing List</a> |
<a class='link' href='https://github.com/umd-byob/presentations'>Github</a>
</div>
<!-- Logos -->
<div id='footer-logos'>
<a href='https://www.umd.edu/'>
<img id='logo-umd' src='resources/img/umd-primary-dark.png'
alt='University of Maryland, College Park Logo' />
</a>
<a href='https://www.cbcb.umd.edu/'>
<img id='logo-cbcb' src='resources/img/new-cbcb-logo3_0-dark.png'
alt='UMD Center for Bioinformatics and Computational Biology logo' />
</a>
</div>
</div>
<!-- js -->
<script type='text/javascript'>
// Function to load schedule JSON
var loadSchedule = function (url, authors, container) {
// Schedule container
var talkDate, talkHTML,
dateHighlighted = false,
schedule = $(container).find("ul"),
now = new Date(),
today = parseInt(String(now.getMonth() + 1) +
String(now.getDate()), 10)
//.Load schedule
$.getJSON(url, function(talks) {
// Add to schedule
$.each(talks, function (i, item) {
var userURL = "#", itemURL = "#";
// Highlight date if it is next talk
talkDate = parseInt(item.date.replace("/", ""), 10);
if (!dateHighlighted && (talkDate >= today)) {
talkHTML = "<li id='current-date'>";
dateHighlighted = true;
} else {
talkHTML = "<li>"
}
// Entry HTML
talkHTML += "<time>" + item.date + "</time>";
// Include author if specified
if (authors[item.author]) {
// Presentation URL
if (typeof item.url !== "undefined") {
itemURL = item.url;
}
// Talk title
talkHTML += "<a href='" + itemURL + "'>" + item.title + "</a>";
// Room change if needed
//if (typeof item.room !== "undefined") {
// talkHTML += "<span class='room-change'> (" + item.room + ")</span>";
//}
// User homepage
if (typeof authors[item.author].github !== "undefined") {
userURL = "https://github.com/" + authors[item.author].github;
}
talkHTML += " | " + "<a href='" + userURL + "'>" +
item.author + "</a>";
} else {
// Style non-talk entries differently
talkHTML += item.title;
}
// Add schedule entry
talkHTML += "</li>";
schedule.append(talkHTML);
});
// Fix schedule width
/**
if (container == '#current') {
var scheduleWidth = schedule.width();
$(window).resize(function() {
var width = scheduleWidth / $("body").width() * 100;
$('#schedule').width(width + '%');
}).trigger('resize');
};*/
});
};
$(function () {
// Don't cache JSON results
//$.ajaxSetup({ cache: false });
// Toggle title image
if (Math.random() < 0.15) {
$("#title-right-img-a").hide()
$("#title-right-img-b").show()
}
// Load authors and schedule
$.ajax({
url: "json/authors.json",
success: function(authors) {
loadSchedule("json/schedule/spring-2017.json", authors, "#fall-2017");
loadSchedule("json/schedule/spring-2016.json", authors, "#spring-2016");
loadSchedule("json/schedule/fall-2015.json", authors, "#fall-2015");
loadSchedule("json/schedule/spring-2015.json", authors, "#spring-2015");
loadSchedule("json/schedule/fall-2014.json", authors, "#fall-2014");
loadSchedule("json/schedule/spring-2014.json", authors, "#spring-2014");
loadSchedule("json/schedule/fall-2013.json", authors, "#fall-2013");
},
error: function (jq, status, err) {
console.log("Error loading author information; check JSON syntax");
},
dataType: 'json'
});
// Schedule buttons
$("#fall-2017-link").click(function(e) {
//history.pushState(null, "BYOB: Fall 2017", "/#fall-2017");
$("#schedule .schedule-section").hide();
$("#schedule #fall-2017").show();
$(".link").removeClass('selected');
$(this).addClass('selected')
});
$("#spring-2016-link").click(function(e) {
//history.pushState(null, "BYOB: Fall 2014", "/#spring-2016");
$("#schedule .schedule-section").hide();
$("#schedule #spring-2016").show();
$(".link").removeClass('selected');
$(this).addClass('selected')
});
$("#fall-2015-link").click(function(e) {
//history.pushState(null, "BYOB: Fall 2014", "/#fall-2015");
$("#schedule .schedule-section").hide();
$("#schedule #fall-2015").show();
$(".link").removeClass('selected');
$(this).addClass('selected')
});
$("#spring-2015-link").click(function(e) {
//history.pushState(null, "BYOB: Fall 2014", "/#spring-2015");
$("#schedule .schedule-section").hide();
$("#schedule #spring-2015").show();
$(".link").removeClass('selected');
$(this).addClass('selected')
});
$("#fall-2014-link").click(function(e) {
//history.pushState(null, "BYOB: Fall 2014", "/#fall-2014");
$("#schedule .schedule-section").hide();
$("#schedule #fall-2014").show();
$(".link").removeClass('selected');
$(this).addClass('selected')
});
$("#spring-2014-link").click(function(e) {
//history.pushState(null, "BYOB: Spring 2014", "/#spring-2014");
$("#schedule .schedule-section").hide();
$("#schedule #spring-2014").show();
$(".link").removeClass('selected');
$(this).addClass('selected')
});
$("#fall-2013-link").click(function(e) {
//history.pushState(null, "BYOB: Fall 2013", "/#fall-2013");
$("#schedule .schedule-section").hide();
$("#schedule #fall-2013").show();
$(".link").removeClass('selected');
$(this).addClass('selected')
});
// Load schedule if set in location
if (location.hash == "#spring-2017") {
$("#schedule .schedule-section").hide();
$("#schedule #spring-2017").show();
$(".link").removeClass('selected');
$("#spring-2017-link").addClass('selected')
}
if (location.hash == "#spring-2016") {
$("#schedule .schedule-section").hide();
$("#schedule #spring-2016").show();
$(".link").removeClass('selected');
$("#spring-2016-link").addClass('selected')
}
if (location.hash == "#fall-2015") {
$("#schedule .schedule-section").hide();
$("#schedule #fall-2015").show();
$(".link").removeClass('selected');
$("#fall-2015-link").addClass('selected')
}
if (location.hash == "#spring-2015") {
$("#schedule .schedule-section").hide();
$("#schedule #spring-2015").show();
$(".link").removeClass('selected');
$("#spring-2015-link").addClass('selected')
}
if (location.hash == "#fall-2014") {
$("#schedule .schedule-section").hide();
$("#schedule #fall-2014").show();
$(".link").removeClass('selected');
$("#fall-2014-link").addClass('selected')
}
if (location.hash == "#spring-2014") {
$("#schedule .schedule-section").hide();
$("#schedule #spring-2014").show();
$(".link").removeClass('selected');
$("#spring-2014-link").addClass('selected')
}
if (location.hash == "#fall-2013") {
$("#schedule .schedule-section").hide();
$("#schedule #fall-2013").show();
$(".link").removeClass('selected');
$("#fall-2013-link").addClass('selected')
}
});
</script>
</body>
</html>