Change some item

This commit is contained in:
Starlight-0208 2022-12-14 16:10:56 +08:00
parent 996596e672
commit a4be9ea019
2 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ TODO
* [ ] 不确定能否完成 ———— 放弃HTML自带audio标签样式重写播放控制器UI工程量巨大 * [ ] 不确定能否完成 ———— 放弃HTML自带audio标签样式重写播放控制器UI工程量巨大
* [ ] Bug: 在歌曲检索的时候列表高度莫名其妙变高了,需要更正。 * [ ] Bug: 在歌曲检索的时候列表高度莫名其妙变高了,需要更正。
* [x] TitleControl的Activate机制优化自动与StartLoop绑定。**(正在测试中)** * [x] TitleControl的Activate机制优化自动与StartLoop绑定。**(正在测试中)**
* [x] 更改一下循环逻辑,在结尾增加一定空格 **(勉强能用,需要修正)**
--- ---
Changelog: Changelog:

View File

@ -54,7 +54,7 @@ class TitleStat{
this.noScrollTitle(); this.noScrollTitle();
} else { } else {
window.userdefines_title = { window.userdefines_title = {
"TempTitle": this.TargetTitle, "TempTitle": this.TargetTitle + " ",
} }
this.GlobalInterval = setInterval(this.scorllTheTitle, this.SCROLL_SPEED); this.GlobalInterval = setInterval(this.scorllTheTitle, this.SCROLL_SPEED);
} }
@ -107,7 +107,7 @@ window.onblur = () => {
// document.title = "Song!"; // document.title = "Song!";
// TitleControl.setTargetTitle("Song!") // TitleControl.setTargetTitle("Song!")
console.log("您已离开播放器!"); console.log("您已离开播放器!");
TitleControl.setScrollSpeed(2000); TitleControl.setScrollSpeed(500);
TitleControl.setTargetTitle(document.getElementById("nowplay").innerHTML); TitleControl.setTargetTitle(document.getElementById("nowplay").innerHTML);
TitleControl.startLoop(); TitleControl.startLoop();
} }