Skip to content

Commit

Permalink
update custom js
Browse files Browse the repository at this point in the history
Signed-off-by: cosmicBboy <[email protected]>
  • Loading branch information
cosmicBboy committed Apr 29, 2021
1 parent 045f280 commit 2c6eb97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/furo/assets/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ function main() {
setTimeout(function() {
sidebar = document.querySelector(".sidebar-scroll");
target = document.querySelector(".current-page");
sidebar.scrollTo(0, target.offsetTop + 200);
if (target) {
sidebar.scrollTo(0, target.offsetTop + 200);
}

jQuery(".sidebar-scroll").animate({opacity: 1.0}, 100);
}, 10);
Expand Down
2 changes: 1 addition & 1 deletion src/furo/theme/furo/static/scripts/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2c6eb97

Please sign in to comment.