Skip to content

Commit

Permalink
fix Time line on quize page
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkitMourya12 committed May 19, 2024
1 parent 43559f7 commit 854d3ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion quiz_page/quiz.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ body{
bottom: 0px;
left: 0px;
height: 3px;
background: #007bff;
background: #fcad04;
}
section{
padding: 25px 30px 20px 30px;
Expand Down
6 changes: 3 additions & 3 deletions quiz_page/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ function startTimer(time){
}
}
function startTimerLine(time){
counterLine = setInterval(timer, 29);
counterLine = setInterval(timer, 100);
function timer(){
time += 1;
time += 4.9;
time_line.style.width = time + "px";
if(time > 549){
if(time > 745){
clearInterval(counterLine);
}
}
Expand Down

0 comments on commit 854d3ea

Please sign in to comment.