MCPcopy Create free account
hub / github.com/cutedCha/noteBoook / showLoading

Function showLoading

js/app.js:1421–1439  ·  view source on GitHub ↗

* 显示加载动画 * Requirements: 8.5

()

Source from the content-addressed store, hash-verified

1419 * Requirements: 8.5
1420 */
1421function 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 * 获取当前视图状态

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected