diff --git a/seed_data/coursewares.json b/seed_data/coursewares.json index 6606b44f6e..93bd74a5d3 100644 --- a/seed_data/coursewares.json +++ b/seed_data/coursewares.json @@ -628,8 +628,7 @@ " border-width: 10px;", " }", "", - "

hello world

", - "

cat photo app

", + "

cat photo app

", "

lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

", "" ], @@ -661,10 +660,10 @@ " border-radius: 50%;", " }", "", - "

hello world

", "

cat photo app

", "

lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

", "", + "
", "This is a link to Google", "
" ], @@ -673,15 +672,17 @@ { "_id" : "bad87fee1348bd9aedf08817", - "name": "Make Dead Links with the Hash Symbol", + "name": "Make Named Anchors using the Hash Symbol", "difficulty" : "0.24", "description": [ - "", - "" + "Use the hash symbol(#) to turn the link to the bottom of the page into a named anchor.", + "Sometimes you want to add anchor elements to your website before you know where they will link.", + "This is also handy when you're changing the behavior of a link using jQuery, which we'll learn about later.", + "Replace the href in the link to freecodecamp.com with a hash symbol to turn it into a named anchor." ], "tests": [ - "expect($('h1')).to.have.class('text-center');", - "expect($('h1')).to.have.text('hello world');" + "expect((/this link leads nowhere/gi).test($('a').text())).to.be.true;", + "expect($('a').filter(function(index) { return /#/gi.test($('a')[index]); }).length).to.eql(1);" ], "challengeSeed": [ "", - "

hello world

", "

cat photo app

", "

lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

", + "", + "
", + "This named anchor leads nowhere", + "
" + ], + "challengeType": 0 + }, + + { + "_id" : "bad87fee1348bd9aedf08820", + "name": "Turn an Image into a Link", + "difficulty" : "0.27", + "description": [ + "Wrap the gray cat's image with an anchor tag that leads nowhere.", + "You can make elements into links by wrapping them in an anchor tag.", + "Check out the example snow-colored cat's photo. When you hover over it with your cursor, you'll see the finger pointer you usually see when you hover over a link. The photo is now a link.", + "Wrap your gray cat's photo in an anchor tag", + "Use the hash symbol as the anchor tag's href." + ], + "tests": [ + "expect($('a').filter(function(index) { return /#/gi.test($('a')[index]); }).length).to.eql(2);" + ], + "challengeSeed": [ + "", + "

cat photo app

", + "", "" ], "challengeType": 0 @@ -706,54 +743,31 @@ { "_id" : "bad87fee1348bd9aedf08818", - "name": "Add Alt Text to a Link", + "name": "Add Alt Text to an image", "difficulty" : "0.25", "description": [ - "", + "Add the alt text \"a photo of a cute gray cat\" to our cat photo", "" ], "tests": [ - "expect($('h1')).to.have.class('text-center');", - "expect($('h1')).to.have.text('hello world');" + "expect($('img').filter(function(){ return /cat/gi.test(this.alt) }).length).to.eql(2);" ], "challengeSeed": [ - "

hello world

" - ], - "challengeType": 0 - }, - - { - "_id" : "bad87fee1348bd9aedf08819", - "name": "Include Links that Open in a New Browser Tab", - "difficulty" : "0.26", - "description": [ + "", + "

cat photo app

", + "\"a", + "" ], "challengeType": 0 },