-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
executable file
·615 lines (449 loc) · 21.4 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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A layout example that shows off a responsive product landing page.">
<title>Landing Page – Layout Examples – Pure</title>
<link rel="stylesheet" href="thirdparty/prettySocial/prettySocial.css" />
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/grids-responsive-min.css">
<!--<![endif]-->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/layouts/marketing-old-ie.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="css/layouts/marketing.css">
<!--<![endif]-->
<link rel="stylesheet" href="bower_components/uikit/css/uikit.min.css" />
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="thirdparty/prettySocial/jquery.prettySocial.min.js"></script>
<script src="bower_components/uikit/js/uikit.min.js"></script>
<script src="bower_components/d3/d3.min.js"></script>
<!--<script src="bower_components/d3.v2.min.js"></script>-->
<!-- <link rel="stylesheet" type="text/css"
href="https://fonts.googleapis.com/css?family=Open+Sans:400,600"> -->
<link rel="stylesheet" type="text/css" href="testPlots/sequences.css"/>
<style>
.body {
}
.header {
}
.splash-container {
background: blue;
}
.content-wrapper {
/*background: #777;*/
min-height: 760px;
top: 50px;
}
.content {
/*background: red;*/
}
.content-items {
background: white;
min-height: 640px;
}
.left-side {
/*background: yellow;*/
padding-top:10px;
}
.right-side {
/*background: #ccc;*/
}
.graph-content {
/*background: #ff0099;*/
padding-top: 20px;
}
.scenario-content {
/*background: #ff9900;*/
font-weght: bold;
color: white;
min-height: 640px;
}
.scenario-content h3 {
color: white;
text-align: center;
}
.scenario-content img {
margin-left: -12px;
}
.scenario-1 {
background: green;
}
.scenario-2 {
background: orange;
}
.scenario-3 {
background: red;
}
.scenario-4 {
background: purple;
}
.home-menu .social-container {
float: right;
}
.section-show {
display:block;
visibility:visible;
}
.section-hide {
display:none;
visibility:hidden;
}
.
/*
.uk-grid>* {
padding-left: 0;
}*/
.uk-tab>li {
padding-top:9px;
}
</style>
</head>
<body>
<div class="header">
<div class="home-menu pure-menu pure-menu-horizontal pure-menu-fixed">
<a class="pure-menu-heading" href="">
<img src="images/logo.png"/>
</a>
<div class="social-container">
<div class="links">
<a href="#" data-type="twitter" data-url="http://sonnyt.com/prettySocial" data-description="Custom share buttons for Pinterest, Twitter, Facebook and Google Plus." data-via="sonnyt" class="prettySocial fa fa-twitter"></a>
<a href="#" data-type="facebook" data-url="http://sonnyt.com/prettySocial" data-title="prettySocial - custom social share buttons." data-description="Custom share buttons for Pinterest, Twitter, Facebook and Google Plus." data-media="http://sonnyt.com/assets/imgs/prettySocial.png" class="prettySocial fa fa-facebook"></a>
<a href="#" data-type="googleplus" data-url="http://sonnyt.com/prettySocial" data-description="Custom share buttons for Pinterest, Twitter, Facebook and Google Plus." class="prettySocial fa fa-google-plus"></a>
<a href="#" data-type="pinterest" data-url="http://sonnyt.com/prettySocial" data-description="Custom share buttons for Pinterest, Twitter, Facebook and Google Plus." data-media="http://sonnyt.com/assets/imgs/prettySocial.png" class="prettySocial fa fa-pinterest"></a>
<a href="#" data-type="linkedin" data-url="http://sonnyt.com/prettySocial" data-title="prettySocial - custom social share buttons." data-description="Custom share buttons for Pinterest, Twitter, Facebook and Google Plus." data-via="sonnyt" data-media="http://sonnyt.com/assets/imgs/prettySocial.png" class="prettySocial fa fa-linkedin"></a>
</div>
</div>
<!-- <ul class="pure-menu-list">
<li class="pure-menu-item pure-menu-selected"><a href="#" class="pure-menu-link">Home</a></li>
<li class="pure-menu-item"><a href="#" class="pure-menu-link">Tour</a></li>
<li class="pure-menu-item"><a href="#" class="pure-menu-link">Sign Up</a></li>
</ul> -->
</div>
</div>
<!--
<div class="splash-container">
<div class="splash">
<h1 class="splash-head">Big Bold Text</h1>
<p class="splash-subhead">
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
</p>
<p>
<a href="http://purecss.io" class="pure-button pure-button-primary">Get Started</a>
</p>
</div>
</div>-->
<div class="content-wrapper">
<div class="content">
<div class="uk-grid content-items">
<div class="uk-width-1-4 left-side">
<ul class="uk-nav uk-nav-side js-navigation">
<li class="uk-active"><a href="#" tag="0">Industry</a></li>
<li><a href="#" tag="1">Pollutants</a></li>
<li><a href="#" tag="2">How Can I Do More?</a></li>
</ul>
</div>
<div class="uk-width-3-4 right-side uk-height-1-1">
<div id="data-0">
<ul class="uk-tab" data-uk-tab data-uk-switcher="{connect:'#tab-content-0'}">
<li class="uk-active"><a href="">Explore</a></li>
<li><a href="">Find out more</a></li>
</ul>
<ul id="tab-content-0" class="uk-switcher">
<li class="uk-active" aria-hidden="false">
<div class="graph-content">
<h2>How Much Does Your Industry Weigh?</h2>
<div>
This plot shows who and what is emitting carbon. Explore and find who is the worse emitter. What do you think can be done to reduce carbon emissions?
This data is provided by The National Green House Inventory.
</div>
<div id="main" style="color:red;">
<!-- <div id="sequence"></div> -->
<div id="chart">
<div id="plot-explanation" style="visibility: hidden;">
<span id="plot-name"></span><br/>
<span id="plot-percentage"></span><br/>
of carbon emissions
</div>
</div>
</div>
<div id="sidebar">
<input type="checkbox" id="togglelegend"> Legend<br/>
<div id="legend" style="visibility: hidden;"></div>
</div>
<script type="text/javascript" src="testPlots/sequences.js"></script>
<script type="text/javascript">
// Hack to make this example display correctly in an iframe on bl.ocks.org
d3.select(self.frameElement).style("height", "700px");
</script>
</div>
</li>
<li aria-hidden="true" class="">
<div class="uk-grid scenario-content uk-height-1-1">
<div class="uk-width-1-3 scenario-1"><h3>Scenario 1</h3>
<img src="images/industry-1.png" />
</div>
<div class="uk-width-1-3 scenario-2"><h3>Scenario 2</h3>
<img src="images/industry-2.png" />
</div>
<div class="uk-width-1-3 scenario-3"><h3>What Can I do?</h3>
<ul style="font-size:0.8em;">
<li>Public Energy and Head Production makes up 37% of carbon emissions. You can reduce your electricity use by installing insulation, double glassed windows and turning off appliances</li>
<li>Road transportation make sup of 15.9% of carbon emissions. Walk and catch public transport to reduce the amount. Even small actions like making sure your tyres are at the right pressure will reduce the amount of fossils fuels are being burnt</li>
<li>10% of carbon emissions are produced by animals raised for meat. Try having one meat free day a week</li>
</ul>
</div>
</div>
</li>
</ul>
</div>
<div id="data-1">
<ul class="uk-tab" data-uk-tab data-uk-switcher="{connect:'#tab-content-1'}">
<li class="uk-active"><a href="">Explore</a></li>
<li><a href="">Find out more</a></li>
</ul>
<ul id="tab-content-1" class="uk-switcher">
<li class="uk-active" aria-hidden="false">
<div class="graph-content">
<h2>How Hefty is your Pollution?</h2>
<div>
This plot shows who and what is emitting carbon. Explore and find who is the worse emitter. What do you think can be done to reduce carbon emissions?
This data is provided by The National Green House Inventory.
</div>
<br/>
<iframe width="640" height="480" scrolling="no" frameborder="no"
src="https://www.google.com/fusiontables/embedviz?q=select+col0+from+1_9CpzzKICdERWJKUlNjoswt-qkOZFS2aoWwaT-KB+where+col15+%3D+'Air+Total'&viz=MAP&h=false&lat=-37.59307231807633&lng=144.51358411718752&t=1&z=8&l=col0&y=2&tmplt=2&hml=ONE_COL_LAT_LNG"></iframe>
</div>
</li>
<li aria-hidden="true" class="">
<div class="uk-grid scenario-content uk-height-1-1">
<div class="uk-width-1-3 scenario-1"><h3>Scenario 1</h3>
<img src="images/industry-1.png" />
</div>
<div class="uk-width-1-3 scenario-2"><h3>Scenario 2</h3>
<img src="images/industry-2.png" />
</div>
<div class="uk-width-1-3 scenario-3"><h3>What Can I do?</h3>
<ul style="font-size:0.8em;">
<li>Public Energy and Head Production makes up 37% of carbon emissions. You can reduce your electricity use by installing insulation, double glassed windows and turning off appliances</li>
<li>Road transportation make sup of 15.9% of carbon emissions. Walk and catch public transport to reduce the amount. Even small actions like making sure your tyres are at the right pressure will reduce the amount of fossils fuels are being burnt</li>
<li>10% of carbon emissions are produced by animals raised for meat. Try having one meat free day a week</li>
</ul>
</div>
</div>
</li>
</ul>
</div>
<div id="data-2">
<div class="content">
<h2 class="content-head is-center">Write to your member of parliment</h2>
<div>
You can do more by writing to your member of parliment. Select your teritory and write a message and we will send on an email to the relevant representative.
</div>
<div class="pure-g">
<div class="l-box-lrg pure-u-1 pure-u-md-2-5">
<form class="pure-form pure-form-stacked">
<fieldset>
<label for="name">Your Name</label>
<input id="name" type="text" placeholder="Your Name">
<div class="uk-button-dropdown" data-uk-dropdown="" aria-haspopup="true" aria-expanded="false">
<button class="uk-button">New South Wales <i class="uk-icon-caret-down"></i></button>
<div class="uk-dropdown uk-dropdown-small">
<ul class="uk-nav uk-nav-dropdown">
<li><a href="#">Queensland</a></li>
<li><a href="#">Victoria</a></li>
</ul>
</div>
</div>
<label for="password">Message</label>
<textarea id="password" style="width: 400px;" type="password" placeholder="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.">
</textarea>
<button type="submit" class="pure-button">Send</button>
</fieldset>
</form>
</div>
</div>
</div>
</div>
<!-- <ul class="uk-tab" data-uk-tab data-uk-switcher="{connect:'#tab-content-2'}">
<li class="uk-active"><a href="">Explore</a></li>
<li><a href="">Find out more</a></li>
</ul>
<ul id="tab-content-2" class="uk-switcher">
<li class="uk-active" aria-hidden="false">
<div class="graph-content">
<iframe width="500" height="300" scrolling="no" frameborder="no"
src="https://www.google.com/fusiontables/embedviz?q=select+col0+from+1_9CpzzKICdERWJKUlNjoswt-qkOZFS2aoWwaT-KB+where+col15+%3D+'Air+Total'&viz=MAP&h=false&lat=-37.59307231807633&lng=144.51358411718752&t=1&z=8&l=col0&y=2&tmplt=2&hml=ONE_COL_LAT_LNG"></iframe>
</div>
</li>
<li aria-hidden="true" class="">
<div class="uk-grid scenario-content uk-height-1-1">
<div class="uk-width-1-3 scenario-1"><h3>Scenario 1</h3>
<img src="images/industry-1.png" />
</div>
<div class="uk-width-1-3 scenario-2"><h3>Scenario 2</h3>
<img src="images/industry-2.png" />
</div>
<div class="uk-width-1-3 scenario-3"><h3>What Can I do?</h3>Lorum ipsum</div>
</div>
</li>
</ul> -->
<!--
<ul class="uk-subnav uk-subnav-pill" data-uk-switcher="{connect:'#subnav-pill-content-1'}">
<li class="uk-active" aria-expanded="true"><a href="#">Item</a></li>
<li aria-expanded="false" class=""><a href="#">Item</a></li>
<li aria-expanded="false" class=""><a href="#">Item</a></li>
</ul>
<ul id="subnav-pill-content-1" class="uk-switcher">
<li class="uk-active" aria-hidden="false">Hello!</li>
<li aria-hidden="true" class="">Hello again!</li>
<li aria-hidden="true" class="">Bazinga!</li>
</ul>-->
</div>
</div>
<!--
<h2 class="content-head is-center">Excepteur sint occaecat cupidatat.</h2>
<div class="pure-g">
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-rocket"></i>
Get Started Quickly
</h3>
<p>
Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.
</p>
</div>
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-mobile"></i>
Responsive Layouts
</h3>
<p>
Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.
</p>
</div>
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-th-large"></i>
Modular
</h3>
<p>
Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.
</p>
</div>
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-check-square-o"></i>
Plays Nice
</h3>
<p>
Phasellus eget enim eu lectus faucibus vestibulum. Suspendisse sodales pellentesque elementum.
</p>
</div> -->
</div>
</div>
<!-- <div class="ribbon l-box-lrg pure-g">
<div class="l-box-lrg is-center pure-u-1 pure-u-md-1-2 pure-u-lg-2-5">
<img class="pure-img-responsive" alt="File Icons" width="300" src="img/common/file-icons.png">
</div>
<div class="pure-u-1 pure-u-md-1-2 pure-u-lg-3-5">
<h2 class="content-head content-head-ribbon">Laboris nisi ut aliquip.</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor.
</p>
</div>
</div> -->
<!-- <div class="content">
<h2 class="content-head is-center">Dolore magna aliqua. Uis aute irure.</h2>
<div class="pure-g">
<div class="l-box-lrg pure-u-1 pure-u-md-2-5">
<form class="pure-form pure-form-stacked">
<fieldset>
<label for="name">Your Name</label>
<input id="name" type="text" placeholder="Your Name">
<label for="email">Your Email</label>
<input id="email" type="email" placeholder="Your Email">
<label for="password">Your Password</label>
<input id="password" type="password" placeholder="Your Password">
<button type="submit" class="pure-button">Sign Up</button>
</fieldset>
</form>
</div>
<div class="l-box-lrg pure-u-1 pure-u-md-3-5">
<h4>Contact Us</h4>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.
</p>
<h4>More Information</h4>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.
</p>
</div>
</div>
</div> -->
<div class="footer l-box is-center">
View the source of this layout to learn more. Made with love by the YUI Team.
</div>
</div>
<script>
function loadGraph() {
log('Loading graph...');
}
function setup() {
log('Start');
setupSocial();
setupNavigation();
}
function log(s) {
console.log(s);
}
function setupSocial() {
$('.prettySocial').prettySocial();
}
function setupNavigation() {
$('.js-navigation a').click(function() {
log('click');
var selected = $(this).attr('tag');
showNav(selected);
// var selectedItem = '#' + $(this).parent().attr('tag');
// var elements = ''
});
}
function showNav(selected) {
$('.js-navigation a').each(function(index, item) {
var element = $('#data-' + index);
var parent = $(item).parent();
if(selected == index) {
$(element).addClass('section-show').removeClass('section-hide');
$(parent).addClass('uk-active');
}
else {
$(element).addClass('section-hide').removeClass('section-show');
$(parent).removeClass('uk-active');
}
});
}
$(document).ready(function() {
setup();
showNav(0);
});
</script>
</body>
</html>