From b7f8cfd92446c8107c75b4840c56d92304c16e78 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 27 Jun 2019 18:13:11 -0400 Subject: sidebar meta --- client/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client') 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 } -- cgit v1.2.3-70-g09d2