diff --git a/controllers/resources.js b/controllers/resources.js index 6f2000457a..efa1cba29f 100644 --- a/controllers/resources.js +++ b/controllers/resources.js @@ -158,7 +158,7 @@ module.exports = { }, catPhotoSubmit: function catPhotoSubmit(req, res) { - res.send('Success! You have submitted your cat photo.') + res.send('Success! You have submitted your cat photo. Return to your website by typing any letter into your code editor.') }, nonprofits: function nonprofits(req, res) { diff --git a/seed_data/coursewares.json b/seed_data/coursewares.json index bd9604b9f1..23d8f7ba2e 100644 --- a/seed_data/coursewares.json +++ b/seed_data/coursewares.json @@ -1262,7 +1262,7 @@ "" ], "tests": [ - "assert($('[placeholder]').length > 0, 'Your text field should have the placeholder text of \"type a cat photo URL here\".')" + "assert($('[placeholder]').length > 0, 'Your text field should have the placeholder text of \"enter cat photo URL\".')" ], "challengeSeed": [ "", @@ -1510,58 +1510,136 @@ "completionMessage": "" }, - { - "_id" : "bad87fee1348bd9aedf08831", - "name": "Use HTML5 to Specify an Input Type", - "difficulty" : 0.043, - "description": [ - "", - "" - ], - "tests": [ - "expect($('h1')).to.have.class('text-center');", - "expect($('h1')).to.have.text('hello world');" - ], - "challengeSeed": [ - "

hello world

" - ], - "challengeType": 0, - "completionMessage": "" - }, - - { - "_id" : "bad87fee1348bd9aedf08832", - "name": "Create a Text Area", - "difficulty" : 0.044, - "description": [ - "", - "" - ], - "tests": [ - "expect($('h1')).to.have.class('text-center');", - "expect($('h1')).to.have.text('hello world');" - ], - "challengeSeed": [ - "

hello world

" - ], - "challengeType": 0, - "completionMessage": "" - }, - { "_id" : "bad87fee1348bd9aedf08834", "name": "Create a Set of Radio Buttons", - "difficulty" : 0.045, + "difficulty" : 0.043, "description": [ - "", + "Add to your form a pair of radio buttons with the options of \"indoor\" and \"outdoor\".", + "You can use radio buttons for questions that can only have only one answer.", "" ], "tests": [ - "expect($('h1')).to.have.class('text-center');", - "expect($('h1')).to.have.text('hello world');" + "assert($('input[type=\"radio\"').length > 1, 'Your webpage should have two radio button elements.')" ], "challengeSeed": [ - "

hello world

" + "", + "", + "", + "

Cat Photo App

", + "", + "

Click here for cat photos.

", + "", + "", + "", + "

Things cats love:

", + "", + "

Top 3 things cats hate:

", + "
    ", + "
  1. flea treatment
  2. ", + "
  3. thunder
  4. ", + "
  5. other cats
  6. ", + "
", + "
", + " ", + " ", + "
" + ], + "challengeType": 0, + "completionMessage": "" + }, + + { + "_id" : "bad87fee1348bd9aede08835", + "name": "Check a Radio Button by Default", + "difficulty" : 0.044, + "description": [ + "Clean up your form by adding linebreaks between form elements, then set one of your radio buttons to checked by default.", + "" + ], + "tests": [ + "assert($('input[type=\"radio\"').prop('checked'), 'One of the radio buttons on your form should be checked by default.')" + ], + "challengeSeed": [ + "", + "", + "", + "

Cat Photo App

", + "", + "

Click here for cat photos.

", + "", + "", + "", + "

Things cats love:

", + "", + "

Top 3 things cats hate:

", + "
    ", + "
  1. flea treatment
  2. ", + "
  3. thunder
  4. ", + "
  5. other cats
  6. ", + "
", + "
", + " ", + " Indoor", + " Outdoor", + " ", + "
" ], "challengeType": 0, "completionMessage": "" @@ -1570,36 +1648,67 @@ { "_id" : "bad87fee1348bd9aedf08835", "name": "Create a Set of Checkboxes", - "difficulty" : 0.046, + "difficulty" : 0.045, "description": [ - "", - "" + "Create a set of three checkboxes." ], "tests": [ - "expect($('h1')).to.have.class('text-center');", - "expect($('h1')).to.have.text('hello world');" + "assert($('input[type=\"checkbox\"').length > 2, 'Your webpage should have three checkbox elements.')" ], "challengeSeed": [ - "

hello world

" - ], - "challengeType": 0, - "completionMessage": "" - }, - - { - "_id" : "bad87fee1348bd9aedf08836", - "name": "Create a HTML Form", - "difficulty" : 0.047, - "description": [ + "", + "", + "", + "

Cat Photo App

", + "", + "

Click here for cat photos.

", + "", + "", + "", + "

Things cats love:

", + "", + "

Top 3 things cats hate:

", + "
    ", + "
  1. flea treatment
  2. ", + "
  3. thunder
  4. ", + "
  5. other cats
  6. ", + "
", + "
", + " ", + "
", + " Indoor", + " Outdoor", + "
", + " ", + "
" ], "challengeType": 0, "completionMessage": "" @@ -1624,25 +1733,6 @@ "completionMessage": "" }, - { - "_id" : "bad87fee1348bd9aedf08842", - "name": "Make an element translucent", - "difficulty" : 0.049, - "description": [ - "", - "" - ], - "tests": [ - "expect($('h1')).to.have.class('text-center');", - "expect($('h1')).to.have.text('hello world');" - ], - "challengeSeed": [ - "

hello world

" - ], - "challengeType": 0, - "completionMessage": "" - }, - { "_id" : "bad87fee1348bd9aedf08844", "name": "Add a Drop Shadow",