forked from adielsh/vuejs-cells-game
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (45 loc) · 1.85 KB
/
index.html
File metadata and controls
61 lines (45 loc) · 1.85 KB
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
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>vue - cells game</title>
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css'>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="app" >
<div class="before-screen" v-if="screen==0">
<h1 class="text-center">חפרפרות</h1>
<h5 class="text-center">המטרה: להספיק ללחוץ בזמן על התאים האדומים </h5>
<input type="button" class="btn btn-primary center" value="התחל משחק" @click="screen=1"></input>
</div>
<div class="before-screen" v-if="screen==2">
<h1 class="text-center">תם הזמן</h1>
<h5 class="text-center">תוצאתך: {{this.scores}} </h5>
<input type="button" class="btn btn-primary center" value="משחק חדש" @click="start"></input>
</div>
<div v-if="screen==1" class="game-screen container ">
<div class="row row-centered">
<div class="col-md-4"></div>
<div class="col-md-2 col-centered">
<select v-model="speed" class="form-control pull-right" dir="rtl">
<option value="1000" >קל</option>
<option value="750" >בינוני</option>
<option value="500">קשה</option>
</select>
</div>
<div class="col-md-2">
<h5 class="center">רמת משחק</h5>
</div>
</div>
<h5 class="text-center" >נקודות: {{scores}}</h5>
<div class="game-container center">
<square v-for="n in numCells" :active="chosen == n ? true : false" :cellNum="n" @clicked="clicked" ></square>
</div>
</div>
</div>
<script src='https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.10/vue.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js'></script>
<script src="js/index.js"></script>
</body>
</html>