Skip to content

Commit

Permalink
在登录按钮显示完成状态。更新说明
Browse files Browse the repository at this point in the history
  • Loading branch information
Izumiko committed Feb 23, 2024
1 parent 669cd9b commit c3c07c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ sed -i 's#</body>#<script src="https://jellyfin-danmaku.pages.dev/ede.user.js" d

- 弹幕开关: 切换弹幕显示/隐藏状态
- 搜索弹幕: 手动输入信息匹配弹幕
- 临时增加弹幕源: 手动添加自定义弹幕源(用于番剧刚发布,弹弹Play还未收录弹幕源地址时使用,不会保存,也不会提交给弹弹Play
- 增加弹幕源: 手动添加自定义弹幕源(用于番剧刚发布,弹弹Play还未收录弹幕源地址时使用,如果已经登录,则会提交给弹弹Play
- 弹幕设置:
- 设置弹幕透明度 [0, 1]
- 设置弹幕速度 [100, 600]
Expand All @@ -132,6 +132,7 @@ sed -i 's#</body>#<script src="https://jellyfin-danmaku.pages.dev/ede.user.js" d
- 设置弹幕用户名过滤,支持选项: 哔哩哔哩, 巴哈姆特, 弹弹Play, 其他
- 简繁转换: 在原始弹幕/简体中文/繁体中文3种模式切换
- 日志开关: 开启/关闭调试日志输出
- 发送弹幕: 登录弹弹Play,并在播放界面发送弹幕

**除0级外均带有每3秒6条的垂直方向弹幕密度限制,高于该限制密度的顶部/底部弹幕将会被转为普通弹幕*

Expand Down
10 changes: 7 additions & 3 deletions ede.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@
</div>
<div style="display: flex;">
<span style="flex: auto;">账号:</span>
<input id="ddPlayAccount" placeholder="账号" value="" style="width: 80%;" />
<input id="ddPlayAccount" placeholder="账号" value="" style="width: 70%;" />
</div>
<div style="display: flex;">
<span style="flex: auto;">密码:</span>
<input id="ddPlayPassword" placeholder="密码" value="" style="width: 80%;" type="password" />
<input id="ddPlayPassword" placeholder="密码" value="" style="width: 70%;" type="password" />
</div>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 10px;">
Expand All @@ -300,7 +300,11 @@
if (account && password) {
const status = loginDanDanPlay(account, password);
if (status) {
document.getElementById('loginDialog').style.display = 'none';
document.getElementById('loginBtn').innerText = '登录✔️';
let sleep = new Promise(resolve => setTimeout(resolve, 1500));
sleep.then(() => {
document.getElementById('loginDialog').style.display = 'none';
});
modal.removeEventListener('keydown', event => event.stopPropagation(), true);
}
}
Expand Down

0 comments on commit c3c07c3

Please sign in to comment.