hangman fix typing letters

This commit is contained in:
2020-04-05 07:37:27 +02:00
parent 355bc0386d
commit edf96000b0
2 changed files with 1 additions and 10 deletions

View File

@@ -38,10 +38,6 @@
</div>
</div>
</div>
<div class="game-input">
<label for="saisie" class="pb-1">Saisir vos lettres ici</label>
<input v-model="letterBox" id="saisie" type="text" @keyup="keyMessage">
</div>
</div>
</template>
@@ -69,6 +65,7 @@
this.selectedWord = this.words[Math.floor(Math.random() * this.words.length)].toLowerCase()
this.figureParts = this.$el.querySelectorAll('.figure-part')
this.displayWord()
window.addEventListener('keyup', this.keyMessage)
},
methods: {
keyMessage(e) {

View File

@@ -60,12 +60,6 @@
}
}
.game-input {
max-width: 30rem;
margin: 0 auto;
text-align: center;
}
.popup-container {
position: absolute;
width: calc(100% - 6rem);