-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.html
More file actions
71 lines (59 loc) · 2.78 KB
/
Copy pathshell.html
File metadata and controls
71 lines (59 loc) · 2.78 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
<!DOCTYPE html>
<html>
<head>
<title>Life Expectancy</title>
<link rel="stylesheet" type="text/css" href="life.css" />
<script type="text/javascript" src="http://media.flowingdata.com/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="http://media.flowingdata.com/js/d3.js?1.29.1"></script>
<script type="text/javascript" src="http://media.flowingdata.com/js/d3.time.js?1.29.1"></script>
<script type="text/javascript" src="http://media.flowingdata.com/js/d3.csv.js?1.29.1"></script>
<link href='http://fonts.googleapis.com/css?family=Bevan|Cardo' rel='stylesheet' type='text/css'>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-865100-8']);
_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>
</head>
<body>
<div id="main-wrapper">
<div id="content">
<div style="text-align:right"><a href="http://flowingdata.com"><img src="./logo-lone-square.gif" title="FlowingData" width="50" height="50" / ></a></div>
<h1>Life Expectancy</h1>
<p>People are living longer around the world, some more so than others. Select a region (as defined by World Bank) below to compare, or roll over to the graph to highlight countries. <a href="http://flowingdata.com/2011/10/13/life-expectancy-changes/">Read more...</a></p>
<div id="filters">
<a id="EAS">East Asia and Pacific</a>
<a id="SAS">South Asia</a>
<a id="ECS">Europe and Central Asia</a>
<a id="MEA">Middle East and North Africa</a>
<a id="SSF">Sub-Saharan Africa</a>
<a id="LCN">Latin America and Caribbean</a>
<a id="NAC">North America</a>
</div><!-- @end #filters -->
<div id="blurb">
<div id="default-blurb">
<h2>All Nights</h2>
<p>On average, I slept 5.2 hours per night.</p>
</div>
<div id="blurb-content"></div>
</div>
<div id="vis"></div>
<div id="cite">Source: The World Bank; Graphic by: <a href="http://flowingdata.com">Nathan Yau</a></div>
</div><!-- @end content -->
</div><!-- @end #main-wrapper -->
<script type="text/javascript" src="life.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#filters a').click(function() {
var countryId = $(this).attr("id");
$(this).toggleClass(countryId);
showRegion(countryId);
});
});
</script>
</body>
</html>