Skip to content

Commit

Permalink
fix: 延长一点视频暂停后启动的时间,防止超星鬼畜。
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Apr 9, 2022
1 parent 80681aa commit 837d873
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/assets/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ ocs-panel {
box-shadow: 0px 2px 6px #848484;
}
ocs-panel .ocs-panel-header {
gap: 12px;
display: flex;
padding: 6px 4px;
border-bottom: 1px solid #c6c6c6;
}
ocs-panel .ocs-panel-header .title {
cursor: pointer !important;
font-size: 14px;
margin: 0;
margin: 0px 8px;
padding: 0;
white-space: nowrap;
}
Expand Down Expand Up @@ -108,6 +107,7 @@ ocs-panel.hide {
.ocs-setting-items input {
outline: none;
border: none;
width: 100%;
border-bottom: 1px solid #e4e4e4;
background: #fbfbfb;
border-radius: 4px;
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/assets/less/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ ocs-panel {
box-shadow: 0px 2px 6px #848484;

.ocs-panel-header {
gap: 12px;
display: flex;
padding: 6px 4px;
border-bottom: 1px solid #c6c6c6;

.title {
cursor: pointer !important;
font-size: 14px;
margin: 0;
margin: 0px 8px;
padding: 0;
white-space: nowrap;

Expand Down Expand Up @@ -121,6 +120,7 @@ ocs-panel {
input {
outline: none;
border: none;
width: 100%;
border-bottom: 1px solid #e4e4e4;
background: #fbfbfb;
border-radius: 4px;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/cx/study.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function mediaTask(setting: ScriptSettings["cx"]["video"], media: HTMLMediaEleme
var playFunction = function () {
// @ts-ignore
if (!media.ended && !media.__played__) {
media.play();
setTimeout(() => media.play(), 1000);
} else {
// @ts-ignore
media.__played__ = true;
Expand Down

0 comments on commit 837d873

Please sign in to comment.