update:优化音频测试页面的样式

This commit is contained in:
hrz
2025-11-16 01:26:10 +08:00
parent dc55f8d7ab
commit 80c7295784
11 changed files with 966 additions and 3775 deletions
+7 -7
View File
@@ -12,19 +12,19 @@ const logContainer = document.getElementById('logContainer');
let visualizerCanvas = document.getElementById('audioVisualizer');
// ota 是否连接成功,修改成对应的样式
export function otaStatusStyle (flan) {
if(flan){
document.getElementById('otaStatus').textContent = 'ota已连接';
export function otaStatusStyle(flan) {
if (flan) {
document.getElementById('otaStatus').textContent = 'OTA已连接';
document.getElementById('otaStatus').style.color = 'green';
}else{
document.getElementById('otaStatus').textContent = 'ota未连接';
} else {
document.getElementById('otaStatus').textContent = 'OTA未连接';
document.getElementById('otaStatus').style.color = 'red';
}
}
// ota 是否连接成功,修改成对应的样式
export function getLogContainer (flan) {
return logContainer;
export function getLogContainer(flan) {
return logContainer;
}
// 更新Opus库状态显示