Skip to content

Commit

Permalink
Merge pull request #309 from Chandu6702/Reset-button
Browse files Browse the repository at this point in the history
feat: Reset button for max-score in quizzes
  • Loading branch information
JAYESHBATRA authored May 24, 2024
2 parents 8c09441 + 8c3aaa6 commit bed32d2
Show file tree
Hide file tree
Showing 18 changed files with 64 additions and 7 deletions.
1 change: 1 addition & 0 deletions Pages/Quizes/tests/button-1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ <h2 id="question">Question is loading...</h2>
<button id="submit">Submit</button>
</div>
</div>
<button id="reset_button" onclick="localStorage.clear('btn-7-max');window.location.reload()">Reset Max Score</button>

</div>
<div class="result">
Expand Down
6 changes: 6 additions & 0 deletions Pages/Quizes/tests/button-1/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -389,3 +389,9 @@ footer{
font-size: 14px;
color: #cacdd2;
}

#reset_button{
width: 200px;
border-radius: 10px;
margin-top: 10px;
}
1 change: 1 addition & 0 deletions Pages/Quizes/tests/button-2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ <h2 id="question">Question is loading...</h2>
<button id="submit">Submit</button>
</div>
</div>
<button id="reset_button" onclick="localStorage.clear('btn-7-max');window.location.reload()">Reset Max Score</button>

</div>
<div class="result">
Expand Down
5 changes: 5 additions & 0 deletions Pages/Quizes/tests/button-2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -389,3 +389,8 @@ footer{
font-size: 14px;
color: #cacdd2;
}
#reset_button{
width: 200px;
border-radius: 10px;
margin-top: 10px;
}
2 changes: 1 addition & 1 deletion Pages/Quizes/tests/button-3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2 id="question">Question is loading...</h2>
<button id="submit">Submit</button>
</div>
</div>

<button id="reset_button" onclick="localStorage.clear('btn-7-max');window.location.reload()">Reset Max Score</button>
</div>
<div class="result">
<div class="weak">
Expand Down
6 changes: 6 additions & 0 deletions Pages/Quizes/tests/button-3/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -401,3 +401,9 @@ footer{
font-size: 14px;
color: #cacdd2;
}

#reset_button{
width: 200px;
border-radius: 10px;
margin-top: 10px;
}
2 changes: 1 addition & 1 deletion Pages/Quizes/tests/button-4/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2 id="question">Question is loading...</h2>
<button id="submit">Submit</button>
</div>
</div>

<button id="reset_button" onclick="localStorage.clear('btn-7-max');window.location.reload()">Reset Max Score</button>
</div>
<div class="result">
<div class="weak">
Expand Down
6 changes: 6 additions & 0 deletions Pages/Quizes/tests/button-4/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -388,3 +388,9 @@ footer{
font-size: 14px;
color: #cacdd2;
}

#reset_button{
width: 200px;
border-radius: 10px;
margin-top: 10px;
}
2 changes: 1 addition & 1 deletion Pages/Quizes/tests/button-5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2 id="question">Question is loading...</h2>
<button id="submit">Submit</button>
</div>
</div>

<button id="reset_button" onclick="localStorage.clear('btn-7-max');window.location.reload()">Reset Max Score</button>
</div>
<div class="result">
<div class="weak">
Expand Down
6 changes: 6 additions & 0 deletions Pages/Quizes/tests/button-5/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -370,3 +370,9 @@ footer{
font-size: 14px;
color: #cacdd2;
}

#reset_button{
width: 200px;
border-radius: 10px;
margin-top: 10px;
}
2 changes: 1 addition & 1 deletion Pages/Quizes/tests/button-6/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2 id="question">Question is loading...</h2>
<button id="submit">Submit</button>
</div>
</div>

<button id="reset_button" onclick="localStorage.clear('btn-7-max');window.location.reload()">Reset Max Score</button>
</div>
<div class="result">
<div class="weak">
Expand Down
6 changes: 6 additions & 0 deletions Pages/Quizes/tests/button-6/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -370,3 +370,9 @@ footer{
font-size: 14px;
color: #cacdd2;
}

#reset_button{
width: 200px;
border-radius: 10px;
margin-top: 10px;
}
4 changes: 3 additions & 1 deletion Pages/Quizes/tests/button-7/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ <h2 id="question">Question is loading...</h2>
</li>
<button id="submit">Submit</button>
</div>
</div>
<br>
</div>
<button id="reset_button" onclick="localStorage.clear('btn-7-max');window.location.reload()">Reset Max Score</button>

</div>
<div class="result">
Expand Down
6 changes: 6 additions & 0 deletions Pages/Quizes/tests/button-7/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,9 @@ footer{
font-size: 14px;
color: #cacdd2;
}

#reset_button{
width: 200px;
border-radius: 10px;
margin-top: 10px;
}
2 changes: 1 addition & 1 deletion Pages/Quizes/tests/button-8/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2 id="question">Question is loading...</h2>
<button id="submit">Submit</button>
</div>
</div>

<button id="reset_button" onclick="localStorage.clear('btn-7-max');window.location.reload()">Reset Max Score</button>
</div>
<div class="result">
<div class="weak">
Expand Down
6 changes: 6 additions & 0 deletions Pages/Quizes/tests/button-8/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -370,3 +370,9 @@ footer{
font-size: 14px;
color: #cacdd2;
}

#reset_button{
width: 200px;
border-radius: 10px;
margin-top: 10px;
}
2 changes: 1 addition & 1 deletion Pages/Quizes/tests/button-9/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2 id="question">Question is loading...</h2>
<button id="submit">Submit</button>
</div>
</div>

<button id="reset_button" onclick="localStorage.clear('btn-7-max');window.location.reload()">Reset Max Score</button>
</div>
<div class="result">
<div class="weak">
Expand Down
6 changes: 6 additions & 0 deletions Pages/Quizes/tests/button-9/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,9 @@ footer{
font-size: 14px;
color: #111;
}

#reset_button{
width: 200px;
border-radius: 10px;
margin-top: 10px;
}

0 comments on commit bed32d2

Please sign in to comment.