-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add animation, create pie charts for numbers
- Loading branch information
1 parent
c82d5d2
commit 9cbb555
Showing
13 changed files
with
361 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,86 @@ | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width initial-scale=1" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width initial-scale=1" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
|
||
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}{% if page.tagline %} || {{page.tagline}}{%endif%} || OpenTechSchool.org</title> | ||
<meta name="description" content="{{ site.description }}" /> | ||
<meta name="author" content="OpenTechSchool"> | ||
<meta property="og:title" content="OpenTechSchool" /> | ||
<meta property="og:type" content="school" /> | ||
<meta property="og:url" content="http://{{ site.url }}" /> | ||
<meta property="og:image" content="http://{{ site.url }}/images/ots_logo_fb.png" /> | ||
<meta property="og:site_name" content="{{ site.url }}" /> | ||
<meta property="og:description" content="{{ site.description }}" /> | ||
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}{% if page.tagline %} || {{page.tagline}}{%endif%} || OpenTechSchool.org</title> | ||
<meta name="description" content="{{ site.description }}" /> | ||
<meta name="author" content="OpenTechSchool"> | ||
<meta property="og:title" content="OpenTechSchool" /> | ||
<meta property="og:type" content="school" /> | ||
<meta property="og:url" content="http://{{ site.url }}" /> | ||
<meta property="og:image" content="http://{{ site.url }}/images/ots_logo_fb.png" /> | ||
<meta property="og:site_name" content="{{ site.url }}" /> | ||
<meta property="og:description" content="{{ site.description }}" /> | ||
|
||
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}"> | ||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"> | ||
|
||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | ||
<script type="text/javascript"> | ||
(function(){ | ||
var _queue = []; | ||
window.MEETUPCOM_KEY = '38406b383fa43605b6b234269316'; | ||
window.onStartUp = function(fn){ | ||
if (document.readyState === "loading") { | ||
_queue.push(fn); | ||
} else { | ||
// we are past loading, start immediately. | ||
fn(); | ||
} | ||
} | ||
document.onreadystatechange = function () { | ||
if (document.readyState === "interactive") { | ||
_queue.forEach(function(fn){ | ||
// execute all queued actions | ||
fn(); | ||
}); | ||
} | ||
} | ||
function _thenRender(target, templates, fn) { | ||
return (function(prms) { | ||
return prms.then(function(data) { | ||
var args = (templates || []).map( | ||
function (tmpl) { return document.getElementById(tmpl).innerHTML}); | ||
// no function provided? directly render by passing data to first template | ||
if (!fn) return args[0].template(data); | ||
args.unshift(data); | ||
return fn.apply(fn, args); | ||
}) | ||
.then(function(rendered) { | ||
target.innerHTML = rendered; | ||
}) | ||
.catch(function(error){ | ||
target.innerHTML = error | ||
}); | ||
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}"> | ||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"> | ||
|
||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | ||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.7.3/d3.min.js"></script> | ||
<script type="text/javascript"> | ||
(function(){ | ||
var _queue = []; | ||
window.MEETUPCOM_KEY = '38406b383fa43605b6b234269316'; | ||
window.onStartUp = function(fn){ | ||
if (document.readyState === "loading") { | ||
_queue.push(fn); | ||
} else { | ||
// we are past loading, start immediately. | ||
fn(); | ||
} | ||
} | ||
document.onreadystatechange = function () { | ||
if (document.readyState === "interactive") { | ||
_queue.forEach(function(fn){ | ||
// execute all queued actions | ||
fn(); | ||
}); | ||
} | ||
} | ||
function _thenRender(target, templates, fn) { | ||
return (function(prms) { | ||
return prms.then(function(data) { | ||
var args = (templates || []).map( | ||
function (tmpl) { return document.getElementById(tmpl).innerHTML}); | ||
// no function provided? directly render by passing data to first template | ||
if (!fn) return args[0].template(data); | ||
args.unshift(data); | ||
return fn.apply(fn, args); | ||
}) | ||
.then(function(rendered) { | ||
target.innerHTML = rendered; | ||
}) | ||
} | ||
window.fetchAndRender = function( | ||
sourceUrl, // link to a json URL we will fetch | ||
targetId, // the target this should be rendered into | ||
templates, // any templateIDs it'd like us to fetch for them | ||
fn // the function to call | ||
) { | ||
var target = document.getElementById(targetId); | ||
return _thenRender(target, templates, fn)(fetch(sourceUrl) | ||
.then(function(resp) { return resp.json() })); | ||
} | ||
window.fetchJSONPAndRender = function( | ||
sourceUrl, // link to a json URL we will fetch | ||
targetId, // the target this should be rendered into | ||
templates, // any templateIDs it'd like us to fetch for them | ||
fn // the function to call | ||
) { | ||
var target = document.getElementById(targetId); | ||
var prms = new Promise(function (resolve, reject){ | ||
JSONP(sourceUrl, resolve); | ||
.catch(function(error){ | ||
target.innerHTML = error | ||
}); | ||
console.log(prms); | ||
_thenRender(target, templates, fn)(prms); | ||
return prms; | ||
} | ||
})() | ||
</script> | ||
|
||
}) | ||
} | ||
window.fetchAndRender = function( | ||
sourceUrl, // link to a json URL we will fetch | ||
targetId, // the target this should be rendered into | ||
templates, // any templateIDs it'd like us to fetch for them | ||
fn // the function to call | ||
) { | ||
var target = document.getElementById(targetId); | ||
return _thenRender(target, templates, fn)(fetch(sourceUrl) | ||
.then(function(resp) { return resp.json() })); | ||
} | ||
window.fetchJSONPAndRender = function( | ||
sourceUrl, // link to a json URL we will fetch | ||
targetId, // the target this should be rendered into | ||
templates, // any templateIDs it'd like us to fetch for them | ||
fn // the function to call | ||
) { | ||
var target = document.getElementById(targetId); | ||
var prms = new Promise(function (resolve, reject){ | ||
JSONP(sourceUrl, resolve); | ||
}); | ||
console.log(prms); | ||
_thenRender(target, templates, fn)(prms); | ||
return prms; | ||
} | ||
})() | ||
</script> | ||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,8 @@ | |
margin: 0 auto; | ||
margin-bottom: 20px; | ||
} | ||
|
||
// display | ||
.u-block { | ||
display: block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
@import | ||
"subnavigation" | ||
; | ||
@import "subnavigation"; | ||
@import "donuts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#donut { | ||
width: 29rem; | ||
height: 29rem; | ||
margin: 0 auto; | ||
} | ||
|
||
path.color0 { | ||
fill: $ots_constrat_pink; | ||
} | ||
|
||
path.color1 { | ||
fill: rgba(white, .8); | ||
} | ||
|
||
text { | ||
font-size: 3rem; | ||
fill: $white; | ||
font-family: $heading-font-family; | ||
font-weight: 700; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.