-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
192 lines (160 loc) · 8.16 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Coup">
<meta name="keywords" content="coup">
<meta name="author" content="Alex Hedley">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/sticky-footer.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="css/jquery-ui.min.css"> -->
<link rel="stylesheet" href="css/jquery-ui.1.12.1.min.css">
<link rel="stylesheet" href="css/pivot.min.css">
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pivottable/2.13.0/pivot.min.css"> -->
<link rel="stylesheet" href="css/styles.css">
<link rel="shortcut icon" href="favicon.ico">
<!-- Fonts -->
<!-- <link href='https://fonts.googleapis.com/css?family=Orbitron' rel='stylesheet' type='text/css'> -->
<title></title>
</head>
<body ng-app="myApp">
<!-- Begin page content -->
<main role="main" class="container">
<section class="jumbotron title-container text-center">
<div>
<h1>Coup</h1>
<div class="row justify-content-md-center">
<div class="col-lg-8">
<div class="input-group search-bar">
<input type="text" class="form-control" ng-model='searchText' placeholder="Search for a game..." aria-label="Search">
<button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
</div>
</div>
</div>
</div>
</section>
<button class="btn btn-warning float-right" type="button" data-toggle="collapse" data-target="#image" aria-expanded="false" aria-controls="image">
Show/Hide
</button>
<div class="collapse" id="image">
<div class="row justify-content-md-center">
<img src="images/coup.jpg" width="500px" alt="Game" />
</div>
</div>
<br />
<div ng-controller="myController">
<div class="container">
<div class="row justify-content-md-center">
<div class="">
<table id="results" class="sortable">
<thead>
<tr>
<th>Date</th>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="game in games">
<td>{{game.date}}</td>
<td>{{game.name}}</td>
</tr>
</tbody>
</table>
</div>
</div>
<br />
<!-- <div class="row justify-content-md-center">
<div class="">
<div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li ng-repeat="set in sets" data-target="#carouselExampleCaptions" data-slide-to="{{$index}}"></li>
</ol>
<div class="carousel-inner">
<div ng-repeat="game in games" class="carousel-item" ng-class='{active:$first}'>
<img src="/coup/{{game.image}}" class="d-block w-100" alt="{{game.name}}">
<div class="carousel-caption d-none d-md-block">
<h5>{{game.name}}</h5>
<p>{{game.description}}</p>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleCaptions" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleCaptions" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
<br /> -->
<div class="row">
<div class="col">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="ui" ng-model="ui" ng-change="generatePivot()">
<label class="form-check-label" for="ui">UI</label>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div id="output" style="margin: 30px;">
<p>Table...</p>
</div>
</div>
</div>
<div class="row">
<div
ng-repeat="game in games | filter:searchText"
class="col-md-4"
style="margin-bottom: 50px;"
>
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">{{game.name}}</h5>
<p class="card-text">{{game.description}}</p>
<p class="card-text">{{game.date | date:'d MMM yyyy'}}</p>
<div ng-repeat="player in game.players">
<p>
{{player.name}}
<span ng-if="player.winner"><strong>Winner</strong></span>
<span class="badge badge-secondary">{{player.position}}</span>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<footer class="footer">
<div class="container">
<span class="text-muted"><a href="https://alexhedley.github.io/" target="_blank">Alex Hedley</a>.</span>
</div>
</footer>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="js/jquery-3.3.1.min.js" ></script>
<script>window.jQuery || document.write('<script src="js/jquery-slim.min.js"><\/script>')</script>
<script src="js/jquery-ui.min.js"></script>
<!-- <script src="js/jquery-ui.1.12.1.min.js"></script> -->
<!-- <script src="js/popper.min.js"></script> -->
<script src="js/bootstrap.min.js"></script>
<!-- <script src="js/jquery.pretty-text-diff.min.js"></script> -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.8/angular.min.js"></script> -->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.5/angular.min.js"></script> -->
<script src="js/angular.min.js"></script>
<!-- <script src="js/angular-filter.js"></script> -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/2.13.0/pivot.min.js"></script> -->
<script src="js/pivot.min.js"></script>
<script src="js/sorttable.js"></script>
<script src="js/app.js"></script>
</body>
</html>