Skip to content

Commit d244e1e

Browse files
committed
Jekyllized completed
1 parent 18c1b19 commit d244e1e

16 files changed

+4762
-86
lines changed

_includes/.footer.html.swp

12 KB
Binary file not shown.

_includes/footer.html

+11-9
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ <h2 class="footer-heading">{{ site.title }}</h2>
1717
{% if site.github_username %}
1818
<li>
1919
<a href="https://github.com/{{ site.github_username }}">
20-
<span class="icon icon--github">
21-
<svg viewBox="0 0 16 16">
22-
<path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/>
23-
</svg>
24-
</span>
2520

2621
<span class="username">{{ site.github_username }}</span>
2722
</a>
@@ -32,10 +27,6 @@ <h2 class="footer-heading">{{ site.title }}</h2>
3227
<li>
3328
<a href="https://twitter.com/{{ site.twitter_username }}">
3429
<span class="icon icon--twitter">
35-
<svg viewBox="0 0 16 16">
36-
<path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809
37-
c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/>
38-
</svg>
3930
</span>
4031

4132
<span class="username">{{ site.twitter_username }}</span>
@@ -52,4 +43,15 @@ <h2 class="footer-heading">{{ site.title }}</h2>
5243

5344
</div>
5445

46+
<script src="{{site.baseurl}}/assets/d3/d3.v3.min.js" charset="utf-8"></script>
47+
<script src="{{site.baseurl}}/assets/chartjs/1.0.2/chart.min.js" charset="utf-8"></script>
48+
<script src="{{site.baseurl}}/assets/jQuery/2.1.3/jquery.min.js"></script>
49+
<script src="{{site.baseurl}}/assets/holder.js"></script>
50+
<script src="{{site.baseurl}}/assets/bootstrap/3.3.4/js/bootstrap.min.js"></script>
51+
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
52+
<script src="{{site.baseurl}}/assets/ie10-viewport-bug-workaround.js"></script>
53+
54+
{% if page.js %}
55+
<script src="{{site.baseurl}}/assets/{{page.js}}"></script>
56+
{% endif %}
5557
</footer>

_includes/header.html

+21-18
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
1-
<header class="site-header">
21

3-
<div class="wrapper">
4-
5-
<a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
6-
7-
<nav class="site-nav">
8-
<a href="#" class="menu-icon">
9-
<svg viewBox="0 0 18 15">
10-
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
11-
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
12-
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
13-
</svg>
14-
</a>
15-
16-
<div class="trigger">
2+
<nav class="navbar navbar-inverse navbar-fixed-top">
3+
<div class="container-fluid">
4+
<div class="navbar-header">
5+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
6+
<span class="sr-only">Toggle navigation</span>
7+
<span class="icon-bar"></span>
8+
<span class="icon-bar"></span>
9+
<span class="icon-bar"></span>
10+
</button>
11+
<a class="navbar-brand" href="{{site.baseurl}}about/">SDG data</a>
12+
</div>
13+
<div id="navbar" class="navbar-collapse collapse">
14+
<ul class="nav navbar-nav navbar-right">
1715
{% for page in site.pages %}
1816
{% if page.title %}
19-
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
17+
<li><a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></li>
2018
{% endif %}
2119
{% endfor %}
20+
</ul>
21+
</div>
2222
</div>
2323
</nav>
2424

25-
</div>
2625

27-
</header>
26+
27+
28+
29+
30+

_layouts/empty.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
{% include head.html %}
5+
6+
<body>
7+
8+
{% include header.html %}
9+
10+
{{ content }}
11+
12+
{% include footer.html %}
13+
14+
</body>
15+
16+
</html>

assets/bootstrap/3.3.4/css/bootstrap-theme.min.css

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/bootstrap/3.3.4/css/bootstrap.min.css

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/bootstrap/3.3.4/dashboard.css

+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
/*
2+
* Base structure
3+
*/
4+
5+
/* Move down content because we have a fixed navbar that is 50px tall */
6+
body {
7+
padding-top: 50px;
8+
}
9+
10+
11+
/*
12+
* Global add-ons
13+
*/
14+
15+
.sub-header {
16+
padding-bottom: 10px;
17+
border-bottom: 1px solid #eee;
18+
}
19+
20+
/*
21+
* Top navigation
22+
* Hide default border to remove 1px line.
23+
*/
24+
.navbar-fixed-top {
25+
border: 0;
26+
}
27+
28+
/*
29+
* Sidebar
30+
*/
31+
32+
/* Hide for mobile, show later */
33+
.sidebar {
34+
display: none;
35+
}
36+
@media (min-width: 768px) {
37+
.sidebar {
38+
position: fixed;
39+
top: 51px;
40+
bottom: 0;
41+
left: 0;
42+
z-index: 1000;
43+
display: block;
44+
padding: 20px;
45+
overflow-x: hidden;
46+
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
47+
background-color: #f5f5f5;
48+
border-right: 1px solid #eee;
49+
}
50+
}
51+
52+
/* Sidebar navigation */
53+
.nav-sidebar {
54+
margin-right: -21px; /* 20px padding + 1px border */
55+
margin-bottom: 20px;
56+
margin-left: -20px;
57+
}
58+
.nav-sidebar > li > a {
59+
padding-right: 20px;
60+
padding-left: 20px;
61+
}
62+
.nav-sidebar > .active > a,
63+
.nav-sidebar > .active > a:hover,
64+
.nav-sidebar > .active > a:focus {
65+
color: #fff;
66+
background-color: #428bca;
67+
}
68+
69+
70+
/*
71+
* Main content
72+
*/
73+
74+
.main {
75+
padding: 20px;
76+
}
77+
@media (min-width: 768px) {
78+
.main {
79+
padding-right: 40px;
80+
padding-left: 40px;
81+
}
82+
}
83+
.main .page-header {
84+
margin-top: 0;
85+
}
86+
87+
88+
/*
89+
* Placeholder dashboard ideas
90+
*/
91+
92+
.placeholders {
93+
margin-bottom: 30px;
94+
text-align: center;
95+
}
96+
.placeholders h4 {
97+
margin-bottom: 0;
98+
}
99+
.placeholder {
100+
margin-bottom: 20px;
101+
}
102+
.placeholder img {
103+
display: inline-block;
104+
border-radius: 50%;
105+
}

assets/bootstrap/3.3.4/js/bootstrap.min.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/chartjs/1.0.2/chart.min.js

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/d3/d3.v3.min.js

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/jQuery/2.1.3/jquery.min.js

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/site.js assets/list.js

+3-59
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var stats = {};
66
files = ["goals","targets","indicators"];
77
files.forEach(function (f) {
88
console.log("Loading "+f);
9-
d3.json("./data/"+f+".json", function (error, data) {
9+
d3.json("/data/"+f+".json", function (error, data) {
1010
//for (var attrname in data) { sdgs[attrname] = data[attrname]; }
1111
sdgs.push(data);
1212
if (sdgs.length==3) { data_loaded(sdgs); }
@@ -26,7 +26,6 @@ function update_stats(sdgs){
2626
document.getElementById("targets-num").innerHTML = sdgs[1]["targets"].length+" Targets";
2727
document.getElementById("indicators-num").innerHTML = sdgs[2]["indicators"].length+" Indicators";
2828
add_stack_plot(stats);
29-
add_pie_leads(stats);
3029
}
3130

3231
function add_stack_plot(stats){
@@ -71,63 +70,8 @@ function add_stack_plot(stats){
7170
var myBarChart = new Chart(ctx).Bar(data, options);
7271

7372
}
74-
75-
function histogram_words(words_array){
76-
var frequency = {};
77-
// set all initial frequencies for each word to zero
78-
words_array.forEach(
79-
function(value) { frequency[value] = 0; }
80-
);
81-
// create new array with words and their frequencies
82-
var uniques = words_array.filter(
83-
function(value) { return ++frequency[value] == 1; }
84-
);
85-
return frequency;
86-
}
87-
88-
function add_pie_leads(stats){
89-
90-
var non_flat_leads=sdgs[2]["indicators"].map(function(i){return i["leads"].split(",")})
91-
var leads = [].concat.apply([], non_flat_leads).map(Function.prototype.call, String.prototype.trim)
92-
var leads_histogram = histogram_words(leads);
93-
console.log(leads_histogram);
94-
95-
var data = [
96-
{
97-
value: 300,
98-
color:"#F7464A",
99-
highlight: "#FF5A5E",
100-
label: "Red"
101-
},
102-
{
103-
value: 50,
104-
color: "#46BFBD",
105-
highlight: "#5AD3D1",
106-
label: "Green"
107-
},
108-
{
109-
value: 100,
110-
color: "#FDB45C",
111-
highlight: "#FFC870",
112-
label: "Yellow"
113-
}
114-
]
115-
116-
options = {
117-
segmentShowStroke : true,
118-
segmentStrokeColor : "#fff",
119-
segmentStrokeWidth : 2,
120-
percentageInnerCutout : 50, // This is 0 for Pie charts
121-
animationSteps : 100,
122-
animationEasing : "easeOutBounce",
123-
animateRotate : true,
124-
animateScale : true,
125-
}
126-
var canvas = document.getElementById("pie_leads")
127-
var pie_leads = canvas.getContext("2d");
128-
Chart.defaults.global.multiTooltipTemplate = "<%= value %> <%= datasetLabel %> ";
129-
var myPieChart = new Chart(pie_leads).Pie(data,options);
130-
}
73+
74+
13175

13276

13377

data/goals.json

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"goals": [
3+
{
4+
"goal": 1,
5+
"title": "End poverty in all its forms everywhere"
6+
},
7+
{
8+
"goal": 2,
9+
"title": "End hunger, achieve food security and improved nutrition and promote sustainable agriculture"
10+
},
11+
{
12+
"goal": 3,
13+
"title": "Ensure healthy lives and promote well-being for all at all ages"
14+
},
15+
{
16+
"goal": 4,
17+
"title": "Ensure inclusive and equitable quality education and promote lifelong learning opportunities for all"
18+
},
19+
{
20+
"goal": 5,
21+
"title": "Achieve gender equality and empower all women and girls"
22+
},
23+
{
24+
"goal": 6,
25+
"title": "Ensure availability and sustainable management of water and sanitation for all"
26+
},
27+
{
28+
"goal": 7,
29+
"title": "Ensure access to affordable, reliable, sustainable and modern energy for all"
30+
},
31+
{
32+
"goal": 8,
33+
"title": "Promote sustained, inclusive and sustainable economic growth, full and productive employment and decent work for all"
34+
},
35+
{
36+
"goal": 9,
37+
"title": "Build resilient infrastructure, promote inclusive and sustainable industrialization and foster innovation"
38+
},
39+
{
40+
"goal": 10,
41+
"title": "Reduce inequality within and among countries"
42+
},
43+
{
44+
"goal": 11,
45+
"title": "Make cities and human settlements inclusive, safe, resilient and sustainable"
46+
},
47+
{
48+
"goal": 12,
49+
"title": "Ensure sustainable consumption and production patterns"
50+
},
51+
{
52+
"goal": 13,
53+
"title": "Take urgent action to combat climate change and its impacts*"
54+
},
55+
{
56+
"goal": 14,
57+
"title": "Conserve and sustainably use the oceans, seas and marine resources for sustainable development"
58+
},
59+
{
60+
"goal": 15,
61+
"title": "Protect, restore and promote sustainable use of terrestrial ecosystems, sustainably manage forests, combat desertification, and halt and reverse land degradation and halt biodiversity loss"
62+
},
63+
{
64+
"goal": 16,
65+
"title": "Promote peaceful and inclusive societies for sustainable development, provide access to justice for all and build effective, accountable and inclusive institutions at all levels"
66+
},
67+
{
68+
"goal": 17,
69+
"title": "Strengthen the means of implementation and revitalize the global partnership for sustainable development"
70+
}
71+
],
72+
"source": {
73+
"url": "https://sustainabledevelopment.un.org/sdgsproposal",
74+
"date": "28/04/2015"
75+
}
76+
}

0 commit comments

Comments
 (0)