diff options
Diffstat (limited to 'client/index.js')
| -rw-r--r-- | client/index.js | 4 |
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 } |
