-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·82 lines (74 loc) · 2.6 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
<!DOCTYPE html>
<html ng-app="scorecardApp">
<head>
<title>Congressional Scorecard</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
</head>
<body>
<style type="text/css">
.member {
border: 1px solid;
margin-bottom: 10px;
}
.member > a {
display: block;
}
.member > a > span {
display: block;
}
.member.ng-enter {
transition: 1s linear all;
opacity: 0;
}
.member.ng-enter-stagger {
transition-delay: 0.1s;
transition-duration: 0s;
}
.member.ng-enter.ng-enter-active {
opacity: 1;
}
</style>
<link rel="stylesheet" href="js/bower_components/angular-loading-bar/build/loading-bar.min.css"/>
<!-- JS Scripts -->
<script src="js/bower_components/angular/angular.min.js"></script>
<script src="js/bower_components/angular-bindonce/bindonce.min.js"></script>
<script src="js/bower_components/angular-route/angular-route.min.js"></script>
<script src="js/bower_components/angular-animate/angular-animate.min.js"></script>
<script src="js/bower_components/angular-loading-bar/build/loading-bar.min.js"></script>
<script src="js/config.js"></script>
<script src="js/app.js"></script>
<div ng-controller="congressMemberController">
<div class="member" ng-repeat="member in members | filter:memberID">
<!-- @todo: ng-repeat 587 loops PER member div -->
<a ng-if="score.node.member_id === member.id" ng-repeat="score in scorecards" href="{{score.node.url}}">
<span class="name">
{{member.first_name}} {{member.last_name}}
</span>
<!-- house/senate filter use itemembers.district
if item has district, it is in the house, if not, senate -->
<span ng-if="chamber == member.district">
Senate
</span>
<span ng-if="chamber != member.district">
House
</span>
<span class="state">
{{member.state}}<span ng-if="member.district">-{{member.district}}</span>
</span>
<span class="party">
{{member.party}}
</span>
<span class="scores" ng-if="score.node.member_id === members.id">
<span class="annual">
{{score.node.annual_score}}
</span>
<span class="cumulative">
{{score.node.cumulative_score}}
</span>
</span>
</a>
</div>
</div>
</body>
</html>