-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresearch.html
63 lines (51 loc) · 1.94 KB
/
research.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
<!DOCTYPE HTML>
<html>
<head>
<title>Joyce Y. Chen</title>
<meta name="description" content="Joyce Y. Chen portfolio. MIT grad.">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" href="assets/main.css" />
<link href="images/favicon.ico" rel="shortcut icon">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,700,900" rel="stylesheet">
<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-107524296-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
gtag('config', 'UA-107524296-1');
</script>
</head>
<header></header>
<body>
<script src="assets/jquery.min.js"></script>
<script src="assets/image-data.js"></script>
<script src="assets/main.js"></script>
<script>
let subList = ["Media Lab", "TSL"];
loadHeader("research", subList);
loadFooter();
createSections(RESEARCH_IMAGES);
let sectionCount = [4, 7];
$(document).scroll(function () {
let position = $(document).scrollTop();
let sectionH = 570;
let numSection = [];
sectionCount.reduce(function(a,b,i) { return numSection[i] = a+b; },0);
if (position >= 0 && position <= sectionH*numSection[0]*0.95) {
$(".active").removeClass("active");
$("#subbar-1").addClass("active");
} else if (position >= sectionH*numSection[0]*0.95 && position <= sectionH*numSection[1]*0.95) {
$(".active").removeClass("active");
$("#subbar-2").addClass("active");
} else {
$(".active").removeClass("active");
}
});
document.getElementById("interface").id = "media lab";
document.getElementById("logo").id = "tsl";
</script>
</body>
<footer></footer>
</html>