-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfaq.html
More file actions
320 lines (270 loc) · 9.57 KB
/
faq.html
File metadata and controls
320 lines (270 loc) · 9.57 KB
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
<!DOCTYPE html>
<!-- saved from url=(0054)http://getbootstrap.com/examples/sticky-footer-navbar/ -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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="">
<meta property="og:title" content="Bernie-Viz">
<meta property="og:url" content="http://bernieviz.github.io">
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
<meta property="og:site_name" content="Bernie Viz">
<meta property="og:description" content="Bernie Sanders + Interactive Data Visualisations = Good">
<meta property="og:type" content="website">
<link rel="icon" href="http://getbootstrap.com/favicon.ico">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-55a51b6a70ab9295" async="async"></script>
<title>BernieViz</title>
<link href="http://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="http://getbootstrap.com/examples/sticky-footer-navbar/sticky-footer-navbar.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-57395342-3', 'auto');
ga('send', 'pageview');
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script>
<script src="d3-jetpack.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Cinzel|Enriqueta|News+Cycle|Crimson+Text|Oswald|Open+Sans|Pontano+Sans|Open+Sans+Condensed|Droid+Sans|Questrial|Merriweather+Sans|Raleway|Holtwood+One+SC|Slabo|Cutive+Mono|Droid+Sans+Mono">
<style type="text/css">
.main-div{
margin-left:auto;
margin-right:auto;
display:block;
max-width: 960px;
font-family: Droid Sans;
color:#001F3F;
font-size:14px;
}
.question{
color:#EE3233;
font-size:16px;
}
.link-svg{
margin-left:auto;
margin-right:auto;
display:block;
/*border: 1px solid blue;*/
}
.text-link{
color:black;
/*text-decoration: underline*/
}
.text-link:hover{
color:black;
/*text-decoration: underline*/
}
.nav-link{
color:#001F3F;
cursor:pointer;
}
.nav-link:hover{
color:#85144B;
text-decoration: none
}
.all-text{
font-family: "Enriqueta";
font-size: 11px;
fill: #EFEFEF;
}
.title{
font-family: "Enriqueta";
}
.bottom-text{
font-family: "Enriqueta";
}
.arrow-text{
fill:#001F3F;
font-family: "Enriqueta";
}
.navbar-brand{
font-family:Raleway;
}
.faq-text{
}
/*EE3233*/
/* .arrow-path{
fill:#001F3F;
}*/
</style>
</head>
<script>
d3.xml("sanders-logo.svg", "image/svg+xml", function(xml) {
d3.select(xml.documentElement).select(".logo")
document.querySelector('.link-svg').appendChild(xml.documentElement);
d3.select('.bernie-svg')
.attr('x', 150)
.attr('y', 30)
d3.select('.logo')
.attr("transform", "scale(.4,.4)")
.attr("fill", "#001F3F")
addLinkDescriptions()
addRedditLink()
addPanes()
});
function addPanes() {
var svg = d3.select('.link-svg')
svg.append("rect")
.attr("x", 100)
.attr("y", 15)
.attr("height", 100)
.attr("width", 280)
.attr("fill", "red")
.attr("opacity", 0)
.attr("cursor", "pointer")
.on("mouseover", donateMouseover)
.on("mouseout", donateMouseout)
.on("click",function(d){
var url = "https://berniesanders.com/"
window.location.href = url
})
svg.append("rect")
.attr("x", 580)
.attr("y", 15)
.attr("height", 100)
.attr("width", 280)
.attr("fill", "red")
.attr("opacity", 0)
.attr("cursor", "pointer")
.on("mouseover", redditMouseover)
.on("mouseout", redditMouseout)
.on("click",function(d){
var url = "https://www.reddit.com/r/sandersforpresident"
window.location.href = url
})
}
function donateMouseover() {
d3.selectAll('.donate')
.transition()
.duration(250)
.attr("fill", "#7F7F7F")
}
function donateMouseout() {
d3.selectAll('.donate')
.transition()
.duration(100)
.attr("fill", "#001F3F")
}
function redditMouseover() {
d3.selectAll('.reddit')
.transition()
.duration(250)
.attr("fill", "#7F7F7F")
}
function redditMouseout() {
d3.selectAll('.reddit')
.transition()
.duration(100)
.attr("fill", "#001F3F")
}
function addLinkDescriptions() {
var svg = d3.select('.link-svg')
// d3.select('.bernie-link')
// .attr("transform", "translate(100,50) scale(.5.5)")
svg.append("text")
.attr("class", "donate bottom-text")
.attr("x", 110)
.attr("y", 30)
.attr("fill","#001F3F")
.text("Donate to Bernie")
svg.append("text")
.attr("class", "reddit bottom-text")
.attr("x", 450 + 140)
.attr("y", 30)
.text("Get Bernie News")
}
function addRedditLink() {
var svg = d3.select('.link-svg')
var text = svg.append("text")
.attr("class", "reddit")
.attr("x", 500 + 180)
.attr("y", 75)
.attr("fill", "#001F3F")
text.append("tspan")
.attr("class", "reddit")
.attr('font-family', 'FontAwesome')
.attr('font-size', '48px')
.text(function(d) {
return '\uf1a1'
})
text.append("tspan")
.attr("class", "reddit bottom-text")
.attr("x", 500 + 100)
.attr("dy", 30)
.attr('font-size', '24px')
.text("/r/SandersForPresident")
}
</script>
<body cz-shortcut-listen="true">
<!-- Fixed navbar -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header title">
<!-- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
</button> -->
<a class="navbar-brand" href="/" style="color:#001F3F">BernieViz</a>
<ul class="nav navbar-nav" style="font-family:Raleway">
<li><a href="/">Timeline</a></li>
<li class="active"><a href="">More to Come...</a></li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<!-- Begin page content -->
<div class="container">
<div class="page-header" >
<h1 class="title">FAQ</h1>
</div>
<div class='main-div' style="max-width:960px">
<p>
<span class="question">What is this?</span><br>
BernieViz intends to show data and information about Bernie Sanders in compelling ways. As long as Bernie's in the race, I plan to keep this going.
</p>
<p>
<span class="question">Why?</span><br>
My two current interests are Bernie Sanders and data visualization, so in the spirit of Reese's Peanut Butter Cups, I decided to combine them.
</p>
<p>
<span class="question">What's next?</span> <br>
I have a couple of vague ideas but would love input.
<ul>
<li>Something that uses <a class="text-link" href="https://www.govtrack.us/">GovTrack.us</a> to show Bernie's voting history</li>
<li>Something comparing donations of candidates (size/number of donations and/or characteristics of donors)</li>
</ul>
</p>
<p>
<span class="question">How can I help?</span><br>
I would be thrilled to have help from the community. The easiest ways are:
<ul>
<li>Ideas for visualizations</li>
<li>Data, or data sources. This can come in any format (XML, a table on a website, etc.) as long as the data's public</li>
<li>Feedback</li>
<li>Share it</li>
</ul>
If any D3JS programmers want to collaborate further, let me know.
</p>
<span class="question">Contact me at <a class="text-link" href="mailto:berniesandersviz@gmail.com">berniesandersviz@gmail.com</a>.</span>
<!-- <p>"I don't represent large corporations and I don't want their money." <br> - Bernie <p> -->
<svg class="link-svg" width="960" height="150"></svg>
</div>
</div>
<footer class="footer">
<div class="container" style="font-family:Raleway">
<p class="text-muted"><span>Made with <a href="http://d3js.org/" class="nav-link">D3JS</a> and a little <a class="nav-link" href="http://getbootstrap.com/2.3.2/">Bootstrap</a>.
</span>
<span style="float:right; margin-right: 30px">
<a class="nav-link" href="https://github.com/bernieviz/bernieviz.github.io"><i class="fa fa-github fa-2x" style="margin-right:20px"></i> </a>
<a class="nav-link" href="mailto:berniesandersviz@gmail.com"><i class="fa fa-envelope-o fa-2x"></i></a>
</span>
</p>
</div>
</footer>
</body></html>