diff --git a/challenges/basic-javascript.json b/challenges/basic-javascript.json index ab30786d543..f1eb0f575cb 100644 --- a/challenges/basic-javascript.json +++ b/challenges/basic-javascript.json @@ -1130,7 +1130,7 @@ " var slotTwo;", " var slotThree;", " ", - " var images = ['http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens'];", + " var images = ['https://bit.ly/fcc-relaxing-cat','https://bit.ly/fcc-relaxing-cat','https://bit.ly/fcc-relaxing-cat','https://bit.ly/fcc-relaxing-cat','https://bit.ly/fcc-relaxing-cat'];", " ", " /*Don't modify above here*/", " ", @@ -1284,7 +1284,7 @@ " var slotTwo;", " var slotThree;", " ", - " var images = ['http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens'];", + " var images = ['https://bit.ly/fcc-relaxing-cat','https://bit.ly/fcc-relaxing-cat','https://bit.ly/fcc-relaxing-cat','https://bit.ly/fcc-relaxing-cat','https://bit.ly/fcc-relaxing-cat'];", " ", " slotOne = Math.floor(Math.random() * (5 - 1 + 1)) + 1;", " slotTwo = Math.floor(Math.random() * (5 - 1 + 1)) + 1;", @@ -1445,7 +1445,7 @@ " var slotThree;", " ", " //Placeholder", - " var images = ['http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens','http://bit.ly/fcc-kittens'];", + " var images = ['https://bit.ly/fcc-relaxing-cat','https://bit.ly/fcc-relaxing-cat','https://bit.ly/fcc-relaxing-cat','https://bit.ly/fcc-relaxing-cat','https://bit.ly/fcc-relaxing-cat'];", " ", " slotOne = Math.floor(Math.random() * (5 - 1 + 1)) + 1;", " slotTwo = Math.floor(Math.random() * (5 - 1 + 1)) + 1;", diff --git a/challenges/bootstrap.json b/challenges/bootstrap.json index eaec28238b3..e1af8339c09 100644 --- a/challenges/bootstrap.json +++ b/challenges/bootstrap.json @@ -50,7 +50,7 @@ "", "
Click here for cat photos.
", "", - "Things cats love:
", "src of http://bit.ly/fcc-kittens2.')"
+ "assert(new RegExp('http://bit.ly/fcc-running-cats', 'gi').test($('img.img-responsive').attr('src')), 'Add a second image with the src of http://bit.ly/fcc-running-cats.')"
],
"challengeSeed": [
"",
@@ -134,7 +134,7 @@
"",
" Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", @@ -301,7 +301,7 @@ "", "Click here for cat photos.
", "", - "Things cats love:
", @@ -389,7 +389,7 @@ "", "Click here for cat photos.
", "", - "Click here for cat photos.
", "", - "Click here for cat photos.
", "", - "Click here for cat photos.
", "", - "Click here for cat photos.
", "", - "Click here for cat photos.
", "", - "
",
+ "By using the span element, you can put several elements together, and even style different parts of the same element differently.",
+ "Nest the word \"love\" in your \"Things cats love\" element below withing a span element. Then give that span the class \"text-danger\" to make the text red.",
+ "Here's how you would do this with the \"Top 3 things cats hate\" element: <p>Top 3 things cats <span class\"text-danger\">hate</span></p>"
+ ],
+ "tests": [
+ "assert($('p span') && $('p span').length > 0, 'Your span element should be inside your p element.')",
+ "assert($('p span') && $('p span').text().match(/love/i), 'Your span element should have the text \"love\".')",
+ "assert($('span').hasClass('text-danger'), 'Your span element should have class \"text-danger\".')",
+ "assert(editor.match(/<\\/span>/g) && editor.match(//g).length === editor.match(/span element has a closing tag.')"
+ ],
+ "challengeSeed": [
+ "",
+ "",
+ "",
+ "Click here for cat photos.
", + "", + "Things cats love:
", + "Top 3 things cats hate:
", + "Things cats love:
", + "Things cats love:
", "Things cats love:
", + "Things cats love:
", "Things cats love:
", + "Things cats love:
", "Things cats love:
", + "Things cats love:
", "Things cats love:
", + "Things cats love:
", "Things cats love:
", + "Things cats love:
", "Things cats love:
", + "Things cats love:
", "img element, and point to an specific image's URL using the src attribute.",
"An example of this would be <img src=\"www.your-image-source.com/your-image.jpg\"/>. Note that in most cases, img elements are self-closing.",
- "Try it with this image: http://bit.ly/fcc-kittens."
+ "Try it with this image: https://bit.ly/fcc-relaxing-cat."
],
"tests": [
"assert($('img').length > 0, 'Your page should have an image element.')",
- "assert($('img').filter(function(index) { return /http:\\/\\/bit\\.ly\\/fcc-kittens/gi.test($('img').attr('src')); }).length > 0, 'Your image should have have a src attribute that points to the kitten image.')"
+ "assert($('img').filter(function(index) { return /http:\\/\\/bit\\.ly\\/fcc-relaxing-cat/gi.test($('img').attr('src')); }).length > 0, 'Your image should have have a src attribute that points to the kitten image.')"
],
"challengeSeed": [
"",
@@ -775,10 +775,10 @@
"descriptionPt": [],
"nameDe": "Waypoint: Füge Bilder zu deiner Website hinzu",
"descriptionDe": [
- "Nutze ein img Element um das Bild http://bit.ly/fcc-kittens einzufügen.",
+ "Nutze ein img Element um das Bild https://bit.ly/fcc-relaxing-cat einzufügen.",
"Du kannst img Elemente verwenden, um Bilder in deine Website einzubauen. Um zur URL des Bildes zu verweisen, benutzt du das src Attribut.",
"Ein Beispiel dafür wäre <img src=\"www.bild-quelle.com/bild.jpg\"/>. Beachte, dass img Elemente in den meisten Fällen selbstschließend sind.",
- "Versuche es mit diesem Bild: http://bit.ly/fcc-kittens."
+ "Versuche es mit diesem Bild: https://bit.ly/fcc-relaxing-cat."
]
},
{
@@ -814,7 +814,7 @@
"",
"Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -877,7 +877,7 @@ "", "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -943,7 +943,7 @@ "", "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1009,7 +1009,7 @@ "", "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1078,7 +1078,7 @@ "", "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1155,7 +1155,7 @@ "", "cat photos", "", - "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1223,7 +1223,7 @@ "", "Click here for cat photos.
", "", - "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1295,7 +1295,7 @@ "", "Click here for cat photos.
", "", - "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1366,7 +1366,7 @@ "", "Click here for cat photos.
", "", - "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1445,7 +1445,7 @@ "", "Click here for cat photos.
", "", - "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1521,7 +1521,7 @@ "", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", @@ -2457,7 +2457,7 @@ "", "Click here for cat photos.
", "", - "Things cats love:
", @@ -2547,7 +2547,7 @@ "", "Click here for cat photos.
", "", - "Things cats love:
",