diff options
author | Adam Snyder <armsnyder@gmail.com> | 2020-09-10 19:21:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-10 19:21:20 +0300 |
commit | 21a3f77b1480106624d7ccafff770335121a347a (patch) | |
tree | 9a66fc9f5714f28195910d569aa68a56b46adfb1 /static | |
parent | 699c9fdf9f30cf1db6cf1f72f6bed5c3628aedf1 (diff) |
Remove code that adjusts navigation margin (#419)
Diffstat (limited to 'static')
-rw-r--r-- | static/js/learn.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/static/js/learn.js b/static/js/learn.js index 036952c..b0d199d 100644 --- a/static/js/learn.js +++ b/static/js/learn.js @@ -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); |