Skip to content

Commit

Permalink
Merge pull request #1578 from AnkitMourya12/fix-issue-#1568
Browse files Browse the repository at this point in the history
fix the Time-line on quize page
  • Loading branch information
akshitagupta15june committed May 21, 2024
2 parents 3291295 + 854d3ea commit e743d6a
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 e743d6a

Please sign in to comment.