Commit f8d30e01 authored by Jakob Moser's avatar Jakob Moser
Browse files

Show German alert messages

parent f6e37053
Loading
Loading
Loading
Loading
+3 −3
Changes for static/js/yalikejazz.mjs: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -64,13 +64,13 @@ function startExercise(exerciseIndex) {
                const nextExerciseIndex = findNextUnsolvedExerciseIndex(exerciseIndex)

                if (nextExerciseIndex === null) {
                    alert("You successfully completed the pool test! You can now hand in :)")
                    alert("Du hast den Pooltest erfolgreich abgeschlossen! Du kannst jetzt abgeben :)")
                } else {
                    startExercise(nextExerciseIndex)
                }

            } else {
                alert("You failed :( Reset the VM and try again.")
                alert("Das war nicht richtig :( Klicke auf „Aufgabe neu beginnen“ und probiere es noch einmal.")
            }
        }
    )
@@ -87,7 +87,7 @@ function initActionLinks() {
    document.querySelectorAll("[data-action]").forEach(el => {
        const handler = {
            "hand-in": function () {
                alert("Please send this token to GT: " + getHandInToken())
                alert("Bitte schreibe eine Mail an die GT mit dem folgenden Token als Inhalt: " + getHandInToken())
            },
            "begin": function () {
                document.body.classList.remove("overlay-shown")