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

Commit

Permalink
Fix scrollspy links highlighting
Browse files Browse the repository at this point in the history
Fix #104
  • Loading branch information
bartkozal committed Jan 17, 2017
1 parent b9ea8e6 commit c30f279
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/html/partials/_navigation.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ul class="list-@@list" data-gumshoe>
<ul class="list-@@list">
<li><a href="#intro" data-scroll>Intro</a></li>
<li><a href="#quick-start" data-scroll>Quick Start</a></li>
<li><a href="#defaults" data-scroll>Defaults</a></li>
Expand Down
13 changes: 6 additions & 7 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<div class="container">
<div class="grid">
<div class="grid-item 1/5 compact-hidden">
<div class="navigation">
<div class="navigation" data-gumshoe-header data-gumshoe>
<include src="html/partials/_navigation.html" list="menu"></include>
</div>
</div>
Expand Down Expand Up @@ -45,14 +45,13 @@
</div>
</div>

<script src="//cdnjs.cloudflare.com/ajax/libs/gumshoe/3.3.1/js/gumshoe.min.js"></script>
<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 src="//cdnjs.cloudflare.com/ajax/libs/gumshoe/3.3.2/js/gumshoe.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/smooth-scroll/10.2.1/js/smooth-scroll.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/tabby/11.2.0/js/tabby.min.js"></script>
<script>
gumshoe.init({
selector: '.list-menu[data-gumshoe] a',
activeClass: 'is-active',
offset: 200
offset: 120,
});

tabby.init({
Expand All @@ -62,7 +61,7 @@
tabby.toggleTab('#npm');

smoothScroll.init({
offset: 32
offset: 30
});
</script>
<script>
Expand Down

0 comments on commit c30f279

Please sign in to comment.