Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
Minor fix for docs navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
bartkozal committed Oct 26, 2016
1 parent 1dc2713 commit 92c5c2f
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,11 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/smooth-scroll/10.1.0/js/smooth-scroll.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/tabby/11.1.0/js/tabby.min.js"></script>
<script>
var scrolled = false;

window.addEventListener("scroll", function() {
if (!scrolled) {
gumshoe.init({
selector: '.list-menu[data-gumshoe] a',
activeClass: 'is-active',
offset: 200
});
scrolled = true
}
}, false)
gumshoe.init({
selector: '.list-menu[data-gumshoe] a',
activeClass: 'is-active',
offset: 200
});

tabby.init({
toggleActiveClass: 'is-active'
Expand Down

0 comments on commit 92c5c2f

Please sign in to comment.