-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (47 loc) · 1.42 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
<!DOCTYPE html>
<html>
<head>
<title>Game</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="public/css/style.css">
<link rel="stylesheet" type="text/css" ref="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- vue -->
<!-- development version, includes helpful console warnings -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div class = "container">
<div class = "title">
<h1>Card Dealer</h1>
</div>
<div id='app'>
<button v-on:click="shuffle">Shuffle Deck</button>
</div>
<div id='app2'>
<div>
<button v-on:click="deal">Deal</button>
</div>
</br>
<div class="row winnerBox" v-if="showCards">
<h2>{{winner}}</h2>
</div>
<div class="row cardContainer" v-if="showCards">
<h4>Computer</h4>
<span v-for="card in hand1.cards" >
<img v-bind:src="card.image" class="cardImage">
</span>
</div>
<div class="row cardContainer" v-if="showCards">
<h4>Human</h4>
<span v-for="card in hand2.cards">
<img v-bind:src="card.image" class="cardImage">
</span>
</div>
<button v-on:click="showCards = !showCards">Show Cards</button>
</div>
</div>
<script type="text/javascript" src="public/js/src/deal.js"></script>
<script type="text/javascript" src="public/js/src/dealerApp.js"></script>
</body>
</html>