mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
Remove code that adjusts navigation margin (#419)
This commit is contained in:
parent
699c9fdf9f
commit
21a3f77b14
1 changed files with 0 additions and 16 deletions
|
@ -350,22 +350,6 @@ jQuery(document).ready(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
|
||||
sessionStorage.setItem(jQuery('body').data('url'), 1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue