forked from Esri/my-congress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
257 lines (239 loc) · 10.9 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../assets/ico/favicon.ico">
<title>My Congress | 113 United States Congress | Esri</title>
<!-- CSS -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="http://js.arcgis.com/3.8/js/esri/css/esri.css">
<link href="assets/css/animate.css" rel="stylesheet">
<link href="assets/css/nprogress.css" rel="stylesheet">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,300,400,700"></link>
<link href="assets/css/style.css" rel="stylesheet">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-49907494-1', 'esri.github.io');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="navbar navbar-fixed-top navbar-default" role="navigation">
<div id="header">
<h3>113th United States Congress</h3>
</div>
<div id="header-search">
<form role="search">
<div class="form-group">
<input type="text" class="form-control" id="search-reps" placeholder="Find Your Representative(s) by Name or Zipcode">
<button id="location-btn" type="button" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-map-marker"></span> My Location
</button>
</div>
</form>
</div>
</div>
<div id="map-container">
<div id="map">
<div id="hoverinfo"></div>
<div id="legend">
<div class="col-md-4 col-xs-4 col-sm-4" id="party-dem"></div>
<div class="col-md-8 col-xs-8 col-sm-8">Democrat</div>
<div class="col-md-4 col-xs-4 col-sm-4" id="party-gop"></div>
<div class="col-md-8 col-xs-8 col-sm-8">Republican</div>
<div class="checkbox col-md-12 col-xs-12 col-sm-12">
<label>
<input type="checkbox" id="style-by-count"> By District Committee Count
</label>
</div>
<div id="by-count-container">
<h6>Democrat Controlled Districts</h6>
<div class="col-md-3 col-xs-3 col-sm-3 color" style="background:#eff3ff"></div>
<div class="col-md-3 col-xs-3 col-sm-3 color" style="background:#bdd7e7"></div>
<div class="col-md-3 col-xs-3 col-sm-3 color" style="background:#6baed6"></div>
<div class="col-md-3 col-xs-3 col-sm-3 color" style="background:#2171b5"></div>
<h6>Republican Controlled Districts</h6>
<div class="col-md-3 col-xs-3 col-sm-3 color" style="background:#fee5d9"></div>
<div class="col-md-3 col-xs-3 col-sm-3 color" style="background:#fcae91"></div>
<div class="col-md-3 col-xs-3 col-sm-3 color" style="background:#fb6a4a"></div>
<div class="col-md-3 col-xs-3 col-sm-3 color" style="background:#cb181d"></div>
<h6 id="key-code"> 1 ← #Committees → 10 </h6>
</div>
</div>
</div>
<div id="legislators">
<div class="container">
<div class="animated bounceInUp legislator col-md-4 col-sm-4">
<div class="legislator-inner legislator-inner-party-border">
<div class="media">
<span class="pull-left">
<img class="media-object" src="" alt="">
<span class="glyphicon glyphicon-user"></span>
</span>
<div class="media-body">
<h4 class="media-heading"></h4>
<div class="col-md-7 col-xs-7 col-sm-7 state">
<h5 class="state-title">State</h5>
<h4 class="state-name"></h4>
</div>
<div class="col-md-5 col-xs-5 col-sm-5 rank">
<h5 class="rank-title">State Rank</h5>
<h4 class="rank-name"></h4>
</div>
</div>
</div>
</div>
</div>
<div class="animated bounceInUp legislator col-md-4 col-sm-4">
<div class="legislator-inner legislator-inner-party-border">
<div class="media">
<span class="pull-left">
<img class="media-object" src="" alt="">
<span class="glyphicon glyphicon-user"></span>
</span>
<div class="media-body">
<h4 class="media-heading"></h4>
<div class="col-md-7 col-xs-7 col-sm-7 state">
<h5 class="state-title">State</h5>
<h4 class="state-name"></h4>
</div>
<div class="col-md-5 col-xs-5 col-sm-5 rank">
<h5 class="rank-title">State Rank</h5>
<h4 class="rank-name"></h4>
</div>
</div>
</div>
</div>
</div>
<div class="animated bounceInUp legislator col-md-4 col-sm-4">
<div class="legislator-inner legislator-inner-party-border">
<div class="media">
<span class="pull-left">
<img class="media-object" src="" alt="">
<span class="glyphicon glyphicon-user"></span>
</span>
<div class="media-body">
<h4 class="media-heading"></h4>
<div class="col-md-7 col-xs-7 col-sm-7 state">
<h5 class="state-title">State</h5>
<h4 class="state-name"></h4>
</div>
<div class="col-md-5 col-xs-5 col-sm-5 rank">
<h5 class="rank-title">State Rank</h5>
<h4 class="rank-name"></h4>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer">
<div class="container">
<div class="col-md-6 col-sm-6" id="col-left">
<div class="row">
<div class="col-md-12"><h3 id="member-name"></h3></div>
</div>
<div id="member-details">
<div class="row">
<div class="col-md-6 col-xs-6 col-sm-6">
<h5 class="gray-title">Member's Washington Address</h5>
<h6 id="address"></h6>
<h6 id="telephone"></h6>
</div>
<div class="col-md-6 col-xs-6 col-sm-6" id="contact">
<h5 class="gray-title">Connect</h5>
<!--<div class="col-md-6"><h6 id="telephone"></h6></div>
<div class="col-md-6"><h6 id="online-contact"></h6></div>-->
</div>
<div class="col-md-6 col-xs-6 col-sm-6">
<div id="contactIcons" class="contactIcons">
<a href="#" class="icon-homepage" data-toggle="tooltip" data-placement="top" title="Homepage"></a>
<a href="#" class="icon-email" data-toggle="tooltip" data-placement="top" title="Email"></a>
<a href="#" class="icon-twitter" data-toggle="tooltip" data-placement="top" title="Twitter"></a>
<a href="#" class="icon-facebook" data-toggle="tooltip" data-placement="top" title="Facebook"></a>
<a href="#" class="icon-youtube" data-toggle="tooltip" data-placement="top" title="YouTube"></a>
</div>
</div>
</div>
<div class="break"></div>
<div class="loader voting-loader"></div>
<div class="loader-help voting-loader">Crunching the numbers...</div>
<div class="row" id="voting-record">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="col-md-4 col-sm-4 col-xs-4" style="padding-top:0px; padding-left:0px">
<h4 style="margin-top: 2px; margin-bottom: -3px;" class="gray-title">Total Votes</h4>
<h3 id="total-votes"></h3>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<h5>Term Start</h5>
<div id="term-start"></div>
</div>
<div class="col-md-4 col-sm-4 col-xs-4">
<h5>Term End</h5>
<div id="term-end"></div>
</div>
</div>
<div class="col-md-12 col-sm-12" id="last-50">
<h4 class="gray-title">Breakdown of Last 50 Votes</h4>
<div class="col-md-6 col-xs-6 col-sm-6">
<h5 class="gray-title">How They Voted</h5>
<div id="pie-chart-votes"></div>
</div>
<div class="col-md-6 col-xs-6 col-sm-6">
<h5 class="gray-title">With or Against Party</h5>
<div id="pie-chart-party-line"></div>
</div>
</div>
</div>
<div class="break"></div>
<div id="bills-container">
<div class="col-md-12">
<h5 class="gray-title">Details About Last 50 Votes</h5>
</div>
<div class="col-md-12" id="bills"></div>
</div>
</div>
</div>
<div class="col-md-6 col-sm-6">
<div id="committees"></div>
<div id="committee-members"></div>
</div>
</div>
<div id="footer-about">
<div id="congress-seal"></div>
<span></span>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="assets/js/d3.v3.min.js"></script>
<script type='application/javascript' src='assets/js/fastclick.js'></script>
<script src="assets/js/nprogress.js"></script>
<script src="assets/js/moment.min.js"></script>
<script src="http://js.arcgis.com/3.8/"></script>
<script src="assets/js/typeahead.min.js"></script>
<script src="assets/js/application.js"></script>
<script src="assets/js/chart.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script>
window.addEventListener('load', function() {
FastClick.attach(document.body);
}, false);
//initialize app on page ready
$(document).on('ready', function() {
app = new App({});
});
</script>
</body>
</html>