Skip to content

Commit

Permalink
use anchor JS via CDN with SRI
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Apr 10, 2018
1 parent 2176614 commit 0dd5532
Show file tree
Hide file tree
Showing 33 changed files with 1 addition and 1,383 deletions.
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1><a href="{{ "/" | absolute_url }}">{{ site.title }}</a></h1>
</div>
{% endif %}
</div>
<script src="{{ "assets/javascript/anchor-js/anchor.min.js" | relative_url }}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script>
<script>anchors.add();</script>
{% if site.google_analytics %}
<script>
Expand Down
77 changes: 0 additions & 77 deletions assets/javascript/anchor-js/.eslintrc

This file was deleted.

2 changes: 0 additions & 2 deletions assets/javascript/anchor-js/.gitattributes

This file was deleted.

4 changes: 0 additions & 4 deletions assets/javascript/anchor-js/.npmignore

This file was deleted.

6 changes: 0 additions & 6 deletions assets/javascript/anchor-js/.travis.yml

This file was deleted.

Loading

0 comments on commit 0dd5532

Please sign in to comment.