Remove code that adjusts navigation margin (#419)

This commit is contained in:
Adam Snyder 2020-09-10 09:21:20 -07:00 committed by GitHub
parent 699c9fdf9f
commit 21a3f77b14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -350,22 +350,6 @@ jQuery(document).ready(function() {
}); });
jQuery(window).on('load', function() { jQuery(window).on('load', function() {
function adjustForScrollbar() {
if ((parseInt(jQuery('#body-inner').height()) + 83) >= jQuery('#body').height()) {
jQuery('.nav.nav-next').css({ 'margin-right': getScrollBarWidth() });
} else {
jQuery('.nav.nav-next').css({ 'margin-right': 0 });
}
}
// adjust sidebar for scrollbar
adjustForScrollbar();
jQuery(window).smartresize(function() {
adjustForScrollbar();
});
// store this page in session // store this page in session
sessionStorage.setItem(jQuery('body').data('url'), 1); sessionStorage.setItem(jQuery('body').data('url'), 1);