-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (68 loc) · 2.27 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<title>Vuejs Memory Game</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/normalize.min.css" rel="stylesheet">
<link href="css/skeleton.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="row">
<div class="six columns offset-by-three">
<header>
<h2>Vuejs Memory Game </h2>
<span>Greatings, Shall we play a game?</span><br>
<span>Re-type the number you see below. Ez right?</span>
<br>
<br>
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
</header>
</div>
</div>
<div id="app">
<div class="row">
<div class="twelve columns">
<div class="six columns offset-by-three">
<div class="six columns">
<h5>Level</h5>
<span>{{level}} - {{sublevel}}</span>
</div>
<div class="six columns wrong">
<h5>Wrong</h5>
<span>{{errorCount}} / 3</span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="twelve columns">
<div class="six columns offset-by-three number">
***********************************
<h3 id="number" v-bind:class={errortext:wrongFeedback}>{{randomNum}}</h3>
***********************************
<br>
<br>
<br>
<div v-if="!gameEnd">
<label for="number"><h5>Number is ?</h5></label>
<input v-bind:class="{error: wrongFeedback}" type="text" name="number" value="" v-model.number="number" v-on:focus="start"
v-on:keyup.13="nextNumber">
</div>
<transition name="bounce">
<div v-if="gameEnd">
<h5 class="errortext">Nice Try, Try Again</h5><br>
<button class="button-primary" @click="restartGame">Restart Game</button>
</div>
</transition>
</div>
</div>
</div>
</div>
</div>
<script src="libs/vue.js"></script>
<script src="js/game.js"></script>
</body>
</html>