<div class="registration-loader registration_hide">
<img id="registration-loader-logo" src="/assets/example-content/loading_with_logo.gif" loading="lazy" alt="loading" />
</div>
No notes defined.
/* No context defined. */
// eslint-disable-next-line import/no-cycle
import { currentPage } from '../registrationUtility';
const registrationloader = document.querySelector('#registration-loader-logo');
export const showRegistrationLoader = () => {
currentPage.isLoading = true;
if (registrationloader) {
registrationloader.parentElement.classList.remove('registration_hide');
}
};
export const hideRegistrationLoader = () => {
currentPage.isLoading = false;
if (registrationloader) {
registrationloader.parentElement.classList.add('registration_hide');
}
};
.registration-loader {
position: absolute;
justify-content: center;
align-items: center;
top: 0;
z-index: 10;
background: #004f9f;
width: 100%;
height: 100%;
display: flex;
#registration-loader-logo {
display: block;
}
}
<div class="registration-loader registration_hide">
<img id="registration-loader-logo" src="/assets/example-content/loading_with_logo.gif" loading="lazy" alt="loading" />
</div>