-
Notifications
You must be signed in to change notification settings - Fork 9
/
59tp6p.html
96 lines (83 loc) · 3.45 KB
/
59tp6p.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
<html ng-app="ar">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.4/css/bootstrap.min.css" >
<link rel="stylesheet" href="index.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.2.7/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.4/lodash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.15.1/moment.js"></script>
<script src="https://cdn.rawgit.com/WebDevTmas/moment-round/master/src/moment-round.js"></script>
<script src="thread_babel.js"></script>
</head>
<body ng-controller="main as MC">
<div class="container">
<div class="row">
<div style="text-align: center">
<h1><a href="https://www.reddit.com/r/AdvancedRunning/comments/59tp6p/">The Weekender 10/28</a></h1>
<div class="lead">{{MC._comments.length}} comments</div>
</div>
</div>
<div class="row">
<div class="chart" id="archart"></div>
</div>
<div class="row">
<div class="col col-xs-6 col-md-2">
<div class="form-group">
<select
class="form-control"
ng-model="MC.sortBy"
ng-change="MC.sortComments()">
<option value="count">By Count</option>
<option value="score">By Total</option>
<option value="average">By Average</option>
<option value="max">By Max</option>
<option value="author">By User</option>
</select>
</div>
</div>
</div>
<div class="row">
<div class="col col-xs-12">
<table class="table table-hover">
<thead class="thead-inverse">
<tr>
<th>Rank</th>
<th></th>
<th>User</th>
<th>Comments</th>
<th>Total Score</th>
<th>Average</th>
<th>Max</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="comment in MC.comments"
class="clickable"
ng-click="MC.rowClicked(comment)">
<td ng-bind="$index + 1"></td>
<td>
<input type="checkbox"
ng-model="comment.checked"
ng-click="MC.checkClicked($event, comment)" />
</td>
<td ng-bind="comment.author" ></td>
<td ng-bind="comment.count"></td>
<td ng-bind="comment.score"></td>
<td ng-bind="comment.average | number:2"></td>
<td ng-click="$event.stopPropagation()">
<a ng-href="{{comment.maxlink}}" target="_blank">{{ comment.max }}</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.2.0/js/tether.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.4/js/bootstrap.min.js"></script>
</body>
</html>