aboutsummaryrefslogtreecommitdiff
path: root/poll/public/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'poll/public/script.js')
-rw-r--r--poll/public/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/poll/public/script.js b/poll/public/script.js
index 18469c3..14103bd 100644
--- a/poll/public/script.js
+++ b/poll/public/script.js
@@ -17,7 +17,7 @@ dropdown.insertAdjacentHTML(
"beforeend",
'<option value="" selected disabled>' + (type === "teacher" ? "Lehrer" : "Schüler") + "/in auswählen...</option>",
);
-document.querySelector("legend").innerText = type === "teacher" ? "Lehrer-Ranking" : "Schüler-Ranking";
+document.querySelector("title").textContent = document.querySelector("legend").innerText = type === "teacher" ? "Lehrer-Ranking" : "Schüler-Ranking";
document.querySelector("p").innerText = "Welche/r " + (type === "teacher" ? "Lehrer/in" : "Schüler/in") + "...";
skip.addEventListener("click", () => getNext(parseInt(qid) + 1));