More folders for all the things

This commit is contained in:
Vincent Fiduccia
2018-05-01 16:34:58 -07:00
parent 595a487af7
commit c8619cf3d5
128 changed files with 209 additions and 169 deletions
+5
View File
@@ -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);