Loading static/js/yalikejazz.mjs +0 −13 Changes for static/js/yalikejazz.mjs: 0 added lines, 13 removed lines. Original line number Diff line number Diff line Loading @@ -80,19 +80,6 @@ function initActionLinks() { // TODO Replace with something good-looking document.querySelectorAll("button[data-action]").forEach(button=>{ const handler = { "skip": function() { const exerciseIndexToSkipTo = parseInt(prompt(`Enter exercise number to skip to (from 0 to ${exercises.length-1}, inclusive)`), 10) if(isNaN(exerciseIndexToSkipTo)) { return } else if(currentState.completedExercises.includes(exerciseIndexToSkipTo)) { alert("Can't skip to already completed exercise!") } else if(!(exerciseIndexToSkipTo >= 0 && exerciseIndexToSkipTo <= exercises.length -1)) { alert(`Index must be between 0 and ${exercises.length-1}`) } else { currentState.exercise = exerciseIndexToSkipTo loadExercise(currentState.exercise) } }, "reset": function() { location.reload() }, Loading static/pooltest.html +0 −5 Changes for static/pooltest.html: 0 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -55,13 +55,8 @@ </div> </div> <p> Die Aufgaben gehen von #0 bis #<span id="lastExerciseIndex"></span>, einschließlich. </p> <h2>Optionen</h2> <ul> <li><button data-action="skip">Zu einer anderen Aufgabe springen</button></li> <li><button data-action="welcome-again">Willkommensnachricht erneut zeigen</button></li> <li><button data-action="hand-in">Abgeben</button></li> </ul> Loading Loading
static/js/yalikejazz.mjs +0 −13 Changes for static/js/yalikejazz.mjs: 0 added lines, 13 removed lines. Original line number Diff line number Diff line Loading @@ -80,19 +80,6 @@ function initActionLinks() { // TODO Replace with something good-looking document.querySelectorAll("button[data-action]").forEach(button=>{ const handler = { "skip": function() { const exerciseIndexToSkipTo = parseInt(prompt(`Enter exercise number to skip to (from 0 to ${exercises.length-1}, inclusive)`), 10) if(isNaN(exerciseIndexToSkipTo)) { return } else if(currentState.completedExercises.includes(exerciseIndexToSkipTo)) { alert("Can't skip to already completed exercise!") } else if(!(exerciseIndexToSkipTo >= 0 && exerciseIndexToSkipTo <= exercises.length -1)) { alert(`Index must be between 0 and ${exercises.length-1}`) } else { currentState.exercise = exerciseIndexToSkipTo loadExercise(currentState.exercise) } }, "reset": function() { location.reload() }, Loading
static/pooltest.html +0 −5 Changes for static/pooltest.html: 0 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -55,13 +55,8 @@ </div> </div> <p> Die Aufgaben gehen von #0 bis #<span id="lastExerciseIndex"></span>, einschließlich. </p> <h2>Optionen</h2> <ul> <li><button data-action="skip">Zu einer anderen Aufgabe springen</button></li> <li><button data-action="welcome-again">Willkommensnachricht erneut zeigen</button></li> <li><button data-action="hand-in">Abgeben</button></li> </ul> Loading