shx-3d-render

main
Jan Umbach 2024-06-19 22:50:14 +02:00
parent b4ee02afc1
commit 7ccd351e28
1 changed files with 8 additions and 2 deletions

View File

@ -17,6 +17,10 @@
}
connectedCallback() {
resetStyles();
}
resetStyles() {
this.innerHTML = `
<div class="shx-loading-spinner-container">
{% render 'shx-logo', class_name:"shx-loading-spinner-mainIcon shx-loading-spinner-unclickable", width:"200px"%}
@ -25,14 +29,16 @@
`;
this.container = this.querySelector('.shx-loading-spinner-container');
}
}
show() {
if(this.hideTimeout) {
clearTimeout(this.hideTimeout);
}
this.container.style.display = "";
resetStyles();
setTimeout(() => {
this.container.classList.remove('shx-loading-spinner-container-done');
}, 0);