* 显示加载动画 * Requirements: 8.5
()
| 1419 | * Requirements: 8.5 |
| 1420 | */ |
| 1421 | function showLoading() { |
| 1422 | if (Elements.loading) { |
| 1423 | // 重置进度条 |
| 1424 | const progressBar = Elements.loading.querySelector('.loading-progress-bar'); |
| 1425 | if (progressBar) { |
| 1426 | progressBar.style.animation = ''; |
| 1427 | progressBar.style.width = ''; |
| 1428 | } |
| 1429 | |
| 1430 | // 移除隐藏和淡出类 |
| 1431 | Elements.loading.classList.remove('hidden'); |
| 1432 | Elements.loading.classList.remove('fade-out'); |
| 1433 | |
| 1434 | // 移除内容就绪类 |
| 1435 | if (Elements.app) { |
| 1436 | Elements.app.classList.remove('content-ready'); |
| 1437 | } |
| 1438 | } |
| 1439 | } |
| 1440 | |
| 1441 | /** |
| 1442 | * 获取当前视图状态 |
nothing calls this directly
no outgoing calls
no test coverage detected