add fruit words in dic

This commit is contained in:
2020-04-04 19:55:53 +02:00
parent 6bfc0bb064
commit 355bc0386d
2 changed files with 12 additions and 3 deletions

View File

@@ -27,10 +27,10 @@
<div class="word" v-html="wordEl"></div>
</div>
<div v-if="notification" class="notification-container" id="notification-container">
<div v-if="notification" class="notification-container">
<p>Vous avez déjà saisie cette lettre.</p>
</div>
<div v-if="popup" class="popup-container" id="popup-container">
<div v-if="popup" class="popup-container">
<div class="popup">
<h2>{{ finalMessage }}</h2>
<button id="play-button" @click="playAgain">Rejouer</button>
@@ -46,11 +46,13 @@
</template>
<script>
import json from './dict.json'
export default {
name: "Hangman",
data: function () {
return {
words: ['pimprenelle', 'culcul', 'milo', 'Prout'],
words: json['fruits'],
letterBox: '',
figureParts: [],
correctLetters: [],