UNPKG

@lxlib/theme

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.1.

43 lines 3.14 kB
/** * @fileoverview added by tsickle * Generated from: src/services/preloader/preloader.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @return {?} */ export function preloaderFinished() { /** @type {?} */ const body = (/** @type {?} */ (document.querySelector('body'))); /** @type {?} */ const preloader = (/** @type {?} */ (document.querySelector('.preloader'))); body.style.overflow = 'hidden'; /** * @return {?} */ function remove() { // preloader value null when running --hmr if (!preloader) return; preloader.addEventListener('transitionend', (/** * @return {?} */ () => { preloader.className = 'preloader-hidden'; })); preloader.className += ' preloader-hidden-add preloader-hidden-add-active'; } ((/** @type {?} */ (window))).appBootstrap = (/** * @return {?} */ () => { setTimeout((/** * @return {?} */ () => { remove(); body.style.overflow = ''; }), 100); }); } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJlbG9hZGVyLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGx4bGliL3RoZW1lLyIsInNvdXJjZXMiOlsic3JjL3NlcnZpY2VzL3ByZWxvYWRlci9wcmVsb2FkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQSxNQUFNLFVBQVUsaUJBQWlCOztVQUN6QixJQUFJLEdBQUcsbUJBQUEsUUFBUSxDQUFDLGFBQWEsQ0FBQyxNQUFNLENBQUMsRUFBQzs7VUFDdEMsU0FBUyxHQUFHLG1CQUFBLFFBQVEsQ0FBQyxhQUFhLENBQUMsWUFBWSxDQUFDLEVBQUM7SUFFdkQsSUFBSSxDQUFDLEtBQUssQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFDOzs7O0lBRS9CLFNBQVMsTUFBTTtRQUNiLDBDQUEwQztRQUMxQyxJQUFJLENBQUMsU0FBUztZQUFFLE9BQU87UUFDdkIsU0FBUyxDQUFDLG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