Skip to content

Commit

Permalink
Fix #11
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyEye-FAST committed Jul 13, 2024
1 parent 6564ab5 commit 363a90a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions static/js/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ $(document).ready(function () {
});

$(document).ready(function () {
$('#restartButton').click(function () {
window.location.href = `../quiz/${randomCode}`;
});

var currentUrl = window.location.href;
var match = currentUrl.match(/\/([^\/?#]+)[\/?#]?$/);
var lastSegment = match ? match[1] : "";
Expand Down

0 comments on commit 363a90a

Please sign in to comment.