Lint and clean-up

This commit is contained in:
Cohee
2024-04-15 00:39:15 +03:00
parent 0263be8c1f
commit 022c180b62
14 changed files with 22 additions and 31 deletions

View File

@ -10,26 +10,16 @@ export function showLoader() {
export async function hideLoader() {
//Sets up a 2-step animation. Spinner blurs/fades out, and then the loader shadow does the same.
$('#load-spinner').on('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function () {
//uncomment this as part of user selection enabling
//$('#loader-spinner')
//comment this instead
$(`#${ELEMENT_ID}`)
//only fade out the spinner and replace with login screen
.animate({ opacity: 0 }, 300, function () {
//when enabling user select, dont remove the loader container just yet
//comment this out
$(`#${ELEMENT_ID}`).remove();
});
});
//console.log('BLURRING SPINNER')
$('#load-spinner')
.css({
'filter': 'blur(15px)',
'opacity': '0',
});
//uncomment to make user selection live
//await populateUserList()
}