diff options
| author | adamhrv <adam@ahprojects.com> | 2019-06-28 00:34:06 +0200 |
|---|---|---|
| committer | adamhrv <adam@ahprojects.com> | 2019-06-28 00:34:06 +0200 |
| commit | 12c5198dfc09695d7233b0513ed2be72d5bbed51 (patch) | |
| tree | 8956c25fea91b0defbd67bf05be03c3e1bbd2f8a /client/index.js | |
| parent | e59368b162df513f9eef6f4f83b63d6fb13a44b5 (diff) | |
| parent | b7f8cfd92446c8107c75b4840c56d92304c16e78 (diff) | |
merge
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 } |
