Skip to content

Commit

Permalink
adding end page
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraselby committed Apr 17, 2024
1 parent b050318 commit 95ccb38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions questions/js/q10.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ $("#submitStudBtn").click(function () {
var result = answer.includes("10") || answer.includes("10.10");
if (result == true) {
M.toast({ html: 'Wooooooooo!!!' });
window.location.href = "end.html";
}
else if (answer === "") {
M.toast({ html: 'Answer cannot be empty' });
Expand Down

0 comments on commit 95ccb38

Please sign in to comment.