|
|
|
@ -9,8 +9,19 @@ $(document).ready(function() {
|
|
|
|
|
setupMobileMenu();
|
|
|
|
|
setupQuickReply();
|
|
|
|
|
configureNavbarHiding();
|
|
|
|
|
fixHeaderPadding();
|
|
|
|
|
|
|
|
|
|
$(window).on('resize', utils.debounce(configureNavbarHiding, 200));
|
|
|
|
|
$(window).on('resize', fixHeaderPadding);
|
|
|
|
|
|
|
|
|
|
function fixHeaderPadding() {
|
|
|
|
|
var env = utils.findBootstrapEnvironment();
|
|
|
|
|
if (env === 'sm' || env === 'xs' || env === 'md') {
|
|
|
|
|
$('#panel').css('padding-top', $('#header-menu').outerHeight(true));
|
|
|
|
|
} else {
|
|
|
|
|
$('#panel').css('padding-top', '');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function configureNavbarHiding () {
|
|
|
|
|
var navbarEl = $(".navbar-fixed-top");
|
|
|
|
|