-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
128 lines (109 loc) · 5.19 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
<!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="Carcassonne">
<meta name="keywords" content="Carcassonne">
<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/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>Carcassonne</title>
</head>
<body ng-app="myApp">
<!-- Begin page content -->
<main role="main" class="container">
<section class="jumbotron title-container text-center">
<div>
<h1>Carcassonne</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>
<div ng-controller="myController">
<div class="container">
<div class="row" ng-repeat="(key, value) in games | groupBy: 'GameID'">
<div class="col">
<div>
<h2 class="game">Game: {{ key }} {{ value[0].GameName }} ({{ value[0].GameDate | date:'shortDate' }})</h2>
<table class="sortable game">
<thead>
<tr>
<th>Player Name</th>
<th>Farms</th>
<th>Towns</th>
<th>Roads</th>
<th>Monasteries</th>
<th>Extra</th>
<th>TotalScore</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="game in value">
<td>{{ game.PlayerName }}</td>
<td>{{ game.Farms }}</td>
<td>{{ game.Towns }}</td>
<td>{{ game.Roads }}</td>
<td>{{ game.Monasteries }}</td>
<td>{{ game.Extra }}</td>
<td>{{ game.TotalScore }}</td>
</tr>
</tbody>
</table>
</div>
<br />
</div>
</div>
<div class="row">
<div class="col">
<!-- <h2>Count of Wins</h2>
<p>
<ul ng-repeat="(key, value) in games | countBy: 'winner'">
Player: {{ key }} {{ value }}
</ul>
</p>
-->
</div>
</div>
</div>
</div>
</main>
<footer class="footer">
<div class="container">
<span class="text-muted">Alex Hedley.</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="js/sorttable.js"></script>
<script src="js/app.js"></script>
</body>
</html>