| | |
| | |
| |
|
| |
|
| | |
| | |
| |
|
| | export function updateLoadingStatus(message, progress) {
|
| | const loadingText = document.getElementById('loadingText');
|
| | const progressBar = document.getElementById('progressBar');
|
| |
|
| | if (loadingText) loadingText.textContent = message;
|
| | if (progressBar) progressBar.style.width = `${progress}%`;
|
| | }
|
| |
|
| | |
| | |
| |
|
| | export function hideLoading() {
|
| | const overlay = document.getElementById('loadingOverlay');
|
| | if (overlay) {
|
| | overlay.classList.add('hidden');
|
| | }
|
| | }
|
| |
|
| | |
| | |
| |
|
| | export function showLoading(message = 'Loading...') {
|
| | const overlay = document.getElementById('loadingOverlay');
|
| | if (overlay) {
|
| | overlay.classList.remove('hidden');
|
| | updateLoadingStatus(message, 0);
|
| | }
|
| | }
|
| |
|