diff options
-rw-r--r-- | src/Wordle.vue | 5 | ||||
-rw-r--r-- | src/components/Trial.vue | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/Wordle.vue b/src/Wordle.vue index 279f912..c391b4c 100644 --- a/src/Wordle.vue +++ b/src/Wordle.vue @@ -58,7 +58,10 @@ function submit() { xmlHttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { current.backendResponse = JSON.parse(xmlHttp.responseText); - if (current.backendResponse.is_in_dictionary && !current.backendResponse.is_solved) { + if ( + current.backendResponse.is_in_dictionary && + !current.backendResponse.is_solved + ) { current.trial = ""; } } diff --git a/src/components/Trial.vue b/src/components/Trial.vue index b400797..f1e79c4 100644 --- a/src/components/Trial.vue +++ b/src/components/Trial.vue @@ -1,9 +1,12 @@ <template> <td v-for="i in length" :key="i"> - <div class="letter" v-bind:class="{ - correct: colors[i-1]===2, - wrongPosition: colors[i-1]===1 - }"> + <div + class="letter" + v-bind:class="{ + correct: colors[i - 1] === 2, + wrongPosition: colors[i - 1] === 1, + }" + > {{ trial[i - 1] ? trial[i - 1] : " " }} </div> </td> |