mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
💄 优化样式,增加可读性
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
* @file web utils parseAnno.ts
|
||||
* @description 解析游戏内公告数据
|
||||
* @author BTMuli<bt-muli@outlook.com>
|
||||
* @since Alpha v0.1.2
|
||||
* @since Alpha v0.1.5
|
||||
*/
|
||||
|
||||
import { decodeRegExp } from "./tools";
|
||||
|
||||
/**
|
||||
* @description 解析游戏内公告数据
|
||||
* @since Alpha v0.1.2
|
||||
* @since Alpha v0.1.5
|
||||
* @param {string} data 游戏内公告数据
|
||||
* @returns {string} 解析后的数据
|
||||
*/
|
||||
@@ -57,5 +57,8 @@ export function parseAnnoContent (data: string): string {
|
||||
a.target = "_blank";
|
||||
}
|
||||
});
|
||||
htmlBase.querySelectorAll("table").forEach((table) => {
|
||||
table.style.borderColor = "#546d8b";
|
||||
});
|
||||
return htmlBase.body.innerHTML;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user