",
" ",
" ",
diff --git a/views/account/account.jade b/views/account/account.jade
index 3ad7a8d442..1f7495fd50 100644
--- a/views/account/account.jade
+++ b/views/account/account.jade
@@ -260,28 +260,28 @@ block content
.panel.panel-info
.panel-heading.text-center Manage your account here:
.panel-body
- - if (!user.google || !user.facebook || !user.linkedin || !user.twitter)
- - if (!user.google)
+ if (!user.google || !user.facebook || !user.linkedin || !user.twitter)
+ if (!user.google)
.col-xs-12
a.btn.btn-lg.btn-block.btn-google-plus.btn-link-social(href='/auth/google')
i.fa.fa-google-plus
| Link Google with my account
- - if (!user.facebook)
+ if (!user.facebook)
.col-xs-12
a.btn.btn-lg.btn-block.btn-facebook.btn-link-social(href='/auth/facebook')
i.fa.fa-facebook
| Link Facebook with my account
- //- if (!user.github)
+ //if (!user.github)
// .col-xs-12
// a.btn.btn-lg.btn-block.btn-github.btn-link-social(href='/auth/github')
// i.fa.fa-github
// | Link GitHub with my account
- - if (!user.linkedin)
+ if (!user.linkedin)
.col-xs-12
a.btn.btn-lg.btn-block.btn-linkedin.btn-link-social(href='/auth/linkedin')
i.fa.fa-linkedin
| Link LinkedIn with my account
- - if (!user.twitter)
+ if (!user.twitter)
.col-xs-12
a.btn.btn-lg.btn-block.btn-twitter.btn-link-social(href='/auth/twitter')
i.fa.fa-twitter
diff --git a/views/account/show.jade b/views/account/show.jade
index 821aa3aac1..53f95cf724 100644
--- a/views/account/show.jade
+++ b/views/account/show.jade
@@ -23,15 +23,15 @@ block content
else
img.img-center.img-responsive.public-profile-img(src='https://s3.amazonaws.com/freecodecamp/camper-image-placeholder.png')
h1.text-center.negative-5.profile-social-icons
- - if (twitterHandle)
+ if (twitterHandle)
a.fa.fa-twitter-square.text-primary(title="@#{username}'s Twitter Profile", href="http://twitter.com/#{twitterHandle}", target='_blank')
- - if (githubProfile)
+ if (githubProfile)
a.fa.fa-github-square.text-primary(title="@#{username}'s GitHub Profile", href=githubProfile, target='_blank')
- - if (codepenProfile)
+ if (codepenProfile)
a.ion-social-codepen.text-primary(title="@#{username}'s CodePen Profile", href=codepenProfile, target='_blank')
- - if (linkedinProfile)
+ if (linkedinProfile)
a.fa.fa-linkedin-square.text-primary(title="@#{username}'s LinkedIn Profile", href=linkedinProfile, target='_blank')
- - if (facebookProfile)
+ if (facebookProfile)
a.fa.fa-facebook-square.text-primary(title="@#{username}'s Facebook Profile", href=facebookProfile, target='_blank')
.visible-md.visible-lg
.col-xs-12.col-sm-12.col-md-4.text-justify
@@ -137,7 +137,7 @@ block content
h4.col-sm-6.text-left Current Streak: #{currentStreak}
- - if (challenges.length > 0)
+ if (challenges.length > 0)
.col-sm-12
table.table.table-striped
thead
@@ -154,7 +154,7 @@ block content
a(href=challenge.solution, target='_blank') View my solution
br
- - if (bonfires.length > 0)
+ if (bonfires.length > 0)
.col-sm-12
table.table.table-striped
thead
diff --git a/views/coursewares/showBonfire.jade b/views/coursewares/showBonfire.jade
index 471be7dc68..b09968ebe3 100644
--- a/views/coursewares/showBonfire.jade
+++ b/views/coursewares/showBonfire.jade
@@ -136,16 +136,16 @@ block content
.text-center
.animated.zoomInDown.delay-half
span.completion-icon.ion-checkmark-circled.text-primary
- - if (user)
+ if (user)
a.animated.fadeIn.btn.btn-lg.btn-primary.btn-block#next-courseware-button(name='_csrf', value=_csrf) Go to my next challenge (ctrl + enter)
- - if (user.progressTimestamps.length > 2)
+ if (user.progressTimestamps.length > 2)
a.animated.fadeIn.btn.btn-lg.btn-block.btn-twitter(target="_blank", href="https://twitter.com/intent/tweet?text=I%20just%20#{verb}%20%40FreeCodeCamp%20#{name}&url=http%3A%2F%2Ffreecodecamp.com/challenges/#{dashedName}&hashtags=LearnToCode, JavaScript")
i.fa.fa-twitter
= phrase
- - else
+ else
a.animated.fadeIn.btn.btn-lg.signup-btn.btn-block(href='/login') Sign in so you can save your progress
include ../partials/challenge-modals
script.
diff --git a/views/coursewares/showHTML.jade b/views/coursewares/showHTML.jade
index 3d9677811a..c34ae02a61 100644
--- a/views/coursewares/showHTML.jade
+++ b/views/coursewares/showHTML.jade
@@ -38,7 +38,7 @@ block content
span.ion-arrow-up-b
| Less information
br
- - if (user)
+ if (user)
a.btn.btn-primary.btn-big.btn-block#next-courseware-button
| Go to my next challenge
br
@@ -48,14 +48,14 @@ block content
.btn-group.input-group.btn-group-justified
label.btn.btn-success#trigger-help-modal
i.fa.fa-medkit
- | Help(disabled)
+ | Help
label.btn.btn-success#trigger-issue-modal
i.fa.fa-bug
| Bug
.button-spacer
script.
var userLoggedIn = true;
- - else
+ else
a.btn.btn-lg.signup-btn.btn-block(href='/login') Sign in so you can save your progress
script.
var userLoggedIn = false;
diff --git a/views/coursewares/showJS.jade b/views/coursewares/showJS.jade
index 71b74db08d..43d954a2f2 100644
--- a/views/coursewares/showJS.jade
+++ b/views/coursewares/showJS.jade
@@ -77,12 +77,12 @@ block content
.text-center
.animated.zoomInDown.delay-half
span.completion-icon.ion-checkmark-circled.text-primary
- - if (user)
+ if (user)
a.animated.fadeIn.btn.btn-lg.btn-primary.btn-block#next-courseware-button(name='_csrf', value=_csrf, ng-disabled='completedWithForm.$invalid && existingUser.length > 0') Go to my next challenge (ctrl + enter)
- - if (points && points > 2)
+ if (points && points > 2)
a.animated.fadeIn.btn.btn-lg.btn-block.btn-twitter(href="https://twitter.com/intent/tweet?text=I%20just%20#{verb}%20%40FreeCodeCamp%20#{name}&url=http%3A%2F%2Ffreecodecamp.com/challenges/#{dashedName}&hashtags=LearnToCode, JavaScript" target="_blank")
i.fa.fa-twitter
= phrase
- - else
+ else
a.animated.fadeIn.btn.btn-lg.signup-btn.btn-block(href='/login') Sign in so you can save your progress
include ../partials/challenge-modals
diff --git a/views/coursewares/showZiplineOrBasejump.jade b/views/coursewares/showZiplineOrBasejump.jade
index 75dbcc3b28..ae72c47528 100644
--- a/views/coursewares/showZiplineOrBasejump.jade
+++ b/views/coursewares/showZiplineOrBasejump.jade
@@ -69,7 +69,7 @@ block content
.text-center
.animated.zoomInDown.delay-half
span.completion-icon.ion-checkmark-circled.text-primary
- - if (user)
+ if (user)
form.form-horizontal(novalidate='novalidate', name='completedWithForm')
.form-group.text-center
.col-xs-10.col-xs-offset-1.col-sm-8.col-sm-offset-2.col-md-8.col-md-offset-2.animated.fadeIn
diff --git a/views/partials/challenge-modals.jade b/views/partials/challenge-modals.jade
index 2715ed0b98..5270e77cd4 100644
--- a/views/partials/challenge-modals.jade
+++ b/views/partials/challenge-modals.jade
@@ -30,7 +30,7 @@
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
.modal-body.text-center
h3 Remember to use
- a('/field-guide/how-do-i-get-help-when-i-get-stuck') RSAP
+ a(href='/field-guide/how-do-i-get-help-when-i-get-stuck' target='_blank') RSAP
| .
h3 If you've already read the errors and searched Google, you should ask for help.
h3 This will open a help request in our Help chat room.
@@ -44,7 +44,7 @@
a.close.closing-x(href='#', data-dismiss='modal', aria-hidden='true') ×
.modal-body.text-center
h3 Remember to use
- a('/field-guide/how-do-i-get-help-when-i-get-stuck') RSAP
+ a(href='/field-guide/how-do-i-get-help-when-i-get-stuck' target='_blank') RSAP
| .
h3 If you've already read the errors and searched Google, you should ask for help.
h3 This will open a help request in our Help chat room.
From 7e08f9d8f5eb8fca241c7d6669fb6534436ca2b2 Mon Sep 17 00:00:00 2001
From: Quincy Larson
Date: Thu, 28 May 2015 17:22:45 -0700
Subject: [PATCH 06/17] update videos
---
seed_data/challenges/functional-programming.json | 2 +-
views/home.jade | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/seed_data/challenges/functional-programming.json b/seed_data/challenges/functional-programming.json
index 67f6a3b3f0..1bc0053f5b 100644
--- a/seed_data/challenges/functional-programming.json
+++ b/seed_data/challenges/functional-programming.json
@@ -6,7 +6,7 @@
"_id": "bd7129d8c441eddfbeb5bddf",
"name": "Waypoint: Practice Functional Programming",
"difficulty": 0.01,
- "challengeSeed": "114604814",
+ "challengeSeed": "129169463",
"description": [
"Functional programming holds the key to unlocking JavaScript's powerful asynchronous features.",
"Jafar Husain's 42-step interactive Functional Programming course will familiarize you with the various ways you can recombine these functions.",
diff --git a/views/home.jade b/views/home.jade
index 9cc4414cdb..f1058309b5 100644
--- a/views/home.jade
+++ b/views/home.jade
@@ -4,7 +4,7 @@ block content
if (user && user.progressTimestamps.length > 0)
.col-xs-12
.embed-responsive.embed-responsive-16by9
- iframe.embed-responsive-item(src='//player.vimeo.com/video/128853855')
+ iframe.embed-responsive-item(src='//player.vimeo.com/video/129168884')
br
h3 Note: If you're using Firefox and the buttons aren't working, do a full refresh (control + f5 on Windows and command + shift + r on Mac). We're working on this.
h3 Note: If you've already completed the HTML, CSS, Bootstrap Waypoints, you do not need to do these new Waypoints.
From 1b9325dec0b2a2d16c2a1e69da3a21240591c26c Mon Sep 17 00:00:00 2001
From: Quincy Larson
Date: Fri, 29 May 2015 10:43:14 -0700
Subject: [PATCH 07/17] start adding additional tests to html waypoints to make
them more robust
---
controllers/resources.js | 4 ++--
seed_data/challenges/basic-html5-and-css.json | 11 +++++++----
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/controllers/resources.js b/controllers/resources.js
index 7ccc73e9a8..c30def54e5 100644
--- a/controllers/resources.js
+++ b/controllers/resources.js
@@ -625,8 +625,8 @@ module.exports = {
text: "Anyone want to pair with @" + userName + " on " + challenge +
"?\nMake sure you install Screen Hero here:" +
"http://freecodecamp.com/field-guide/how-do-i-install-screenhero\n" +
- "Then start your pair program session with *" + userName +
- "* by typing \"/hero @" + userName + "\" into Slack.\n And *"+ userName +
+ "Then start your pair program session with *@" + userName +
+ "* by typing \"/hero @" + userName + "\" into Slack.\n And *@"+ userName +
"*, be sure to launch Screen Hero, then keep coding. " +
"Another camper may pair with you soon.",
channel: '#letspair',
diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json
index b99b57317c..db2b54ac5c 100644
--- a/seed_data/challenges/basic-html5-and-css.json
+++ b/seed_data/challenges/basic-html5-and-css.json
@@ -44,7 +44,8 @@
"h2 elements are slightly smaller than h1 elements. There are also h3, h4, h5 and h6 elements."
],
"tests": [
- "assert(($('h2').length > 0), 'Create an h2 elements.')",
+ "assert(($('h2').length > 0), 'Create an h2 element.')",
+ "assert(new RegExp('', 'gi').test(editor), 'Be sure to complete your h2 element with a closing tag.');",
"assert.isTrue((/cat(\\s)?photo(\\s)?app/gi).test($('h2').text()), 'Your h2 element should have the text \"CatPhotoApp\"')",
"assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1 element should have the text \"Hello World\"')"
],
@@ -74,7 +75,8 @@
],
"tests": [
"assert(($('p').length > 0), 'Create a paragraph element.')",
- "assert.isTrue((/hello(\\s)+paragraph/gi).test($('p').text()), 'Your paragraph element should have the text \"Hello Paragraph\"')"
+ "assert.isTrue((/hello(\\s)+paragraph/gi).test($('p').text()), 'Your paragraph element should have the text \"Hello Paragraph\"')",
+ "assert(new RegExp('
', 'gi').test(editor), 'Be sure to complete your paragraph element with a closing tag.');"
],
"challengeSeed": [
"
Hello World
",
@@ -1573,10 +1575,11 @@
"description": [
"Add a submit button to your form field with type submit and a test value of \"Submit\".",
"Let's add a submit button to your form. Clicking this button will send the data from your form to the URL you specified with your form's action attribute.",
- "Here's an example submit button: <button type='submit'>this button submits the form</button>"
+ "Here's an example submit button: <button type='submit'>this button submits the form</button>"
],
"tests": [
- "assert(new RegExp('', 'gi').test(editor), 'Make sure you have completely declared your button!');"
+ "assert(new RegExp('', 'gi').test(editor), 'Be sure to complete your button element with a closing tag.');"
],
"challengeSeed": [
"",
From 8b79a56135efb1a4917e06e504b8ae1bc24722c9 Mon Sep 17 00:00:00 2001
From: Quincy Larson
Date: Fri, 29 May 2015 11:04:27 -0700
Subject: [PATCH 08/17] improvements to early html challenges
---
seed_data/challenges/basic-html5-and-css.json | 56 ++++++++++---------
1 file changed, 29 insertions(+), 27 deletions(-)
diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json
index db2b54ac5c..9549a6f4a8 100644
--- a/seed_data/challenges/basic-html5-and-css.json
+++ b/seed_data/challenges/basic-html5-and-css.json
@@ -16,7 +16,7 @@
"To enable the \"Go to my next challenge\" button on this exercise, change your h1 tag's text to say \"Hello World\" instead of \"Hello\"."
],
"tests": [
- "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1 element should have the text \"Hello World\"')"
+ "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1 element should have the text \"Hello World\"')"
],
"challengeSeed": [
"
Hello
"
@@ -45,9 +45,9 @@
],
"tests": [
"assert(($('h2').length > 0), 'Create an h2 element.')",
- "assert(new RegExp('', 'gi').test(editor), 'Be sure to complete your h2 element with a closing tag.');",
- "assert.isTrue((/cat(\\s)?photo(\\s)?app/gi).test($('h2').text()), 'Your h2 element should have the text \"CatPhotoApp\"')",
- "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1 element should have the text \"Hello World\"')"
+ "assert(new RegExp('', 'gi').test(editor), 'Be sure to complete your h2 element with a closing tag.')",
+ "assert.isTrue((/cat(\\s)?photo(\\s)?app/gi).test($('h2').text()), 'Your h2 element should have the text \"CatPhotoApp\"')",
+ "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1 element should have the text \"Hello World\"')"
],
"challengeSeed": [
"
Hello World
"
@@ -74,9 +74,9 @@
"You can create a paragraph element like so: <p>I'm a p tag!</p>"
],
"tests": [
- "assert(($('p').length > 0), 'Create a paragraph element.')",
- "assert.isTrue((/hello(\\s)+paragraph/gi).test($('p').text()), 'Your paragraph element should have the text \"Hello Paragraph\"')",
- "assert(new RegExp('', 'gi').test(editor), 'Be sure to complete your paragraph element with a closing tag.');"
+ "assert(($('p').length > 0), 'Create a p element.')",
+ "assert.isTrue((/hello(\\s)+paragraph/gi).test($('p').text()), 'Your p element should have the text \"Hello Paragraph\"')",
+ "assert(new RegExp('', 'gi').test(editor), 'Be sure to complete your p element with a closing tag.')"
],
"challengeSeed": [
"
Hello World
",
@@ -105,7 +105,7 @@
"You'll encounter other self-closing element tags soon."
],
"tests": [
- "assert(($('br').length > 0), 'You should have a br element between your h2 and paragraph elements.')"
+ "assert(($('br').length > 0), 'Add a br element between your h2 and p elements.')"
],
"challengeSeed": [
"
Hello World
",
@@ -135,9 +135,10 @@
"You can start a comment with <!-- and end a comment with -->."
],
"tests": [
- "assert($('h1').length > 0, 'The h1 element should not be commented. It should be visible in the browser.')",
- "assert($('h2').length > 0, 'The h2 element should not be commented. It should be visible in the browser.')",
- "assert($('p').length > 0, 'The paragraph element should not be commented. It should be visible in the browser.')"
+ "assert($('h1').length > 0, 'Your h1 element should not be commented. It should be visible in the browser.')",
+ "assert($('h2').length > 0, 'Your h2 element should not be commented. It should be visible in the browser.')",
+ "assert($('p').length > 0, 'Your p element should not be commented. It should be visible in the browser.')",
+ "assert(!new RegExp('-->', 'gi').test(editor), 'Be sure to delete the --> that ends the comment.')"
],
"challengeSeed": [
"', 'gi').test(editor), 'Be sure to delete the --> that ends the comment.')"
],
"challengeSeed": [
@@ -168,14 +168,14 @@
"name": "Waypoint: Comment out HTML",
"difficulty": 0.014,
"description": [
- "Comment out the h1 element and the p element, but leave the h2 element uncommented.",
+ "Comment out your h1 element and your p element, but leave your h2 element uncommented.",
"Remember that in order to start a comment, you need to use <!-- and to end a comment, you need to use -->.",
- "Here you'll need to end the comment before the h2 element begins."
+ "Here you'll need to end the comment before your h2 element begins."
],
"tests": [
- "assert(($('h1').length == 0), 'The h1 element should be commented. It should not be visible in the browser.')",
- "assert(($('h2').length > 0), 'The h2 element should not commented. It should be visible in the browser.')",
- "assert(($('p').length == 0), 'The paragraph element should be commented. It should not be visible in the browser.')"
+ "assert(($('h1').length === 0), 'Comment out your h1 element so that it is not visible on your page.')",
+ "assert(($('h2').length > 0), 'Leave your h2 element uncommented so that is not visible on your page.')",
+ "assert(($('p').length === 0), 'Comment out your p element so that it is not visible on your page.')"
],
"challengeSeed": [
"