summaryrefslogtreecommitdiff
path: root/client/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-06-27 18:13:11 -0400
committerJules Laplace <julescarbon@gmail.com>2019-06-27 18:13:11 -0400
commitb7f8cfd92446c8107c75b4840c56d92304c16e78 (patch)
tree935cfef07f36d9026f813257b29983c3102740ff /client/index.js
parent7faaae33449f09e06fdcfdd4223498b3b9d75391 (diff)
sidebar meta
Diffstat (limited to 'client/index.js')
-rw-r--r--client/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/index.js b/client/index.js
index c72fd02c..e0f7d270 100644
--- a/client/index.js
+++ b/client/index.js
@@ -125,7 +125,7 @@ function buildWaypoints() {
if (!element) return null
let waypoint = new Waypoint({
element,
- handler: function(direction) {
+ handler: direction => {
if (direction === 'down') {
document.body.classList.add('scrolled')
} else {
@@ -151,6 +151,8 @@ function main() {
active = 'about'
} else if (href.match('datasets')) {
active = 'datasets'
+ } else if (href.match('research')) {
+ active = 'research'
} else {
active = href
}