Skip to content

Commit

Permalink
Add AnchorJS to homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert committed Feb 3, 2016
1 parent 315c956 commit 8ab24a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anchors.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
anchors.options = {
placement: 'right',
visible: 'touch'
};
anchors.add('h2,h3,h4,h5,h6');
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,7 @@ <h2 id="about">About</h2>
</footer>
</div>
<script async src="ga.js"></script>
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/anchorjs/3.0.0/anchor.min.js" integrity="sha384-/u+jACBfKbiyZY8/EuEXH/XE/uihTXgvFlQs//rfYx3oNN5ZGi8O9VtikiuNBgAE"></script>
<script src="anchors.js"></script>
</body>
</html>

0 comments on commit 8ab24a1

Please sign in to comment.