Skip to content

Instantly share code, notes, and snippets.

@KamuelaFranco
Last active November 26, 2015 21:07
Show Gist options
  • Save KamuelaFranco/90cfe1911490773124d0 to your computer and use it in GitHub Desktop.
Save KamuelaFranco/90cfe1911490773124d0 to your computer and use it in GitHub Desktop.
document.addEventListener('DOMContentLoaded', function () {
var extraPadding = 65;
var rmBottom = document.getElementsByClassName('rm-bottom')[0];
var stickSide = document.querySelector('div#stick_side');
stickSide.style.paddingBottom = String(rmBottom.clientHeight+extraPadding) + "px";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment