(message, progress)
| 226 | |
| 227 | // 更新提示框内容 |
| 228 | function updateProgressTip(message, progress) { |
| 229 | const tipContainer = document.getElementById('fe-helper-timing-tip') || createProgressTip(); |
| 230 | tipContainer.innerHTML = ` |
| 231 | <div>${message}</div> |
| 232 | ${progress ? `<div style="margin-top:8px;background:rgba(255,255,255,0.2);height:2px;border-radius:1px"> |
| 233 | <div style="width:${progress}%;height:100%;background:#4CAF50;border-radius:1px"></div> |
| 234 | </div>` : ''} |
| 235 | `; |
| 236 | } |
| 237 | |
| 238 | // 移除提示框 |
| 239 | function removeProgressTip() { |
no test coverage detected