From 6e28e7607bd492c960f40260d1de64e26652e2ba Mon Sep 17 00:00:00 2001 From: Steven Thomas Date: Thu, 20 Mar 2014 09:31:21 -0700 Subject: Updated lookup so that it crosses word off list if found. --- js/wordsearch.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'js/wordsearch.js') diff --git a/js/wordsearch.js b/js/wordsearch.js index 222b94f..17b54d8 100644 --- a/js/wordsearch.js +++ b/js/wordsearch.js @@ -330,6 +330,15 @@ el.classList.add('ws-found'); } + + //Cross word off list. + var wordList = document.querySelector(".ws-words"); + var wordListItems = wordList.getElementsByTagName("li"); + for(var i=0; i"; + } + } } } -- cgit v1.2.3