-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (40 loc) · 1.33 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
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="app">
<transition v-on:enter="enter" v-bind:css="false" appear>
<div class="butter-cheese-eggs" v-show="true">
<div v-for="(block, index) in grid" @click="select(index)">
<block :figure.sync="block.figure" />
</div>
</div>
</transition>
<transition v-on:enter="enterWin" v-bind:css="false">
<win v-show="winner" :click-handler="restart"></win>
</transition>
</div>
<template id="block">
<div class="block">
<transition v-on:enter="enter" v-bind:css="false">
<span v-show="figure > -1">{{ fig }}</span>
</transition>
</div>
</template>
<template id="win">
<div class="win">
<h2>Win</h2>
<!--<button @click="clickHandler">Play again</button>-->
</div>
</template>
<script src='https://cdnjs.cloudflare.com/ajax/libs/vue/2.0.3/vue.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.15.0/lodash.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/TweenMax.min.js'></script>
<script src="js/index.js"></script>
</body>
</html>