mirror of https://github.com/dirtbags/moth.git
window.checkAnswer function
This commit is contained in:
parent
59a6aef007
commit
44dfbd43b5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue