From 44dfbd43b5efb514a3997508b9779c94084f67e1 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 3 Oct 2023 11:24:26 -0700 Subject: [PATCH] window.checkAnswer function --- theme/puzzle.mjs | 1 + 1 file changed, 1 insertion(+) 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)