Skip to content

Commit 3dcc58f

Browse files
committed
minor fixes
1 parent eaeef1c commit 3dcc58f

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

css/style.css

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ video {
157157
margin:40px auto;
158158
border-radius:15px;
159159
width:calc(50%);
160+
max-height:calc(75%);
160161
height:auto;
161162
}
162163
#box {

js/script.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -655,11 +655,13 @@ const shortenTextByPx = function(text, maxWidth) {
655655
};
656656
const startBarProgress = (progressBarId) => {
657657
const progressBar = document.getElementById(progressBarId);
658-
progressBar.style.width = "0";
659-
progressBar.style.transition = "width "+(basic.mid/1000)+"s linear";
660-
progressBar.style.width = "100%";
658+
progressBar.style.width = "0";
659+
progressBar.style.transition = "" + (basic.mid / 1000) + "s linear";
661660
setTimeout(() => {
662-
progressBar.style.transition = "none";
663-
664-
}, basic.mid);
661+
progressBar.style.width = "100%";
662+
}, 50);
663+
setTimeout(() => {
664+
progressBar.style.transition = "none";
665+
progressBar.style.width = "0";
666+
}, basic.mid);
665667
};

0 commit comments

Comments
 (0)