window.checkAnswer function

This commit is contained in:
Neale Pickett 2023-10-03 11:24:26 -07:00
parent 59a6aef007
commit 44dfbd43b5
1 changed files with 1 additions and 0 deletions

View File

@ -209,6 +209,7 @@ async function loadPuzzle(category, points) {
async function init() { async function init() {
window.app = {} window.app = {}
window.setanswer = (str => SetAnswer(str)) window.setanswer = (str => SetAnswer(str))
window.checkAnswer = (str => window.app.puzzle.IsPossiblyCorrect(str))
for (let form of document.querySelectorAll("form.answer")) { for (let form of document.querySelectorAll("form.answer")) {
form.addEventListener("submit", formSubmitHandler) form.addEventListener("submit", formSubmitHandler)