From fc28fd37dd4a5dbc7512ec5f22d90795b75a4bc5 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 4 Aug 2026 10:24:10 +0200 Subject: fix errors detected by eslint --- src/cockpit.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/cockpit.js') diff --git a/src/cockpit.js b/src/cockpit.js index bd4c860..9dea658 100644 --- a/src/cockpit.js +++ b/src/cockpit.js @@ -51,15 +51,15 @@ function pointClickHandler(color) { // TODO(muhq): Prefill the textarea with common reasons switch (color) { case "green": - textarea.style.background = "rgb(from green r g b / 20%)" + textarea.style.background = "rgb(from green r g b / 20%)"; textarea.value = ""; break; case "orange": - textarea.style.background = "rgb(from orange r g b / 20%)" + textarea.style.background = "rgb(from orange r g b / 20%)"; textarea.value = ""; break; case "red": - textarea.style.background = "rgb(from red r g b / 20%)" + textarea.style.background = "rgb(from red r g b / 20%)"; textarea.value = ""; break; } @@ -68,7 +68,7 @@ function pointClickHandler(color) { const coach = name; - let submit = function() { + const submit = function() { let change; switch (color) { case "green": @@ -88,7 +88,7 @@ function pointClickHandler(color) { textareaDiv.style.display = "none"; updateStudentInfo(); student.fetchGraduation().then(() => updateStudentGraduation() ); - } + }; // Use onEVENT to override any previous handler textarea.onkeydown = function(e) { if (e.shiftKey && e.key === "Enter") { @@ -327,9 +327,9 @@ async function updateStudentGraduation() { const successTd = document.createElement("td"); if (period.success) { - successTd.innerHTML = "Graduierung erfolgreich" + successTd.innerHTML = "Graduierung erfolgreich"; } else { - successTd.innerHTML = "Graduierung nicht erfolgreich" + successTd.innerHTML = "Graduierung nicht erfolgreich"; } tr.appendChild(successTd); @@ -363,4 +363,4 @@ window.onload = function() { DEFAULT_STUDENT_ICON = document.getElementById("student-info-icon").src; name = getName(); initCockpit(); -} +}; -- cgit v1.2.3