mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
47 lines
1.4 KiB
HTML
47 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" >
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>CodePen - 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="./style.css">
|
|
|
|
</head>
|
|
<body>
|
|
<!-- partial:index.partial.html -->
|
|
<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>
|
|
<!-- partial -->
|
|
<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="./script.js"></script>
|
|
|
|
</body>
|
|
</html>
|