-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
125 lines (110 loc) · 4.72 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
<!DOCTYPE html>
<html ng-app="pits-predictor">
<head>
<title>Pits Predictor</title>
<link rel="stylesheet/less" type="text/css" href="less/main.less" />
<script type="text/javascript">
var less = { env: "development" };
</script>
<script src="js/libs/less.js" type="text/javascript"></script>
</head>
<body class="container" ng-controller="AppController">
<header class="row">
<h1 class="span12"><img src="images/logo.svg" class="logo" />Pits Predictions</h1>
</header>
<div class="row">
<section class="span6">
<h3>Standing</h3>
<table class="table-condensed table-hover">
<thead>
<tr>
<td></td>
<td>Name</td>
<td class="text-right">League</td>
<td class="text-right">FAC</td>
<td class="text-right">LC</td>
<td class="text-right">CL</td>
<td class="text-right">TS</td>
<td class="text-right">SM</td>
<td class="text-right">POTY</td>
<td class="text-right">YPOTY</td>
<td class="text-right">Pts</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="standing in standings" ng-click="showDetails(standing)">
<td ng-bind="$index + 1" class="text-right"></td>
<td ng-bind="standing.player"></td>
<td ng-bind="standing.premierLeague" class="text-right"></td>
<td ng-bind="standing.faCup" class="text-right"></td>
<td ng-bind="standing.leagueCup" class="text-right"></td>
<td ng-bind="standing.championsLeague" class="text-right"></td>
<td ng-bind="standing.topScorer" class="text-right"></td>
<td ng-bind="standing.sackedManager" class="text-right"></td>
<td ng-bind="standing.playerOfTheYear" class="text-right"></td>
<td ng-bind="standing.youngPlayerOfTheYear" class="text-right"></td>
<td ng-bind="standing.total" class="text-right"></td>
</tr>
</tbody>
</table>
</section>
<section ng-show="selectedPlayer" class="span3 prediction">
<h3>{{ selectedPlayer.player }} - {{ selectedPlayer.total }}pts</h3>
<h5>Premier League - {{ selectedPlayer.premierLeague }}pts</h5>
<table class="table-condensed">
<tbody>
<tr ng-repeat="team in selectedPlayer.prediction.premierLeague">
<td ng-bind="$index + 1" class="text-right"></td>
<td ng-bind="team"></td>
</tr>
</tbody>
</table>
<h5>FA Cup</h5>
<p>{{ selectedPlayer.prediction.faCup }} - {{ selectedPlayer.faCup }}pts</p>
<h5>League Cup</h5>
<p>{{ selectedPlayer.prediction.leagueCup }} - {{ selectedPlayer.leagueCup }}pts</p>
<h5>Champions League</h5>
<p>{{ selectedPlayer.prediction.championsLeague }} - {{ selectedPlayer.championsLeague }}pts</p>
<h5>Top Scorer</h5>
<p>{{ selectedPlayer.prediction.topScorer }} - {{ selectedPlayer.topScorer }}pts</p>
<h5>Sacked Manager</h5>
<p>{{ selectedPlayer.prediction.sackedManager }} - {{ selectedPlayer.sackedManager }}pts</p>
<h5>Player of the Year</h5>
<p>{{ selectedPlayer.prediction.playerOfTheYear }} - {{ selectedPlayer.playerOfTheYear }}pts</p>
<h5>Young Player of the Year</h5>
<p>{{ selectedPlayer.prediction.youngPlayerOfTheYear }} - {{ selectedPlayer.youngPlayerOfTheYear }}</p>
</section>
<section class="span3">
<h3>Premier League</h3>
<table class="table-condensed">
<thead>
<tr>
<td></td>
<td>Team</td>
<td class="text-right">P</td>
<td class="text-right">GD</td>
<td class="text-right">Pts</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="team in currentWorld.premierLeague">
<td ng-bind="$index + 1" class="text-right"></td>
<td ng-bind="team.teamshort"></td>
<td ng-bind="team.played" class="text-right"></td>
<td ng-bind="team.difference" class="text-right"></td>
<td ng-bind="team.points" class="text-right"></td>
</tr>
</tbody>
</table>
</section>
</div>
<footer class="row">
</footer>
<script src="http://www.parsecdn.com/js/parse-1.2.8.min.js"></script>
<script src="js/libs/angular.min.js" type="text/javascript"></script>
<script src="js/libs/angular-resource.min.js" type="text/javascript"></script>
<script src="js/services.js" type="text/javascript"></script>
<script src="js/controllers.js" type="text/javascript"></script>
<script src="js/main.js" type="text/javascript"></script>
</body>
</html>