Update index.html
Browse files- index.html +29 -27
index.html
CHANGED
|
@@ -11,33 +11,7 @@
|
|
| 11 |
}
|
| 12 |
</style>
|
| 13 |
|
| 14 |
-
|
| 15 |
-
<script>
|
| 16 |
-
(function() {
|
| 17 |
-
const mask = document.createElement('div');
|
| 18 |
-
mask.id = 'global-loading-mask';
|
| 19 |
-
|
| 20 |
-
// 锁定样式,确保首次渲染与后续状态一致
|
| 21 |
-
mask.style.cssText = `
|
| 22 |
-
position: fixed !important;
|
| 23 |
-
inset: 0 !important;
|
| 24 |
-
background-color: #121212 !important;
|
| 25 |
-
z-index: 2147483647 !important;
|
| 26 |
-
display: flex;
|
| 27 |
-
flex-direction: column;
|
| 28 |
-
justify-content: center;
|
| 29 |
-
align-items: center;
|
| 30 |
-
`;
|
| 31 |
-
|
| 32 |
-
mask.innerHTML = `
|
| 33 |
-
<div style="width: 40px; height: 40px; border: 3px solid #333; border-top-color: #FF7F50; border-radius: 50%; animation: spin 1s linear infinite;"></div>
|
| 34 |
-
<div style="color: #888; margin-top: 16px; font-size: 10.px; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;">Waking up Studio...</div>
|
| 35 |
-
<style>@keyframes spin { 100% { transform: rotate(360deg); } }</style>
|
| 36 |
-
`;
|
| 37 |
-
|
| 38 |
-
document.documentElement.appendChild(mask);
|
| 39 |
-
})();
|
| 40 |
-
</script>
|
| 41 |
</head>
|
| 42 |
<body>
|
| 43 |
<div class="layout">
|
|
@@ -257,5 +231,33 @@
|
|
| 257 |
</div>
|
| 258 |
|
| 259 |
<script src="app.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 260 |
</body>
|
| 261 |
</html>
|
|
|
|
| 11 |
}
|
| 12 |
</style>
|
| 13 |
|
| 14 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
</head>
|
| 16 |
<body>
|
| 17 |
<div class="layout">
|
|
|
|
| 231 |
</div>
|
| 232 |
|
| 233 |
<script src="app.js"></script>
|
| 234 |
+
|
| 235 |
+
<!-- 全局 Loading 遮罩:在 JS 加载完成前锁定屏幕 -->
|
| 236 |
+
<script>
|
| 237 |
+
(function() {
|
| 238 |
+
const mask = document.createElement('div');
|
| 239 |
+
mask.id = 'global-loading-mask';
|
| 240 |
+
|
| 241 |
+
// 锁定样式,确保首次渲染与后续状态一致
|
| 242 |
+
mask.style.cssText = `
|
| 243 |
+
position: fixed !important;
|
| 244 |
+
inset: 0 !important;
|
| 245 |
+
background-color: #121212 !important;
|
| 246 |
+
z-index: 2147483647 !important;
|
| 247 |
+
display: flex;
|
| 248 |
+
flex-direction: column;
|
| 249 |
+
justify-content: center;
|
| 250 |
+
align-items: center;
|
| 251 |
+
`;
|
| 252 |
+
|
| 253 |
+
mask.innerHTML = `
|
| 254 |
+
<div style="width: 40px; height: 40px; border: 3px solid #333; border-top-color: #FF7F50; border-radius: 50%; animation: spin 1s linear infinite;"></div>
|
| 255 |
+
<div style="color: #888; margin-top: 16px; font-size: 10.px; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;">Waking up Studio...</div>
|
| 256 |
+
<style>@keyframes spin { 100% { transform: rotate(360deg); } }</style>
|
| 257 |
+
`;
|
| 258 |
+
|
| 259 |
+
document.documentElement.appendChild(mask);
|
| 260 |
+
})();
|
| 261 |
+
</script>
|
| 262 |
</body>
|
| 263 |
</html>
|