-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·252 lines (222 loc) · 6.63 KB
/
index.html
File metadata and controls
executable file
·252 lines (222 loc) · 6.63 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
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--Sean Test-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<!--<script src="jquery-1.10.2.min.js"></script>-->
<script src="//d3js.org/d3.v3.min.js"></script>
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<title>#SB50 Emoji Use 🐱 vs 🏇</title>
<meta property="og:description" content="Twitter Emoji D3 visualization for Super Bowl 50. The bubbles represent the relative number of emojis used in sampled tweets from Twitter's Streaming API." />
<meta property="og:site_name" content="SB50 Emoji Use! by Stattleship" />
<meta property="og:title" content="#SB50 Emoji Use 🐱 vs 🏇" />
<meta property="og:url" content="https://sb50.stattleship.com" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content="@stattleship" />
<meta name="twitter:site" content="@stattleship" />
<style>
body {
margin: 0;
width: 100%;
height: 1000px;
min-width: 310px;
/*max-width: 800px;*/
font-family: 'Source Sans Pro', sans-serif;
text-align: center;
}
.outer {
margin: 0 auto;
width: 100%;
height: 1000px;
max-width: 800px;
}
.d3-container {
width: 100%;
/*height: 100%;*/
max-width: 800px;
height: 1000px;
position: relative;
text-align: center;
border: 1px solid black;
border-radius: 4px;
}
.node circle {
cursor: pointer;
/*stroke: #3182bd;*/
/*stroke-width: 1.5px;*/
}
text {
font-size: 28px;
font-family: 'Source Sans Pro', sans-serif;
pointer-events: none;
text-anchor: middle;
}
text.linechart {
fill: #909090;
font-size: 26px;
}
.link {
stroke: #999;
stroke-opacity: .6;
}
.button-container {
margin: 0 auto;
}
.button-hash {
font-size: 20px;
width: 25%;
min-width: 100px;
margin: 5px 10px;
border-radius: 10px;
text-align: center;
line-height: 2;
display: inline-block;
border: 3px solid black;
cursor: pointer;
}
.button.allday {
float: right;
border: 1px solid black;
border-radius: 15px;
font-size: 10px;
height: 20px;
width: 50px;
line-height: 2;
text-align: center;
margin-bottom: 5px;
background-color: #00abc6;
cursor: pointer;
}
.time {
cursor: pointer;
}
.popup-bkgd {
position: absolute;
top: 0px;
background: rgba(0, 0, 0, .5);
height: 100%;
width: 100%;
}
.popup {
font-size: 9px;
background-color: rgba(255, 255, 255, .9);
position: absolute;
overflow: scroll;
top: 10%;
left: 25%;
width: 50%;
height: 50%;
margin: 0 auto;
}
.viz-title {
text-align: left;
height: 50px;
margin-bottom: 10px;
padding-top: 15px;
padding-left: 2%;
padding-right: 5%;
font-size: 30px;
line-height: 50px;
}
.title {
text-align: left;
padding-top: 15px;
padding-bottom: 5px;
padding-left: 5%;
padding-right: 2%;
font-size: 16px;
}
.axis path {
stroke: black;
stroke-width: 0;
display: none;
}
.axis line {
fill: none;
stroke: black;
stroke-width: 0;
shape-rendering: crispEdges;
}
.axis text {
font-size: 14px;
}
.axis.title {
font-size: 16px;
}
.hbar {
width: 60%;
height: 1px;
background-color: #505050;
margin: 15px auto;
}
@media (max-width: 600px) {
.button-hash {
font-size: 16px;
}
}
@media (max-width: 500px) {
.viz-title {
font-size: 24px;
}
.button-hash {
font-size: 12px;
}
text.linechart {
font-size: 20px;
}
.axis text {
font-size: 12px;
}
}
@media (max-width: 400px) {
.viz-title {
font-size: 20px;
}
text.linechart {
font-size: 14px;
}
.axis text {
font-size: 9px;
}
}
</style>
<body>
<div class="outer">
<div class="d3-container">
<div class="button-container">
<div class="viz-title" style="">
<a href="https://www.stattleship.com">
<img src="three_sports_emblem.png" style="height: 50px; float: left;" />
</a>
<div style="display: inline-block;">Super Bowl 50 Emoji Use</div>
</div>
<div class="button-hash" id="0" data-active="false">#Broncos</div>
<div class="button-hash" id="1" data-active="false">#KeepPounding</div>
<div class="button-hash" id="2" data-active="true" style="background-color: #FFDE69;">#SB50</div>
<div class="button-hash" id="3" data-active="false">Manning</div>
<div class="button-hash" id="4" data-active="false">Newton</div>
</div>
<div class="hbar"></div>
<div class="chart title">Emoji Use Throughout the Day <span style="font-size: 10px;">(All times local)</span>
<div class="button allday"
data-time="all">All Day</div>
</div>
<div class="chart-line"></div>
<div class="hbar"></div>
<div class="chart title">Most Popular Emoji</div>
<div class="chart-bubble"></div>
</div>
<p>© 2016 <a href="https://www.stattleship.com">Stattleship</a> - Powering the next generation fan experience.</p>
<p>Sign up for our <a href="https://www.stattleship.com">Sports Data API</a> today!</a>
</div>
<script src="viz_sb50_emoji.js"></script>
<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-26275662-2', 'auto');
ga('send', 'pageview');
</script>
</body>