diff --git a/theme/puzzle.mjs b/theme/puzzle.mjs index ef830a3..0e948d2 100644 --- a/theme/puzzle.mjs +++ b/theme/puzzle.mjs @@ -209,6 +209,7 @@ async function loadPuzzle(category, points) { async function init() { window.app = {} window.setanswer = (str => SetAnswer(str)) + window.checkAnswer = (str => window.app.puzzle.IsPossiblyCorrect(str)) for (let form of document.querySelectorAll("form.answer")) { form.addEventListener("submit", formSubmitHandler)