You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
713 B
JavaScript

//region CSS
import './styles/app.scss';
//endregion
//region Bootstrap
import 'bootstrap';
//endregion
//region jQuery
import $ from 'jquery';
//endregion
//region Utils
import Utils from 'utils';
window.$ = $; // Declare $ as a global variable, accessible in all files
//endregion
//region Header & Footer fixe (overlay)
const headerHeight = Utils.getElementRealHeight($('header:not(.overlay-not-fixed)'));
const footerHeight = Utils.getElementRealHeight($('footer:not(.overlay-not-fixed)'));
$('#div-body').css(
{
'padding-top': headerHeight,
'padding-bottom': footerHeight,
},
);
$('html').css(
{
'scroll-padding-top': headerHeight,
},
);
//endregion