Merge branch 'staging' of https://github.com/FreeCodeCamp/freecodecamp into staging
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "AngularJS",
|
"name": "AngularJS",
|
||||||
"order": 0.017,
|
"order": 0.014,
|
||||||
"challenges": [
|
"challenges": [
|
||||||
{
|
{
|
||||||
"id": "bd7154d8c441eddfaeb5bdef",
|
"id": "bd7154d8c441eddfaeb5bdef",
|
||||||
|
@ -1,22 +1,23 @@
|
|||||||
{
|
{
|
||||||
"name": "Automated Testing and Debugging - Coming Soon",
|
"name": "Automated Testing and Debugging",
|
||||||
"order": 0.012,
|
"order": 0.012,
|
||||||
"challenges": [
|
"challenges": [
|
||||||
{
|
{
|
||||||
"id":"cf1111c1c16feddfaeb6bdef",
|
"id":"cf1111c1c16feddfaeb6bdef",
|
||||||
"title":"Using the Javascript console",
|
"title":"Use the Javascript Console",
|
||||||
"difficulty":0,
|
"difficulty":0,
|
||||||
"description":[
|
"description":[
|
||||||
"",
|
"Both Chrome and Firefox have excellent JavaScript consoles, also known as DevTools, for debugging your JavaScript.",
|
||||||
"The browser console is the best and easiest tool for debugging your scripts",
|
"You can find <code>Developer tools</code> in your Chrome's menu or <code>Web Console</code> in FireFox's menu. If you're using a different browser, or a mobile phone, we strongly recommend switching to desktop Firefox or Chrome.",
|
||||||
"It can normally be access by pressing f12 in most browsers or right click > inspect element > console",
|
"Let's print to this console using the <code>console.log</code> method.",
|
||||||
"Let's print to this console using the console.log method",
|
|
||||||
"<code>console.log('Hello world!')</code>"
|
"<code>console.log('Hello world!')</code>"
|
||||||
],
|
],
|
||||||
"tests":[
|
"tests":[
|
||||||
"assert(editor.getValue().match(/console\\.log\\(/gi), 'You should use the console.log method to ');"
|
"assert(editor.getValue().match(/console\\.log\\(/gi), 'You should use the console.log method to log \"Hello world!\" to your JavaScript console.');"
|
||||||
],
|
],
|
||||||
"challengeSeed":[
|
"challengeSeed":[
|
||||||
|
"",
|
||||||
|
"",
|
||||||
""
|
""
|
||||||
],
|
],
|
||||||
"challengeType":1
|
"challengeType":1
|
||||||
@ -26,22 +27,23 @@
|
|||||||
"title":"Using typeof",
|
"title":"Using typeof",
|
||||||
"difficulty":0,
|
"difficulty":0,
|
||||||
"description":[
|
"description":[
|
||||||
"",
|
"<code>typeof</code> is a useful method that we can use to check the type of a variable.",
|
||||||
"typeof is a useful method that we can use to check the type of a variable",
|
"One thing to be careful of is that an array has the type objects.",
|
||||||
"One thing to be careful of is that an array has the type objects",
|
"Try using each of these to see the types they have.",
|
||||||
"Try using each of these to see the types they have",
|
"<code>console.log(typeof(\"\"));</code>",
|
||||||
"<code>console.log(typeof(\"\"));",
|
"<code>console.log(typeof(0));</code>",
|
||||||
"console.log(typeof(0));",
|
"<code>console.log(typeof([]));</code>",
|
||||||
"console.log(typeof([]));",
|
"<code>console.log(typeof({}));</code>"
|
||||||
"console.log(typeof({}));</code>"
|
|
||||||
],
|
],
|
||||||
"tests":[
|
"tests":[
|
||||||
"assert(editor.getValue().match(/console\\.log\\(typeof\\(\"\"\\)\\);/gi), 'You should console.log the typeof a string');",
|
"assert(editor.getValue().match(/console\\.log\\(typeof\\(\"\"\\)\\);/gi), 'You should <code>console.log</code> the <code>typeof</code> a string.');",
|
||||||
"assert(editor.getValue().match(/console\\.log\\(typeof\\(0\\)\\);/gi), 'You should console.log the typeof a number');",
|
"assert(editor.getValue().match(/console\\.log\\(typeof\\(0\\)\\);/gi), 'You should <code>console.log</code> the <code>typeof</code> a number.');",
|
||||||
"assert(editor.getValue().match(/console\\.log\\(typeof\\(\\[\\]\\)\\);/gi), 'You should console.log the typeof a array');",
|
"assert(editor.getValue().match(/console\\.log\\(typeof\\(\\[\\]\\)\\);/gi), 'You should <code>console.log</code> the <code>typeof</code> an array.');",
|
||||||
"assert(editor.getValue().match(/console\\.log\\(typeof\\(\\{\\}\\)\\);/gi), 'You should console.log the typeof a object');"
|
"assert(editor.getValue().match(/console\\.log\\(typeof\\(\\{\\}\\)\\);/gi), 'You should <code>console.log</code> the <code>typeof</code> a object.');"
|
||||||
],
|
],
|
||||||
"challengeSeed":[
|
"challengeSeed":[
|
||||||
|
"",
|
||||||
|
"",
|
||||||
""
|
""
|
||||||
],
|
],
|
||||||
"challengeType":1
|
"challengeType":1
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Git",
|
"name": "Git",
|
||||||
"order" : 0.014,
|
"order" : 0.016,
|
||||||
"challenges": [
|
"challenges": [
|
||||||
{
|
{
|
||||||
"id": "bd7353d8c341eddeaeb5bd0f",
|
"id": "bd7353d8c341eddeaeb5bd0f",
|
||||||
|
@ -438,7 +438,7 @@
|
|||||||
"tests": [
|
"tests": [
|
||||||
"assert($(\"h2\").css(\"color\") === \"rgb(255, 0, 0)\", 'Your <code>h2</code> element should be red.')",
|
"assert($(\"h2\").css(\"color\") === \"rgb(255, 0, 0)\", 'Your <code>h2</code> element should be red.')",
|
||||||
"assert($(\"h2\").hasClass(\"red-text\"), 'Your <code>h2</code> element should have the class <code>red-text</code>.')",
|
"assert($(\"h2\").hasClass(\"red-text\"), 'Your <code>h2</code> element should have the class <code>red-text</code>.')",
|
||||||
"assert($(\"h2\").attr(\"style\") === undefined, 'Don't use inline style declarations like <code>style=\"color: red\"</code> in your <code>h2</code> element.')"
|
"assert($(\"h2\").attr(\"style\") === undefined, 'Do not use inline style declarations like <code>style=\"color: red\"</code> in your <code>h2</code> element.')"
|
||||||
],
|
],
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
"<style>",
|
"<style>",
|
||||||
@ -538,7 +538,7 @@
|
|||||||
"title": "Change the Font Size of an Element",
|
"title": "Change the Font Size of an Element",
|
||||||
"difficulty": 1.13,
|
"difficulty": 1.13,
|
||||||
"description": [
|
"description": [
|
||||||
"Create a second <code>p</code> element with the following <code>kitty ipsum text<code>: <code>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</code>",
|
"Create a second <code>p</code> element with the following <code>kitty ipsum text</code>: <code>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</code>",
|
||||||
"Then, inside your <code><style></code> element, set the <code>font-size</code> of all <code>p</code> elements to 16 pixels.",
|
"Then, inside your <code><style></code> element, set the <code>font-size</code> of all <code>p</code> elements to 16 pixels.",
|
||||||
"Font size is controlled by the <code>font-size</code> CSS attribute, like this: <code>h1 { font-size: 30px; }</code>.",
|
"Font size is controlled by the <code>font-size</code> CSS attribute, like this: <code>h1 { font-size: 30px; }</code>.",
|
||||||
"See if you can figure out how to give both of your <code>p</code> elements the font-size of 16 pixels (<code>16px</code>). You can do this inside the same <code><style></code> tag that we created for your <code>red-text</code> class."
|
"See if you can figure out how to give both of your <code>p</code> elements the font-size of 16 pixels (<code>16px</code>). You can do this inside the same <code><style></code> tag that we created for your <code>red-text</code> class."
|
||||||
|
@ -548,6 +548,7 @@
|
|||||||
"difficulty": "2.11",
|
"difficulty": "2.11",
|
||||||
"description": [
|
"description": [
|
||||||
"Find the smallest number that is evenly divisible by all numbers in the provided range.",
|
"Find the smallest number that is evenly divisible by all numbers in the provided range.",
|
||||||
|
"In other words, given the range [3,7], you will need to find the least common multiple of 3, 4, 5, 6, and 7.",
|
||||||
"The range will be an array of two numbers that will not necessarily be in numerical order.",
|
"The range will be an array of two numbers that will not necessarily be in numerical order.",
|
||||||
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>Read-Search-Ask</a> if you get stuck. Try to pair program. Write your own code."
|
"Remember to use <a href='//github.com/FreeCodeCamp/freecodecamp/wiki/How-to-get-help-when-you-get-stuck' target='_blank'>Read-Search-Ask</a> if you get stuck. Try to pair program. Write your own code."
|
||||||
],
|
],
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Intermediate Front End Development Projects",
|
"name": "Intermediate Front End Development Projects",
|
||||||
"order": 0.018,
|
"order": 0.015,
|
||||||
"challenges": [
|
"challenges": [
|
||||||
{
|
{
|
||||||
"id": "bd7158d8c442eddfaeb5bd18",
|
"id": "bd7158d8c442eddfaeb5bd18",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "MongoDB",
|
"name": "MongoDB",
|
||||||
"order" : 0.016,
|
"order" : 0.018,
|
||||||
"challenges": [
|
"challenges": [
|
||||||
{
|
{
|
||||||
"id": "bd7243d8c341eddeaeb5bd0f",
|
"id": "bd7243d8c341eddeaeb5bd0f",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Node.js and Express.js",
|
"name": "Node.js and Express.js",
|
||||||
"order" : 0.015,
|
"order" : 0.017,
|
||||||
"challenges": [
|
"challenges": [
|
||||||
{
|
{
|
||||||
"id": "bd7153d8c441eddfaeb5bd0f",
|
"id": "bd7153d8c441eddfaeb5bd0f",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Object Oriented and Functional Programming",
|
"name": "Object Oriented and Functional Programming",
|
||||||
"order": 0.009,
|
"order": 0.010,
|
||||||
"note": [
|
"note": [
|
||||||
"Waypoint: Closures",
|
"Waypoint: Closures",
|
||||||
"Waypoint: Factories",
|
"Waypoint: Factories",
|
||||||
@ -15,7 +15,8 @@
|
|||||||
"title":"Waypoint: A Review On Objects",
|
"title":"Waypoint: A Review On Objects",
|
||||||
"difficulty":0,
|
"difficulty":0,
|
||||||
"description":[
|
"description":[
|
||||||
"Before we dive into Object Oriented Programming Let's take a quick look over objects in javascript"
|
"Before we dive into Object Oriented Programming, let's revisit JavaScript objects.",
|
||||||
|
"Give your <code>motorBike</code> object the correct attributes."
|
||||||
],
|
],
|
||||||
"tests":[
|
"tests":[
|
||||||
"assert(motorBike.wheels===2, 'You should have given motorBike two wheels');",
|
"assert(motorBike.wheels===2, 'You should have given motorBike two wheels');",
|
||||||
@ -47,7 +48,8 @@
|
|||||||
"title":"Waypoint: Constructing Objects",
|
"title":"Waypoint: Constructing Objects",
|
||||||
"difficulty":0,
|
"difficulty":0,
|
||||||
"description":[
|
"description":[
|
||||||
"We are also able to create Objects using functions"
|
"We are also able to create objects using functions.",
|
||||||
|
""
|
||||||
],
|
],
|
||||||
"tests":[
|
"tests":[
|
||||||
"assert((new Car()).wheels === 4, \"myCar.wheels should be four. Make sure that you haven't changed this value\");",
|
"assert((new Car()).wheels === 4, \"myCar.wheels should be four. Make sure that you haven't changed this value\");",
|
||||||
@ -55,12 +57,11 @@
|
|||||||
"assert(typeof((new Car()).seats) === 'number', 'myCar.seats should be a number');"
|
"assert(typeof((new Car()).seats) === 'number', 'myCar.seats should be a number');"
|
||||||
],
|
],
|
||||||
"challengeSeed":[
|
"challengeSeed":[
|
||||||
"//Let's add the properties engine and seats to the car in the same way that the property wheels has been added below. They should both be numbers",
|
"// Let's add the properties engine and seats to the car in the same way that the property wheels has been added below. They should both be numbers.",
|
||||||
"var Car = function(){",
|
"var Car = function(){",
|
||||||
" this.wheels = 4;",
|
" this.wheels = 4;",
|
||||||
"};",
|
"};",
|
||||||
"",
|
"",
|
||||||
"//Instantiated Here",
|
|
||||||
"var myCar = new Car();",
|
"var myCar = new Car();",
|
||||||
"",
|
"",
|
||||||
"(function(){return(JSON.stringify(myCar));})();"
|
"(function(){return(JSON.stringify(myCar));})();"
|
||||||
|
@ -167,7 +167,6 @@ module.exports = function(app) {
|
|||||||
originalStoryLink: dashedName,
|
originalStoryLink: dashedName,
|
||||||
originalStoryAuthorEmail: story.author.email || '',
|
originalStoryAuthorEmail: story.author.email || '',
|
||||||
author: story.author,
|
author: story.author,
|
||||||
description: story.description,
|
|
||||||
rank: story.upVotes.length,
|
rank: story.upVotes.length,
|
||||||
upVotes: story.upVotes,
|
upVotes: story.upVotes,
|
||||||
id: story.id,
|
id: story.id,
|
||||||
|
@ -23,19 +23,18 @@ h3.row
|
|||||||
.col-xs-12.col-sm-12.col-md-6
|
.col-xs-12.col-sm-12.col-md-6
|
||||||
h4= storyMetaDescription
|
h4= storyMetaDescription
|
||||||
.col-xs-12
|
.col-xs-12
|
||||||
h4= description
|
.spacer
|
||||||
.negative-5
|
if !hasUserVoted
|
||||||
if !hasUserVoted
|
a#upvote.btn.btn-no-shadow.btn-primary.btn-xs.btn-primary-ghost Upvote
|
||||||
a#upvote.btn.btn-no-shadow.btn-primary.btn-xs.btn-primary-ghost Upvote
|
|
||||||
|  · 
|
|
||||||
else
|
|
||||||
a#upvote.btn.disabled.btn-no-shadow.btn-primary.btn-xs.btn-primary-ghost Upvoted!
|
|
||||||
|  · 
|
|
||||||
span#storyRank= rank + (rank > 1 ? " points" : " point")
|
|
||||||
|  · 
|
|  · 
|
||||||
span Posted #{timeAgo}
|
else
|
||||||
span  by 
|
a#upvote.btn.disabled.btn-no-shadow.btn-primary.btn-xs.btn-primary-ghost Upvoted!
|
||||||
a(href="/" + author.username) @#{author.username}
|
|  · 
|
||||||
|
span#storyRank= rank + (rank > 1 ? " points" : " point")
|
||||||
|
|  · 
|
||||||
|
span Posted #{timeAgo}
|
||||||
|
span  by 
|
||||||
|
a(href="/" + author.username) @#{author.username}
|
||||||
|
|
||||||
script.
|
script.
|
||||||
if (image) {
|
if (image) {
|
||||||
|
@ -45,10 +45,3 @@
|
|||||||
if (storyImage) {
|
if (storyImage) {
|
||||||
$('#image-display').removeClass('hidden-element');
|
$('#image-display').removeClass('hidden-element');
|
||||||
}
|
}
|
||||||
var text_max = 140;
|
|
||||||
$('#textarea_feedback').html(text_max + ' characters remaining');
|
|
||||||
$('#description-box').keyup(function () {
|
|
||||||
var text_length = $('#description-box').val().length;
|
|
||||||
var text_remaining = text_max - text_length;
|
|
||||||
$('#textarea_feedback').html(text_remaining + ' characters remaining');
|
|
||||||
});
|
|
||||||
|
Reference in New Issue
Block a user