Skip to content

Commit

Permalink
hardcode scrolling script
Browse files Browse the repository at this point in the history
  • Loading branch information
Westwooo committed Sep 27, 2024
1 parent 1a7e511 commit ef8edc9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion docs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@

++++
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="../js/scroll.js"></script>
<script>
$(document).ready(function () {
// Handler for .ready() called.
var hash = $(location).attr('hash');
$('html, body').animate({
scrollTop: $(hash).offset().top - 64
}, 'slow');
});
</script>
++++

:sectnums:
Expand Down
10 changes: 9 additions & 1 deletion docs/recipes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

++++
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="../../js/scroll.js"></script>
<script>
$(document).ready(function () {
// Handler for .ready() called.
var hash = $(location).attr('hash');
$('html, body').animate({
scrollTop: $(hash).offset().top - 64
}, 'slow');
});
</script>
++++

:sectnums:
Expand Down

0 comments on commit ef8edc9

Please sign in to comment.