diff --git a/composeExercise.js b/composeExercise.js index 4a008b7..94f07e7 100644 --- a/composeExercise.js +++ b/composeExercise.js @@ -76,27 +76,36 @@ var respondWindow = { var visualBar = {node: document.getElementById('visual')}; var inputBar = document.getElementById('input'); var questCharacter = {node: document.getElementById('quest')}; -var hintBar = {node: document.getElementById('hint')}; +var hintBar = { + node: document.getElementById('hint'), + hintState: [], + hideState: [], +}; hintBar.newHintState = function() { var answerAlphabetLength = questCharacter.node.title.length; - var hintState = []; - for (var i=0, l=answerAlphabetLength; i