mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 20:48:11 +00:00
More folders for all the things
This commit is contained in:
@@ -222,6 +222,11 @@ const bootstrapScrollSpy = function () {
|
||||
let $class = 'sticky';
|
||||
let $el = $('.toc-container');
|
||||
let $watch = $('.offset-watch');
|
||||
|
||||
if ( !$watch.length ) {
|
||||
return;
|
||||
}
|
||||
|
||||
let scrollTop = $(window).scrollTop();
|
||||
let elementOffset = $watch.offset().top;
|
||||
let distance = (elementOffset - scrollTop);
|
||||
|
||||
Reference in New Issue
Block a user