Skip to content

Commit

Permalink
Added scroll adjustment for the anchor tags due to the nav height.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradsdavis authored and lincolnthree committed May 29, 2015
1 parent 4a07fea commit 5c76a38
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -115,11 +115,11 @@

<script type='text/javascript'>
$(window).on("hashchange", function () {
window.scrollTo(window.scrollX, window.scrollY - 100);
window.scrollTo(window.scrollX, window.scrollY - 50);
});
function offsetAnchor() {
if(location.hash.length !== 0) {
window.scrollTo(window.scrollX, window.scrollY - 100);
window.scrollTo(window.scrollX, window.scrollY - 50);
}
}
window.setTimeout(function() {
Expand Down

0 comments on commit 5c76a38

Please sign in to comment.