forked from carbonbrief/local-temperature-interactive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
165 lines (162 loc) · 9.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Local temperature interactive | Carbon Brief</title>
<meta name="description" content="Find out about past and present warming in your local area.">
<meta name="author" content="Rosamund Pearce and Zeke Hausfather">
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.47.0/mapbox-gl.js'></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="//d3js.org/d3.v4.min.js"></script>
<script src='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.3.0/mapbox-gl-geocoder.min.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.47.0/mapbox-gl.css' rel='stylesheet' />
<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.3.0/mapbox-gl-geocoder.css' type='text/css' />
<link href='https://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700|PT+Serif:400,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/toggle.css">
<link rel="stylesheet" href="css/responsive.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous">
</head>
<body>
<div id="wrapper">
<div id="landing-console" class="console console-up">
<div id="landing-console-toggle">
<a href="#" class="toggle" id="toggle-down"><span class="arrow-hidden" id="arrow-up">▲</span><span class="arrow-showing" id="arrow-down">▼</span></a>
</div>
<div class="session" id="#key">
<div id="key-title">
<h3>Warming, °C</h3>
</div>
<div id="key-labels">
<div id="unit1" class="unit"><p>0</p></div>
<div id="unit2" class="unit"><p>2</p></div>
<div id="unit3" class="unit"><p>4+</p></div>
</div>
<div id="ticks">
<div id="tick1" class="tick"></div>
</div>
<div id="key-colors" class="colors"></div>
<div>
<p class="label-text">Between 1880-1900 and 2080-2100 temperatures.</p>
</div>
</div>
<div class="session" id="pathway-toggle">
<h3>Pathway</h3>
<form name="rcps">
<input type="radio" id="rcp26"
name="rcp-radio" value="26" checked="checked">
<label for="rcp26">RCP 2.6</label>
<input type="radio" id="rcp45"
name="rcp-radio" value="45">
<label for="rcp45">RCP 4.5</label>
<input type="radio" id="rcp60"
name="rcp-radio" value="60">
<label for="rcp60">RCP 6.0</label>
<input type="radio" id="rcp85"
name="rcp-radio" value="85">
<label for="rcp85">RCP 8.5</label>
</form>
<p class="label-text">Different levels of greenhouse gases and other radiative forcings that might occur in the future.</p>
</div>
</div>
<div id='home-button-wrapper'><a href='#' id="home-button"><i class="fas fa-home"></i></a></div>
<div id='loading'>
<div id="loading-message">
<h1>How will your local area warm in the future?</h1>
<p class="loading-summary">Different regions of the world will experience different levels of global warming.</p>
<p class="loading-summary">Click on the map to learn about past and present warming.</p>
<h4>Loading 64,800 regions…</h4>
<div class="colors" id="loading-colors"></div>
</div>
</div>
<div id="map">
<div id="adb">
<i class="fa fa-info-circle" aria-hidden="true"></i>
<p>Map tiles failed to load. This might be because:
<ul>
<li>Your browser does not support WebGL – click <a href='https://get.webgl.org/' target="_blank">here</a> to check. Please upgrade or reopen this link in a <a href='https://www.mapbox.com/help/mapbox-browser-support/' target="_blank">modern web browser</a>, such as Firefox, Chrome or Safari (version 9.0+).</li>
<li>An adblocker is preventing the map tiles from rendering. Please try whitelisting this site and refreshing the page.</li>
</ul>
</p>
</div>
</div>
<div id="second-console" class="console console-initial">
<div id="console-toggle">
<a href="#" class="toggle" id="toggle-across"><span class="arrow-hidden" id="arrow-left">◄</span><span class="arrow-showing" id="arrow-right">►</span></a>
</div>
<h2>Temperature change near <span id="city">[city name]</span></h2>
<h4 id="country">[country name]</h4>
<h3>Historic</h3>
<p class="label-text" id="historic">This region has warmed by <span class="stat"><span id="warming">x</span>C</span> so far.</p>
<div id="graph1" class="session graph">
</div>
<div class="key-wrapper">
<div class="graph-key">
<ul>
<li>
<div class="colour-key" style="background-color: #FFFFFF;"></div>
Observed
</li>
<li>
<div class="colour-key" style="background-color: #Ca4a78;"></div>
Smoothed average
</li>
<li>
<div class="colour-key" style="background-color: rgba(153, 153, 153, 0.35)"></div>
Uncertainty
</li>
</ul>
</div>
</div>
<div class="download-button">
<span id="custom"><a href="https://twitter.com/intent/tweet?url=http%3A%2F%2Fexample.com&text=This%20is%20a%20Quote" target="_blank" class="download"><i class="fab fa-twitter"></i></a></span>
<a href="data/placeholder.html" download="placeholder.csv" class="download" id="download1">Data <i class="fas fa-file-download"></i></a>
</div>
<h3>Future</h3>
<p class="label-text" id="future">It is projected to warm by between <span class="stat"><span id="future-warming1-highlight highlight"><span id="future-warming1">x</span>C</span> - <span id="future-warming2-highlight highlight"><span id="future-warming2">y</span>C</span></span> by 2100.</p>
<div id="graph2" class="session graph">
</div>
<div class="key-wrapper">
<div class="graph-key">
<ul>
<li>
<div class="colour-key" style="background-color: #9753B5;"></div>
RCP 2.6
</li>
<li>
<div class="colour-key" style="background-color: #Ca4a78;"></div>
RCP 4.5
</li>
<li>
<div class="colour-key" style="background-color: #f79649;"></div>
RCP 6.0
</li>
<li>
<div class="colour-key" style="background-color: #F0f73f;"></div>
RCP 8.5
</li>
</ul>
</div>
</div>
<div class="download-button">
<span id="custom2"><a href="https://twitter.com/intent/tweet?url=http%3A%2F%2Fexample.com&text=This%20is%20a%20Quote" target="_blank" class="download"><i class="fab fa-twitter"></i></a></span>
<a href="data/placeholder.html" download="placeholder.csv" class="download" id="download2">Data <i class="fas fa-file-download"></i></a>
</div>
<!-- add div below for overflow issue -->
<div id="overflow"></div>
</div>
<div class="logo" id="logo-mobile"></div>
<div class="logo" id="logo-laptop"></div>
</div>
<script src="js/config.js"></script>
<script src="js/script.js"></script>
<script src="js/area-chart.js"></script>
<script src="js/charts.js"></script>
<script src="js/share.js"></script>
<script src="js/characteristics.js"></script>
<script src="js/text.js"></script>
<!-- Script needed for the popup share icon to work -->
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</body>
<!-- </html> -->