-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
340 lines (304 loc) · 15.5 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Splunk">
<meta name="author" content="Satoshi Kawasaki">
<title>2018 Midterm Elections Influence - powered by Splunk</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css">
<!-- Custom fonts for this template -->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/grayscale.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="#page-top">Splunk ></a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
Menu
<i class="fas fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#about">The Story</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#data">The Data</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#flow">The Flow</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="#contacts">The Contacts</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Header -->
<header class="masthead">
<div class="container d-flex h-100 align-items-center">
<div class="mx-auto text-center">
<h1 class="mx-auto my-0 text-uppercase">2018 Midterm Elections</h1>
<h2 class="text-white-50 mx-auto mt-2 mb-5">A follow-up of the 2016 Presidential Election project by Splunk</h2>
<a href="#about" class="btn btn-primary js-scroll-trigger">Get Started</a>
</div>
</div>
</header>
<!-- About Section -->
<section id="about" class="about-section text-center">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto">
<h2 class="text-white mb-4">The Story</h2>
<p class="text-white-50">
Mid-term elections in the United States are frequently contentious and competitive battles for control of the Senate and House of Representatives. The influence of money has always been controversial – who and where the money comes from, how and where the money is spent, who benefits from that spending – but the local nature of House races show very clearly the influence of funds to districts, candidates ,and races that are strategic to both parties.
</p>
<p class="text-white-50">
While the cost of running these campaigns increases with each passing year, landmark decisions such as Citizens United v. Federal Elections Commission decision in 2010 have accelerated independent spending by so-called “Super PACs” – with no reporting on who or where that money comes from.
</p>
<p class="text-white-50">
Patterns in the funding show that senate races in Florida, Missouri, Nevada, Wisconsin and West Virginia were especially contentious – with more than $78 million in independent spending. House races in California, Georgia, Ohio, and Pennsylvania were likewise competitive seats, attracting more than $69 million in independent spending.
</p>
<p class="text-white-50">
So how is money being spent by these Super PACs? Where are they directing these dollars? How are dollars being spent both for AND against candidates in these key districts and races? Thanks to open data from the Federal Elections Commission and the power of Splunk, now you can investigate.
</p>
</div>
</div>
<!--<img src="img/ipad.png" class="img-fluid" alt="">-->
</div>
</section>
<!-- Projects Section -->
<section id="data" class="projects-section bg-light">
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto">
<h2 class="mb-4">The Data</h2>
<p class="text-black-50">Modifying the filters below affect both charts. "D" = direct donations and "I" = indirect donations.</p>
<label for="sort_by">Sort filters by:</label><br/>
<div id="sort_by" class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn-filter btn btn-secondary active">
<input type="radio" name="sort" autocomplete="off" value="alpha" checked>Alphabetical
</label>
<label class="btn-filter btn btn-secondary">
<input type="radio" name="sort" autocomplete="off" value="total" >Direct amount
</label>
<label class="btn-filter btn btn-secondary">
<input type="radio" name="sort" autocomplete="off" value="total_e">Indirect amount
</label>
</div>
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn-filter btn btn-secondary active">
<input type="radio" name="sort_by" autocomplete="off" value="asc" checked>Ascending
</label>
<label class="btn-filter btn btn-secondary">
<input type="radio" name="sort_by" autocomplete="off" value="desc">Descending
</label>
</div><br/>
<br/>
<div>
<label for="select_office">
Select an office:
</label>
<select class="form-control" id="select_office">
<option value="ALL">Both offices</option>
</select>
<label for="select_state">
Select a state:
</label>
<select class="form-control" id="select_state">
<option value="ALL">All states</option>
</select>
<label for="select_party">
Select a party:
</label>
<select class="form-control" id="select_party">
<option value="ALL">All parties</option>
</select>
<button id="reset" type="button" class="btn-filter btn btn-outline-secondary">Reset</button>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto">
<h2 class="mb-4">Direct Donations: Individual Contributions (<span id="total"></span> total)</h2>
<p class="text-black-50">Shows up to the top 30 candidates. "H" = House and "S" = Senate.</p>
</div>
</div>
</div>
<svg id="viz_bar"></svg>
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto">
<h2 class="mb-4">Indirect Donations: (Super) PAC Contributions (<span id="total_e"></span> total)</h2>
<p class="text-black-50">Shows up to the top 30 committees and 10 candidates. "H" = House and "S" = Senate.</p>
<div id="filter_toward">
<label for="select_toward">
Select toward:
</label>
<select class="form-control" id="select_toward">
<option value="ALL">Both</option>
</select>
</div>
</div>
</div>
</div>
<svg id="viz_halo"></svg>
</section>
<section id="flow" class="projects-section text-center">
<div class="container">
<!-- Featured Project Row -->
<div class="row align-items-center no-gutters mb-4 mb-lg-5">
<div class="col-xl-4 col-lg-7">
<img class="img-fluid mb-3 mb-lg-0" src="img/fec_logo.png" alt="">
</div>
<div class="col-xl-6 col-lg-5">
<div class="featured-text text-center text-lg-left">
<h4>The Flow</h4>
<p class="text-black-50 mb-0">
The Federal Elections Commission has for many years made data available on the funding of presidential elections in the United States. Data is readily available on the FEC website on who, what, and from where direct contributions are coming into candidates. You can ask questions, search names, and even look at this all on pretty maps. What is harder to find, however, is accessible information on Super-PACs. And that’s where Splunk comes in.
</p>
<p class="text-black-50 mb-0">
We have linked up to the latest FEC reports directly via the OpenFEC API, where we get access to the latest contributions and spending data as soon as the data is updated. Ingesting into Splunk is easy and anyone can visualize the data themselves. Splunk has a number of out-of-the-box visualizations available, or you can design your own in d3 or other visualization libraries. The visualization displayed above is called "Halo" and is built using d3.js, and is be available for use in Splunk at <a href="https://splunkbase.splunk.com/app/3514" target="_blank">Splunkbase</a>.
</p>
</div>
</div>
</div>
<!--
<div class="row justify-content-center no-gutters mb-5 mb-lg-0">
<div class="col-lg-6">
<img class="img-fluid" src="img/demo-image-01.jpg" alt="">
</div>
<div class="col-lg-6">
<div class="bg-black text-center h-100 project">
<div class="d-flex h-100">
<div class="project-text w-100 my-auto text-center text-lg-left">
<h4 class="text-white">Misty</h4>
<p class="mb-0 text-white-50">An example of where you can put an image of a project, or anything else, along with a description.</p>
<hr class="d-none d-lg-block mb-0 ml-0">
</div>
</div>
</div>
</div>
</div>
<div class="row justify-content-center no-gutters">
<div class="col-lg-6">
<img class="img-fluid" src="img/demo-image-02.jpg" alt="">
</div>
<div class="col-lg-6 order-lg-first">
<div class="bg-black text-center h-100 project">
<div class="d-flex h-100">
<div class="project-text w-100 my-auto text-center text-lg-right">
<h4 class="text-white">Mountains</h4>
<p class="mb-0 text-white-50">Another example of a project with its respective description. These sections work well responsively as well, try this theme on a small screen!</p>
<hr class="d-none d-lg-block mb-0 mr-0">
</div>
</div>
</div>
</div>
</div>
-->
</div>
</section>
<!-- Signup Section -->
<section id="contacts" class="signup-section">
<div class="container">
<div class="row">
<div class="col-md-10 col-lg-8 mx-auto text-center">
<i class="far fa-paper-plane fa-2x mb-2 text-white"></i>
<h2 class="text-white mb-5">The Contacts</h2>
<p class="mb-0 text-white-50">Interested in learning more about Splunk and Splunk4Good? Visit us <a href="https://www.splunk.com/" target="_blank">online</a> or <a href="https://www.splunk.com/en_us/about-us/contact.html" target="_blank">contact Splunk</a> to learn more or to inquire about our products and solutions.</p>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section class="contact-section bg-black">
<div class="container">
<div class="row">
<div class="col-md-4 mb-3 mb-md-0">
<div class="card py-4 h-100">
<div class="card-body text-center">
<i class="fas fa-map-marked-alt text-primary mb-2"></i>
<h4 class="text-uppercase m-0">Address</h4>
<hr class="my-4">
<div class="small text-black-50">270 Brannan St<br/>San Francisco, CA 94107</div>
</div>
</div>
</div>
<div class="col-md-4 mb-3 mb-md-0">
<div class="card py-4 h-100">
<div class="card-body text-center">
<i class="fas fa-envelope text-primary mb-2"></i>
<h4 class="text-uppercase m-0">Contact Us</h4>
<hr class="my-4">
<div class="small text-black-50">
<a href="https://www.splunk.com/en_us/about-us/contact.html" target="_blank">Contact Us Page</a>
</div>
</div>
</div>
</div>
<div class="col-md-4 mb-3 mb-md-0">
<div class="card py-4 h-100">
<div class="card-body text-center">
<i class="fas fa-mobile-alt text-primary mb-2"></i>
<h4 class="text-uppercase m-0">Phone</h4>
<hr class="my-4">
<div class="small text-black-50">+1 866.GET.SPLUNK (1 866.438.7758)</div>
</div>
</div>
</div>
</div>
<div class="social d-flex justify-content-center">
<a href="https://twitter.com/splunk" target="_blank" class="mx-2">
<i class="fab fa-twitter"></i>
</a>
<a href="https://www.facebook.com/splunk/" target="_blank" class="mx-2">
<i class="fab fa-facebook-f"></i>
</a>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-black small text-center text-white-50">
<div class="container">
Copyright © Splunk 2018
</div>
</footer>
<div id="tooltip"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
<script>
require.config({
shim: {
"bootstrap": {
"deps": ["jquery"]
},
"jquery_easing": {
"deps": ["jquery"],
"export": "jQuery.easing"
}
},
paths: {
"d3": "//d3js.org/d3.v5.min",
"underscore": "//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min",
"jquery": "//cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min",
"jquery_easing": "//cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min",
"bootstrap": "//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/js/bootstrap.bundle.min",
"moment": "//cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min"
}
});
</script>
<script src="/js/grayscale.js"></script>
<script src="/js/main.js"></script>
</body>
</html>