Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyEye-FAST committed Jul 24, 2024
1 parent f17e1bf commit ae13608
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions static/js/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ $(document).ready(() => {
const correctChar = translationSegments[hintedIndex];
const $hintedBox = $(".box").eq(hintedIndex);

if ($hintedBox.hasClass("exist")) {
$hintedBox.removeClass("exist");
}

$hintedBox
.text(correctChar)
.data("hint", correctChar)
Expand Down Expand Up @@ -308,8 +312,9 @@ $(document).ready(() => {

$("#restartButton").click(() => {
const lValue = currentUrl.searchParams.get("l");
window.location.href = `../quiz/${randomCode}${lValue ? `?l=${lValue}` : ""
}`;
window.location.href = `../quiz/${randomCode}${
lValue ? `?l=${lValue}` : ""
}`;
});

const $copyButton = $("#copy-button");
Expand Down

0 comments on commit ae13608

Please sign in to comment.