/
index.html
290 lines (203 loc) · 10.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script>
<meta charset="utf-8">
<title>Hollywood Data Explorer</title>
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/custom/jquery-ui-1.8.16.custom.css" media="all" />
<style>
body {
padding-top: 0px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<link href="/favicon.png" rel="shortcut icon" type="image/x-icon" />
</head>
<body>
<div id="container">
<div id="header">
<a href="#about" id="about_header">About</a>
<a class="brand" href="#"><div id="title_g"><h1>Test</h1></div></a>
</div>
<div id="main" role="main">
<div id="film_info">
<table id="info" >
<tbody>
<tr>
<td class="movie" id="movie_title" colspan="4"></td>
</tr>
<tr>
<td class="col1">Genre: </td>
<td class="col2" id="movie_genre"></td>
<td class="col3">Budget ($m):</td>
<td class="col4" id="movie_budget"></td>
</tr>
<tr>
<td class="col1">Critical Rating: </td>
<td class="col2" id="movie_rating"></td>
<td class="col3">Gross ($m): </td>
<td class="col4" id="movie_gross"></td>
</tr>
<tr>
<td class="col1">Year: </td>
<td class="col2" id="movie_year"></td>
<td class="col3">Profit: </td>
<td class="col4" id="movie_profit"></td>
</tr>
</tbody>
</table>
</div>
<div id="controls">
<h3>Chart Controls</h3>
<h5>Set X-Axis</h5>
<button id="x_rating_rt" class="btn btn-small x_view btn-primary">RT Rating</button>
<button id="x_rating_aud" class="btn btn-small x_view">Audience Rating</button>
<button id="x_opening" class="btn btn-small x_view">Opening</button>
<button id="x_budget" class="btn btn-small x_view">Budget</button>
<button id="x_film" class="btn btn-small x_view">Film</button>
<h5>Set Y-Axis</h5>
<button id="y_gross" class="btn btn-small y_view btn-primary">Gross</button>
<button id="y_rating_aud" class="btn btn-small y_view">Audience Rating</button>
<button id="y_profit" class="btn btn-small y_view">Profit</button>
<button id="y_pl" class="btn btn-small y_view">Profit/Loss </button>
<button id="y_opening" class="btn btn-small y_view">Opening</button>
<h5>Bubble Size</h5>
<button id="r_budget" class="btn btn-small r_view btn-primary">Budget</button>
<button id="r_rating" class="btn btn-small r_view">RT Rating</button>
<button id="r_pl" class="btn btn-small r_view">Profit/Loss</button>
<button id="r_none" class="btn btn-small r_view">None</button>
<h5>Bubble Colour</h5>
<button id="c_none" class="btn btn-small c_view btn-primary">None</button>
<button id="c_genre" class="btn btn-small c_view">Genre</button>
<button id="c_year" class="btn btn-small c_view">Year</button>
<div class="slider_container">
<br/><h5 id="budget_range">Budget: $0 - $500 </h5>
<br/><div id="slider1"></div><button id="reset" class="btn btn-tiny reset">Reset</button>
</div>
<h5>Search for a film:</h5><input id="search" /><button id="reset_search" class="btn btn-tiny reset">Clear</button>
<div id="genre_list">
<h5>Choose Genres</h5>
<div class="btn-group" data-toggle="buttons-radio" id="genre-toggle">
<button class="btn btn-small" id="all_genres"><i class="icon-ok"></i> Select All</button>
<button class="btn btn-small" id="no_genres"><i class="icon-remove"></i> Select None</button>
</div>
<div id="genre_left">
<INPUT NAME="genre" TYPE="CHECKBOX" class="genre" checked="checked" VALUE="Action">
<span class="genre_label">Action</span> <BR>
<INPUT NAME="genre" TYPE="CHECKBOX" class="genre" checked="checked" VALUE="Adventure">
<span class="genre_label">Adventure</span> <BR>
<INPUT NAME="genre" TYPE="CHECKBOX" class="genre" checked="checked" VALUE="Animation">
<span class="genre_label">Animation</span> <BR>
<INPUT NAME="genre" TYPE="CHECKBOX" class="genre" checked="checked" VALUE="Biography">
<span class="genre_label">Biography</span> <BR>
<INPUT NAME="genre" TYPE="CHECKBOX" class="genre" checked="checked" VALUE="Comedy">
<span class="genre_label">Comedy</span> <BR>
<INPUT NAME="genre" TYPE="CHECKBOX" class="genre" checked="checked" VALUE="Crime">
<span class="genre_label" >Crime</span> <BR>
<INPUT NAME="genre" TYPE="CHECKBOX" class="genre" checked="checked" VALUE="Documentary">
<span class="genre_label">Documentary</span> <BR>
<INPUT NAME="genre" TYPE="CHECKBOX" class="genre" checked="checked" VALUE="Drama">
<span class="genre_label">Drama</span> <BR>
</div>
<div id="genre_right">
<INPUT NAME="genre" TYPE="CHECKBOX" class="genre" checked="checked" VALUE="Fantasy">
<span class="genre_label">Fantasy</span><BR>
<INPUT NAME="genre" TYPE="CHECKBOX" class="genre" checked="checked" VALUE="Horror">
<span class="genre_label">Horror</span><BR>
<INPUT NAME="genre" TYPE="CHECKBOX" class="genre" checked="checked" VALUE="Musical">
<span class="genre_label">Musical</span><BR>
<INPUT NAME="genre" TYPE="CHECKBOX" class="genre" checked="checked" VALUE="Romance">
<span class="genre_label">Romance</span><BR>
<INPUT NAME="genre" TYPE="CHECKBOX" class="genre" checked="checked" VALUE="Thriller">
<span class="genre_label">Thriller</span><BR>
</div>
</div>
<div id="year_list">
<h5>Choose Years</h5>
<div class="btn-group" data-toggle="buttons-radio" id="year-toggle">
<button class="btn btn-small" id="all_years"><i class="icon-ok"></i> Select All</button>
<button class="btn btn-small" id="no_years"><i class="icon-remove"></i> Select None</button>
</div>
<INPUT NAME="year" TYPE="CHECKBOX" class="year" checked="checked" VALUE="2007">
<span class="year_label">2007</span><BR>
<INPUT NAME="year" TYPE="CHECKBOX" class="year" checked="checked" VALUE="2008">
<span class="year_label">2008</span><BR>
<INPUT NAME="year" TYPE="CHECKBOX" class="year" checked="checked" VALUE="2009">
<span class="year_label">2009</span><BR>
<INPUT NAME="year" TYPE="CHECKBOX" class="year" checked="checked" VALUE="2010">
<span class="year_label">2010</span><BR>
<INPUT NAME="year" TYPE="CHECKBOX" class="year" checked="checked" VALUE="2011">
<span class="year_label">2011</span><BR>
</div>
</div>
<div id="chart_container">
</div>
<div id="footer">
<p>James Fisher | 2012 | @fisherific | Thanks to <a href="http://www.informationisbeautifulawards.com/">Information is Beautiful</a> for the data! Best viewed in Chrome or Safari.</p>
</div>
</div>
<div class="modal hide fade in" id="about">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>About the Data Explorer</h3>
</div>
<div class="modal-body">
<p>An interactive web application designed to explore some of the metrics coming out of Hollywood. The tool allows exploration of over 500 films from the past 5 years.</p>
<ul>
<li>Hover over a bubble to see the film details.</li>
<li>Click on a bubble to highlight it. Click 'clear' beside the searchbox to clear the selection.</li>
<li>Use the Chart controls on the right to play with the data. </li>
</ul>
<p>Does the critical rating of a film affect its profitability? Set the X-Axis to RT Rating, the Y-Axis to Profit to find out.
There are hundreds of possible combinations available with all of the controls.
</p>
<p>WebKit seems to handle the SVG animations pretty well. Try Chrome or Safari if the app seems slow or unresponsive.</p>
<p>Data provided by Information is Beautiful. Big thanks to d3.js (@mbostock) for the amazing library.</p>
</div>
</div>
</div> <!-- /container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.min.js"><\/script>')</script>
<script src="js/libs/bootstrap-modal.js"></script>
<script src="js/libs/d3.js"></script>
<script src="js/hollywood.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-19494605-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript">
var _sf_async_config={uid:33186,domain:"indexity.net"};
(function(){
function loadChartbeat() {
window._sf_endpt=(new Date()).getTime();
var e = document.createElement('script');
e.setAttribute('language', 'javascript');
e.setAttribute('type', 'text/javascript');
e.setAttribute('src',
(("https:" == document.location.protocol) ? "https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/" : "http://static.chartbeat.com/") +
"js/chartbeat.js");
document.body.appendChild(e);
}
var oldonload = window.onload;
window.onload = (typeof window.onload != 'function') ?
loadChartbeat : function() { oldonload(); loadChartbeat(); };
})();
</script>
</body>
</html>