Merge pull request #2705 from QuincyLarson/alt-text

Alt text
This commit is contained in:
Berkeley Martinez
2015-08-25 22:30:44 -07:00
2 changed files with 8 additions and 5 deletions

View File

@@ -58,7 +58,8 @@
"This is important because without your <code>document ready function</code>, your code may run before your HTML is rendered, which would cause bugs.",
"Now let's write our first jQuery statement. All jQuery functions start with a <code>$</code>, usually referred to as a <code>dollar sign operator</code>, or simply as <code>bling</code>.",
"jQuery often selects an HTML element with a <code>selector</code>, then does something to that element.",
"For example, let's make all of your <code>button</code> elements bounce. Just add this code inside your <code>document ready function</code>: <code>$(\"button\").addClass(\"animated bounce\")</code>."
"For example, let's make all of your <code>button</code> elements bounce. Just add this code inside your <code>document ready function</code>: <code>$(\"button\").addClass(\"animated bounce\")</code>.",
"Note that we've already included both the jQuery library and the Animate.css library in your code editor. So you are using jQuery to apply the Animate.css <code>bounce</code> class to your <code>button</code> elements."
],
"tests": [
"assert($(\"button\").hasClass(\"animated\") && $(\"button\").hasClass(\"bounce\"), 'Use the jQuery <code>addClass&#40&#41</code> function to give the classes <code>animated</code> and <code>bounce</code> to your <code>button</code> elements.')",

View File

@@ -208,10 +208,12 @@ module.exports = function(app) {
debug('next challengeName', nextChallengeName);
if (!nextChallengeName || nextChallengeName === firstChallenge) {
req.flash('errors', {
msg: 'It looks like you have finished all of our challenges.' +
' Great job! Now on to helping nonprofits!'
msg: 'Once you have completed all of our challenges, you should '+
'join our <a href=\"//gitter.im/freecodecamp/HalfWayClub\"'+
'target=\"_blank\">Half Way Club</a> and start getting '+
'ready for our nonprofit projects.'
});
return res.redirect('/challenges/' + firstChallenge);
return res.redirect('/map');
}
res.redirect('/challenges/' + nextChallengeName);
}