update cost calculator

This commit is contained in:
Quincy Larson
2015-08-24 19:19:47 -07:00
parent e5a9b697ae
commit a94c919374
3 changed files with 24 additions and 13 deletions

View File

@ -28,7 +28,7 @@ $(document).ready(function () {
$('#chosen').text('Coming from ' + city.replace(/-/g, ' ').replace(/\w\S*/g, function (txt) {
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
}) + ', and making $' + lastYearsIncome.toString().replace(/0000$/, '0,000') + ', your true costs will be:');
var categoryNames = ['Lost Wages', 'Financing Cost', 'Housing Cost', 'Tuition / Wage Garnishing'];
var categoryNames = ['Lost Wages', 'Financing Cost', 'Housing Cost', 'Tuition / Est. Wage Garnishing'];
bootcamps.forEach(function (camp) {
var x0 = 0;
if (camp.cities.indexOf(city) > -1) {
@ -38,7 +38,7 @@ $(document).ready(function () {
}
camp.mapping = [{
name: camp.name,
label: 'Tuition / Wage Garnishing',
label: 'Tuition / Est. Wage Garnishing',
value: +camp.cost,
x0: x0,
x1: x0 += +camp.cost

View File

@ -221,7 +221,28 @@
"cities": [
"portland"
]
}, {
},
{
"name": "Viking Code School",
"cost": "18000",
"housing": "0",
"finance": false,
"weeks": "16",
"cities": [
"online"
]
},
{
"name": "App Academy",
"cost": "18000",
"housing": "500",
"finance": false,
"weeks": "12",
"cities": [
"san-francisco"
]
},
{
"name": "Turing School",
"cost": "17500",
"housing": "400",
@ -230,13 +251,4 @@
"cities": [
"denver"
]
}, {
"name": "Free Code Camp",
"cost": "0",
"housing": "0",
"finance": false,
"weeks": "0",
"cities": [
"online"
]
}]

View File

@ -101,7 +101,6 @@ block content
li.large-li The most substantial cost for most people is lost wages. A 40-hour-per-week job at the US Federal minimum wage would pay at least $15,000 per year. You can read more about economic cost
a(href='https://en.wikipedia.org/wiki/Economic_cost' target='_blank') here
| .
li.large-li Free Code Camp. We don't charge tuition or garnish wages. We're fully online so you don't have to move. We're self-paced so you don't have to quit your job. Thus, your true cost of attending Free Code Camp will be $0.
.spacer
.row
.col-xs-12.col-sm-6