-
Notifications
You must be signed in to change notification settings - Fork 1
/
sector.html
executable file
·399 lines (328 loc) · 15.5 KB
/
sector.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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Disrupt DC - A Business Coalition for Innovation and Competition</title>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.3/angular-route.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="script.js"></script>
<script src="angular-fontawesome.js"></script>
<script src="bower_components/Chart.js/Chart.min.js"></script>
<script src="bower_components/angular-chart.js/dist/angular-chart.js"></script>
<link rel="stylesheet" href="bower_components/angular-chart.js/dist/angular-chart.css" />
<link href="css/stylish-portfolio.css" rel="stylesheet">
<link href="css/disrupt-dc.css" rel="stylesheet">
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
<link href="http://cdn-images.mailchimp.com/embedcode/classic-081711.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; width:400px;}
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<script>
var randomScalingFactor = function(){ return Math.round(Math.random()*100)};
var data = [
{
value: 233036,
color:"#999",
highlight: "#aaa",
label: "99.23% of the contributors"
},
{
value: 1805,
color: "#ffa705",
highlight: "#ffc705",
label: "Top 0.77% Contributors"
}
];
var data2 = [
{
value: 79082084,
color:"#ffa705",
highlight: "#ffc705",
label: "Top 0.77% Contributors"
},
{
value: 18819498,
color: "#999",
highlight: "#aaa",
label: "99.23% of the contributors"
}
];
var rerender = function(v1,v2){
var data2 = [
{
value: v1,
color:"#ffa705",
highlight: "#ffc705",
label: "Top 0.77% Contributors"
},
{
value: v2,
color: "#999",
highlight: "#aaa",
label: "99.23% of the contributors"
}
];
var ctx = document.getElementById("canvas2").getContext("2d");
window.myBar = new Chart(ctx).Pie(data2, {
segmentStrokeColor : "fff",
segmentShowStroke: false
});
}
// var barChartData = {
// labels : ["January","February","March","April","May","June","July"],
// datasets : [
// {
// fillColor : "rgba(220,220,220,0.5)",
// strokeColor : "rgba(220,220,220,0.8)",
// highlightFill: "rgba(220,220,220,0.75)",
// highlightStroke: "rgba(220,220,220,1)",
// data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
// },
// {
// fillColor : "rgba(151,187,205,0.5)",
// strokeColor : "rgba(151,187,205,0.8)",
// highlightFill : "rgba(151,187,205,0.75)",
// highlightStroke : "rgba(151,187,205,1)",
// data : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]
// }
// ]
// }
window.onload = function(){
var ctx = document.getElementById("canvas").getContext("2d");
window.myBar = new Chart(ctx).Pie(data, {
segmentStrokeColor : "fff",
segmentShowStroke: false
});
var ctx = document.getElementById("canvas2").getContext("2d");
window.myBar = new Chart(ctx).Pie(data2, {
segmentStrokeColor : "fff",
segmentShowStroke: false
});
}
</script>
</head>
<body ng-app="single-page-app" class="sector">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top disrupt-navbar">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"><img src='img/DisruptDC-logo-navbar.png' class="small-logo"></a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="sector.html" class="disrupt-link active">Cronyism Index</a></li>
<li><a href="bar.html" class="disrupt-link">Corporate Influence ROI</a></li>
</ul>
</div>
</div>
</nav>
<a id="menu-toggle" href="#" class="btn btn-dark btn-lg toggle"><fa name="bars"></fa></a>
<nav id="sidebar-wrapper">
<ul class="sidebar-nav">
<a id="menu-close" href="#" class="btn btn-light btn-lg pull-right toggle"><i class="fa fa-times"></i></a>
<li class="sidebar-brand">
<a href="#top" onclick = $("#menu-close").click(); >Disrupt DC</a>
</li>
<li>
<a href="#about" onclick = $("#menu-close").click(); >About Us</a>
</li>
<li>
<a href="#services" onclick = $("#menu-close").click(); >Explore</a>
</li>
</ul>
</nav>
<div class="container-fluid">
<div class="row sectors">
<aside class="callout">
<div class="text-vertical-center bodytext_styled bodybox_grey">
<h2>CRONYISM INDEX</h2>
<div>Big businesses invest in the political process to protect their advantages in the marketplace and secure future returns. These visualizations of Sunlight Foundation data show how a small number of companies are outspending their competitors to influences legislative outcomes across many economic sectors.</div>
</div>
</aside>
<div class="col-md-1">
</div>
<div class="col-md-3">
<ul class="nav nav-pills nav-stacked">
<li role="presentation"><a href="#" onclick="rerender(10649633,2348979)">Agribusiness</a></li>
<li role="presentation"><a href="#" onclick="rerender(22725284,5439095)">Communications/Electronics</a></li>
<li role="presentation"><a href="#" class="disabled" onclick="rerender(100,250)">Construction</a></li>
<li role="presentation"><a href="#" class="disabled" onclick="rerender(100,250)">Defense</a></li>
<li role="presentation"><a href="#" onclick="rerender(23049297,4181445)">Energy & Natural Resources</a></li>
<li role="presentation"><a href="#" onclick="rerender(79082084,18819498)">Finance, Insurance & Real Estate</a></li>
<li role="presentation"><a href="#" onclick="rerender(39523180,10002579)">Health</a></li>
<li role="presentation"><a href="#" class="disabled" onclick="rerender(100,250)">Lawyers & Lobbyists</a></li>
<li role="presentation"><a href="#" class="disabled" onclick="rerender(100,250)">Transportation</a></li>
<li role="presentation"><a href="#" class="disabled" onclick="rerender(100,250)">Misc Business</a></li>
<li role="presentation"><a href="#" class="disabled" onclick="rerender(100,250)">Labor</a></li>
<li role="presentation"><a href="#" class="disabled" onclick="rerender(100,250)">Ideological/Single-Issue</a></li>
</ul>
</div>
<div class="col-md-8">
<div class="row">
<div class="canvascontainer">
<canvas id="canvas" class="chartcanvas"></canvas>
</div>
<div class="canvascontainer">
<canvas id="canvas2" class="chartcanvas"></canvas>
</div>
</div>
<!-- <div class="row politicians">
<div class="col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">Politicians who benefit from 90% in sector A</div>
<table class="table">
<tr>
<td>#1</td>
<td>Pelosi</td>
<td>123.00</td>
</tr>
<tr>
<td>#2</td>
<td>Shmarosi</td>
<td>121.00</td>
</tr>
</table>
</div>
</div>
</div>
-->
</div>
</div>
</div> <!-- containers -->
<!-- Callout -->
<aside class="callout">
</aside>
<!-- Call to Action -->
<aside class="call-to-action bg-primary">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<div class="">
<h2>Fix the disbalance!</h2>
<div class="bodytext_styled">Join the businesses that support the fight for freedom!
</div>
</div>
<!-- Begin MailChimp Signup Form -->
<!-- Begin MailChimp Signup Form -->
<link href="http://cdn-images.mailchimp.com/embedcode/classic-081711.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; color: black ; margin-top: 40px;}
#mc_embed_signup_scroll label {color: black;}
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup" class="signup-form">
<form action="//disruptdc.us11.list-manage.com/subscribe/post?u=f5a94245404e3c420c8797dc3&id=4fa84e8e21" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<div class="indicates-required"><span class="asterisk">*</span> indicates required</div>
<div class="mc-field-group">
<label for="mce-EMAIL">Email Address <span class="asterisk">*</span>
</label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</div>
<div class="mc-field-group input-group">
<strong>Business Owner? </strong>
<ul><li><input type="checkbox" value="1" name="group[5105][1]" id="mce-group[5105]-5105-0"><label for="mce-group[5105]-5105-0"> I represent a business</label></li>
</ul>
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;"><input type="text" name="b_f5a94245404e3c420c8797dc3_4fa84e8e21" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</div>
</form>
</div>
<script type='text/javascript' src='http://s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script><script type='text/javascript'>(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';}(jQuery));var $mcj = jQuery.noConflict(true);</script>
<!--End mc_embed_signup-->
<br />
<!--
<h3>The buttons below are impossible to resist.</h3>
<a href="#" class="btn btn-lg btn-light">Click Me!</a>
<a href="#" class="btn btn-lg btn-dark">Look at Me!</a> -->
</div>
</div>
</div>
</aside>
<!-- Map -->
<!--<section id="contact" class="map">-->
<!--<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Twitter,+Inc.,+Market+Street,+San+Francisco,+CA&aq=0&oq=twitter&sll=28.659344,-81.187888&sspn=0.128789,0.264187&ie=UTF8&hq=Twitter,+Inc.,+Market+Street,+San+Francisco,+CA&t=m&z=15&iwloc=A&output=embed"></iframe>-->
<!--<br />-->
<!--<small>-->
<!--<a href="https://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=Twitter,+Inc.,+Market+Street,+San+Francisco,+CA&aq=0&oq=twitter&sll=28.659344,-81.187888&sspn=0.128789,0.264187&ie=UTF8&hq=Twitter,+Inc.,+Market+Street,+San+Francisco,+CA&t=m&z=15&iwloc=A"></a>-->
<!--</small>-->
<!--</iframe>-->
<!--</section>-->
<!-- Footer -->
<footer>
<div id="contact" class="container">
<div class="row">
<div class="col-lg-10 col-lg-offset-1 text-center">
<h4><strong>DisruptDC</strong>
</h4>
<p>San Francisco, CA</p>
<ul class="list-unstyled">
<li><i class="fa fa-envelope-o fa-fw"></i> <a href="[email protected]">[email protected]</a>
</li>
</ul>
<br>
<ul class="list-inline">
<li>
<a href="#"><i class="fa fa-facebook fa-fw fa-3x"></i></a>
</li>
<li>
<a href="#"><i class="fa fa-twitter fa-fw fa-3x"></i></a>
</li>
<li>
<a href="#"><i class="fa fa-dribbble fa-fw fa-3x"></i></a>
</li>
</ul>
<hr class="small">
<p class="text-muted">Copyright © DisruptDC 2015</p>
</div>
</div>
</div>
</footer>
</body>
<script>
// Closes the sidebar menu
$("#menu-close").click(function(e) {
e.preventDefault();
$("#sidebar-wrapper").toggleClass("active");
});
// Opens the sidebar menu
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#sidebar-wrapper").toggleClass("active");
});
// Scrolls to the selected menu item on the page
$(function() {
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') || location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
});
</script>
</html>