X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/819787ff54335a68b34b7d9729f6d7e28870d8ac..e40afd69c59e1540f7c4a760a4eede70c063a3f7:/word/memory.js diff --git a/word/memory.js b/word/memory.js index 0e523a1..c3adfd4 100644 --- a/word/memory.js +++ b/word/memory.js @@ -26,6 +26,9 @@ class WordMemory { // lock both as correct this.turned.forEach(card => put(card, '.good![onclick]')); this.turned = []; + if (Array.from(this.form.children).every(card => card.classList.contains('good'))) { + put(this.form, '.good'); + } return; }