diff options
author | cyfraeviolae <cyfraeviolae> | 2023-11-19 15:50:51 -0500 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2023-11-19 15:50:51 -0500 |
commit | 3ecdef568c31da8b333bf23af401306787062cd1 (patch) | |
tree | e95ed07cfb59da0a6634696c0f775b2801ad3c15 /static | |
parent | 02b99889178b5f7b1c54437e8f7f9d13d6b8da08 (diff) |
w
Diffstat (limited to 'static')
-rw-r--r-- | static/script.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/static/script.js b/static/script.js index dfe5fd8..c40298c 100644 --- a/static/script.js +++ b/static/script.js @@ -1,5 +1,8 @@ "use strict"; +var currentBoard = null; +var selected = {}; + function newGroup() { var keys = Object.keys(corpus); var i = keys.length * Math.random() << 0; @@ -33,9 +36,6 @@ function newBoard() { return groups; } -var currentBoard = null; -var selected = {}; - function chooseBox(box) { var clue = parseInt(box.getAttribute('x-clue')); if (box.classList.contains('selected')) { @@ -49,10 +49,8 @@ function chooseBox(box) { if (Object.keys(selected).length == 4) { var [ok, grp] = checkGuess(selected) if (ok) { - console.log('SUCCESS') consume(grp); } else { - console.log('FAIL') clear(); } } |