-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
202 lines (172 loc) · 8.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
Solar - Could Los Angeles generate its energy from solar panels?
</title>
<meta name="author" content="@sndsgns">
<meta name="description" content="Solar - Data Exploration - Could Los Angeles generate its energy from solar panels?">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="tachyons.css">
</head>
<body>
<header>
<h1 class="center tc ttu plm prm pts darkest-yellow f1">Solar</h1>
<h2 class="center tc mega-ns f1 ttu darkest-blue-l bt bb b--silver mtn mbn plm prm ptm-ns pbm-ns ptl pbl white" style="background: url('los-angeles-skyline.jpg'); background-size: cover;">Los Angeles</h2>
<h3 class="center tc f3 ttu black mbn plm prm ptm">Could <span class="darkest-blue">Los Angeles </span>generate its energy from <span class="darkest-yellow">solar</span>?</h3>
<meta name="description" content="Could Los Angeles generate its energy from solar panels?">
</header>
<main class="cf ptl">
<section class="mw8 center tc pbl">
<div id="canvas-holder" class="">
<h1 class="darkest-blue f2">L.A. Zip Codes By Electricity Usage</h1>
<div class="mw-75 center">
<canvas id="chart-area" class=""></canvas>
</div>
</div>
</section>
<section class="mw8 center tc pbl prl pll">
<div class="darkest-blue f2 b pbm">Los Angeles' Electricity Use as a Percent of California's</div>
<figure class="">
<img class="max-h6" src="california-outline-and-flag.png"/>
</figure>
</section>
<section class="mw8 center tc pbl prl pll">
<div class="darkest-blue f2 b">L.A.'s Water Needs Saved By Solar Panels</div>
<figure>
<img src="water-bottle-2.svg" class="max-h7"> </object>
</figure>
</section>
<section class="pll prl ptm pbm w-33-ns tc fl-ns">
<h1 class="mtn f2 ttu darkest-blue mbs">City Profile</h1>
<section class="pts pbs" tabindex="1">
<dl class="">
<dt id="" class="f3 tc b">Electricity Consumed Per Day<a target="_blank" href="http://en.wikipedia.org/wiki/Kilowatt_hour" class="link" title="Definition of a kilowatt hour"> (kWh)</a></dt>
<dd class='mln f3 pts tc'><span id="laKwhDailyUsage"></span></dd>
</dl>
</section>
<div class="bt w-50 b--lightest-gray center"></div>
<section class="pts pbs" tabindex="2">
<dl class="">
<dt id="" class="f3 tc b">Electricity Cost Per Day</dt>
<dd class="mln f3 pts tc"><span id="cityKwhCostDaily"></span></dd>
</dl>
</section>
<div class="bt w-50 b--lightest-gray center"></div>
<section class="pts pbs" tabindex="3">
<dl class="">
<dt id="" class="f3 tc b">Usable Sun a Day<a target="_blank" href="https://developer.nrel.gov/docs/solar/solar-resource-v1/#request-fields" class="link" title="Definition of GHI or Global Horizontal Irradiance"> (GHI)</a></dt>
<dd class='mln f3 pts tc'><span id="ghIrradiance"></span> kWh</dd>
</dl>
</section>
<div class="bt w-50 b--lightest-gray center"></div>
<section class="pts pbs" tabindex="4">
<dl class="">
<dt id="" class="f3 tc b">Los Angeles City Population</dt>
<dd class="mln f3 pts tc"><span id="cityPopulation"></span></dd>
</dl>
</section>
<div class="bt w-50 b--lightest-gray center"></div>
<section class="pts pbs" tabindex="5">
<dl class="">
<dt id="" class="f3 tc b">Los Angeles Land Area (Sqft)</dt>
<dd class='mln f3 pts tc'><span id="laSqft"></span></dd>
</dl>
</section>
</section>
<section class="pll prl ptm pbm w-33-ns tc fl-ns bl-ns br-ns b--lightest-gray">
<h1 class="mtn f2 ttu darkest-yellow mbs">To Go Solar</h1>
<section class="pts pbs" tabindex="6">
<dl class="">
<dt id="" class="f3 tc b">Total <span class="darkest-yellow">Solar Panels</span> to cover electricity</dt>
<dd class='mln f3 pts tc'><span id="numSolarPanelsNeeded"></span></dd>
</dl>
</section>
<div class="bt w-50 b--lightest-gray center"></div>
<section class="pts pbs" tabindex="7">
<dl class="">
<dt id="" class="f3 tc b">City Area (%) for <span class="darkest-yellow">Solar Panels</span></dt>
<dd class="mln f3 pts tc"><span id="laAreaPercentForSolar"></span></dd>
</dl>
</section>
<div class="bt w-50 b--lightest-gray center"></div>
<section class="pts pbs" tabindex="8">
<dl class="">
<dt id="" class="f3 tc b">Solar Panels Area (Sqft)</dt>
<dd class='mln f3 pts tc'><span id="solarPanelsSqft"></span></dd>
</dl>
</section>
<div class="bt w-50 b--lightest-gray center"></div>
<section class="pts pbs" tabindex="9">
<dl class="">
<dt id="" class="f3 tc b">Total Cost of <span class="darkest-yellow">Solar Panels</span></dt>
<dd class="mln f3 pts tc"><span id="solarPanelTotalCost"></span></dd>
</dl>
</section>
<div class="bt w-50 b--lightest-gray center"></div>
<section class="pts pbs" tabindex="10">
<dl class="">
<dt id="" class="f3 tc b">Avg. Contribution Per Resident</dt>
<dd class='mln f3 pts tc'><span id="perResContrib"></span></dd>
</dl>
</section>
</section>
<section class="pll prl ptm pbm w-33-ns tc fl-ns">
<h1 class="mtn f2 ttu darkest-green mbs">Benefits & ROI</h1>
<section class="pts pbs" tabindex="11">
<dl class="">
<dt id="" class="f3 tc b">Years Till Return On Investment</dt>
<dd class="mln f3 pts tc"><span id="roiDays"></span></dd>
</dl>
</section>
<div class="bt w-50 b--lightest-gray center"></div>
<section class="pts pbs" tabindex="12">
<dl class="">
<dt id="" class="f3 tc b">Twenty Year Net Savings</dt>
<dd class="mln f3 pts tc"><span id="twentyNetYearSavings"></span></dd>
</dl>
</section>
<div class="bt w-50 b--lightest-gray center"></div>
<section class="pts pbs" tabindex="13">
<dl class="">
<dt id="" class="f3 tc b">CO2 Tons Reduced Per Year</dt>
<dd class='mln f3 pts tc'><span id="co2Reduced"></span></dd>
</dl>
</section>
<div class="bt w-50 b--lightest-gray center"></div>
<section class="pts pbs" tabindex="14">
<dl class="">
<dt id="" class="f3 tc b">California CO2 Reduced</dt>
<dd class='mln f3 pts tc'><span id="percentCo2California"></span></dd>
</dl>
</section>
<div class="bt w-50 b--lightest-gray center"></div>
<section class="pts pbs" tabindex="15">
<dl class="">
<dt id="" class="f3 tc b">Gallons of Water Saved Per Year</dt>
<dd class='mln f3 pts tc'><span id="waterSaved"></span></dd>
</dl>
</section>
</section>
</main>
<footer class="pbl ptl cf tc center">
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<div class="center testc pbl">
<a href="https://twitter.com/share"
class="twitter-share-button pl3"
data-text="Solar - Data Exploration - Could Los Angeles generate its energy needs from solar panels?"
data-via="sndsgn" data-size="large">Tweet</a>
</div>
<div class="ptm">
<ul class="list pln di">
<li class="di plm prm"><a href="https://twitter.com/sndsgns" class="link">@sndsgns</a></li>
<li class="di plm prm"> <a href="https://github.com/sndsgn" class="link">github</a></li>
<li class="di plm prm"><a href="http://instagram.com/sndsgn" class="link">instagram</a></li>
</ul>
</div>
</footer>
<script src="Chart.min.js"></script>
<script src="app.js"></script>
</body>
</html>