added notification about start-game in saper

This commit is contained in:
Kostya
2024-01-21 00:38:23 +03:00
parent 041f0c19e4
commit 6bbd7e0195
2 changed files with 17 additions and 2 deletions

View File

@@ -274,6 +274,14 @@ input[type="number"]::-webkit-outer-spin-button {
/* Saper Game */ /* Saper Game */
.start-game {
position: absolute;
top: 15%;
left: 45%;
background: #000;
padding: 20px;
}
.saper-game { .saper-game {
margin: -2.75% 0 0 5.1%; margin: -2.75% 0 0 5.1%;
} }

View File

@@ -126,6 +126,9 @@
</div> </div>
</section> </section>
</div> </div>
<div class="start-game" v-if="ValidationPlay.startGame === true">
<h2>Игра началась!</h2>
</div>
</template> </template>
<script> <script>
@@ -163,7 +166,8 @@ export default {
PercentageGameSteps: [], PercentageGameSteps: [],
ValidationPlay: { ValidationPlay: {
CrystalValidate: false, CrystalValidate: false,
DiamondValidate: false DiamondValidate: false,
startGame: false,
}, },
modules: [ Navigation ] modules: [ Navigation ]
} }
@@ -219,7 +223,10 @@ export default {
this.errorPlayButton() this.errorPlayButton()
} }
else { else {
console.log('yes') this.ValidationPlay.startGame = true
setTimeout(() => {
this.ValidationPlay.startGame = false
}, 1500)
} }
}, },
validationCheck() { validationCheck() {