blob: 1bfa8b3cd8bb481874d861382b1f2c15f1a0b74d (
plain) (
tree)
|
|
import * as styleMenu from "./style-menu";
import * as detailsHelper from "./details-helper";
import * as quickJump from "./quick-jump";
function onDomReady(callback: () => void) {
if (document.readyState === 'interactive') {
callback();
} else {
document.addEventListener('readystatechange', () => {
if (document.readyState === 'interactive') {
callback();
}
});
}
}
onDomReady(() => {
document.body.classList.add('js-enabled');
styleMenu.init();
quickJump.init();
detailsHelper.init();
});
|