more improvements to look of challengeMap
This commit is contained in:
@ -53,8 +53,6 @@ module.exports = {
|
|||||||
basejumps = coursewareList.filter(function(challenge) {
|
basejumps = coursewareList.filter(function(challenge) {
|
||||||
if (challenge.challengeType === 4) { return challenge }
|
if (challenge.challengeType === 4) { return challenge }
|
||||||
});
|
});
|
||||||
console.log('completed', completedCoursewareList);
|
|
||||||
console.log('waypoints', waypoints);
|
|
||||||
|
|
||||||
res.render('challengeMap/show', {
|
res.render('challengeMap/show', {
|
||||||
title: "A map of all Free Code Camp's Challenges",
|
title: "A map of all Free Code Camp's Challenges",
|
||||||
|
@ -894,6 +894,11 @@ iframe.iphone {
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.svg-challenge-map {
|
||||||
|
fill: #333;
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
//uncomment this to see the dimensions of all elements outlined in red
|
//uncomment this to see the dimensions of all elements outlined in red
|
||||||
//* {
|
//* {
|
||||||
// border-color: red;
|
// border-color: red;
|
||||||
|
@ -5,8 +5,14 @@ block content
|
|||||||
.panel-heading.text-center
|
.panel-heading.text-center
|
||||||
h1 Challenge Map
|
h1 Challenge Map
|
||||||
.panel-body
|
.panel-body
|
||||||
h3 Waypoints
|
.col-md-offset-2
|
||||||
ol.col-md-offset-2
|
h2
|
||||||
|
span.fa.fa-flag
|
||||||
|
| Waypoints
|
||||||
|
|
||||||
|
.col-xs-12
|
||||||
|
h3.negative-15
|
||||||
|
ol
|
||||||
for waypoint in waypoints
|
for waypoint in waypoints
|
||||||
if completedCoursewareList.indexOf(waypoint._id) > -1
|
if completedCoursewareList.indexOf(waypoint._id) > -1
|
||||||
li.strikethrough
|
li.strikethrough
|
||||||
@ -14,8 +20,12 @@ block content
|
|||||||
else
|
else
|
||||||
li
|
li
|
||||||
a(href="/challenges/#{waypoint.name}")= waypoint.name
|
a(href="/challenges/#{waypoint.name}")= waypoint.name
|
||||||
h3 Bonfires
|
h2
|
||||||
ol.col-md-offset-2
|
span.ion-bonfire
|
||||||
|
| Bonfires
|
||||||
|
.col-xs-12
|
||||||
|
h3.negative-15
|
||||||
|
ol
|
||||||
for bonfire in bonfires
|
for bonfire in bonfires
|
||||||
if completedBonfireList.indexOf(bonfire._id) > -1
|
if completedBonfireList.indexOf(bonfire._id) > -1
|
||||||
li.strikethrough
|
li.strikethrough
|
||||||
@ -23,8 +33,12 @@ block content
|
|||||||
else
|
else
|
||||||
li
|
li
|
||||||
a(href="/bonfires/#{bonfire.name}")= bonfire.name
|
a(href="/bonfires/#{bonfire.name}")= bonfire.name
|
||||||
h3 Ziplines
|
h2
|
||||||
ol.col-md-offset-2
|
span.fa.fa-angle-double-right
|
||||||
|
| Ziplines
|
||||||
|
.col-xs-12
|
||||||
|
h3.negative-15
|
||||||
|
ol
|
||||||
for zipline in ziplines
|
for zipline in ziplines
|
||||||
if completedCoursewareList.indexOf(zipline._id) > -1
|
if completedCoursewareList.indexOf(zipline._id) > -1
|
||||||
li.strikethrough
|
li.strikethrough
|
||||||
@ -32,8 +46,12 @@ block content
|
|||||||
else
|
else
|
||||||
li
|
li
|
||||||
a(href="/challenges/#{zipline.name}")= zipline.name
|
a(href="/challenges/#{zipline.name}")= zipline.name
|
||||||
h3 Basejumps
|
h2
|
||||||
ol.col-md-offset-2
|
span.fa.fa-level-down
|
||||||
|
| Basejumps
|
||||||
|
.col-xs-12
|
||||||
|
h3.negative-15
|
||||||
|
ol
|
||||||
for basejump in basejumps
|
for basejump in basejumps
|
||||||
if completedCoursewareList.indexOf(basejump._id) > -1
|
if completedCoursewareList.indexOf(basejump._id) > -1
|
||||||
li.strikethrough
|
li.strikethrough
|
||||||
|
Reference in New Issue
Block a user