Loading static/js/yalikejazz.mjs +2 −2 Original line number Diff line number Diff line Loading @@ -41,9 +41,9 @@ function startExercise(exercise) { const cardEl = document.querySelector(`.exercise[data-exercise-index='${exercise.index}']`) exercise.markAsCurrent(currentState) exercise.onDescribed(description => cardEl.querySelector(".description").textContent = description) exercise.onDescribed((/** @type {string} */ description) => cardEl.querySelector(".description").textContent = description) exercise.onVerified( success => { (/** @type {boolean} */ success) => { if (success) { exercise.markAsSolved(currentState) displayAsSolved(cardEl) Loading Loading
static/js/yalikejazz.mjs +2 −2 Original line number Diff line number Diff line Loading @@ -41,9 +41,9 @@ function startExercise(exercise) { const cardEl = document.querySelector(`.exercise[data-exercise-index='${exercise.index}']`) exercise.markAsCurrent(currentState) exercise.onDescribed(description => cardEl.querySelector(".description").textContent = description) exercise.onDescribed((/** @type {string} */ description) => cardEl.querySelector(".description").textContent = description) exercise.onVerified( success => { (/** @type {boolean} */ success) => { if (success) { exercise.markAsSolved(currentState) displayAsSolved(cardEl) Loading