summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/script.js8
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();
}
}