Skip to content

Instantly share code, notes, and snippets.

@npofopr
Created April 3, 2019 08:48
Show Gist options
  • Save npofopr/d1cd2cbd811fdd8d9306de0a64a726ff to your computer and use it in GitHub Desktop.
Save npofopr/d1cd2cbd811fdd8d9306de0a64a726ff to your computer and use it in GitHub Desktop.
$(document).ready(function() {
if ($("#panel").length != 0) {
$('.header').css('position','relative');
$('.page-padding').css('padding-top','0');
} else {
$('.header').css('position','fixed');
$('.page-padding').css('padding-top','84px');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment