diff --git a/seed/challenges/basic-javascript.json b/seed/challenges/basic-javascript.json index 87d00dbfbb..e39b710b92 100644 --- a/seed/challenges/basic-javascript.json +++ b/seed/challenges/basic-javascript.json @@ -774,7 +774,7 @@ "// \"friends\": [\"everything!\"]", "// };", "", - "// ourDog.bark(\"arf!\");", + "// ourDog.bark = \"arf!\";", "// delete(ourDog.tails);", "", "var myDog = {", diff --git a/seed/under-construction/json-apis-and-ajax.json b/seed/under-construction/json-apis-and-ajax.json index f2469887a7..5a74cb3a61 100644 --- a/seed/under-construction/json-apis-and-ajax.json +++ b/seed/under-construction/json-apis-and-ajax.json @@ -7,29 +7,42 @@ "title": "Trigger on click Events with jQuery", "difficulty": 3.19, "description": [ - ".on('click', function() {", - "", - "});" + "$(\"#getMessage\").on(\"click\", function(){", + "  $(\".message\").html(\"Here is the message\");", + "});" ], "tests": [ - + "assert(editor.match(/\\$\\(\\s?\\\"\\#getMessage\\\"\\s?\\)\\.on\\s?\\(\\s?\\\"click\\\"\\,\\s?function\\s?\\(\\)\\s?\\{/gi), 'You should have bound the click event to the getMessage button')", + "assert(editor.match(/\\$\\(\\s?\\\"\\.message\\\"\\s?\\)\\.html\\(\\s?\\\"Here\\sis\\sthe\\smessage\\\"\\s?\\);/gi), 'You should set te value of the #message box to be the message given in the description')", + "assert(editor.match(/\\}\\);/gi) && editor.match(/\\}\\);/gi).length >= 2, 'Make sure that you close off all of your functions')" ], "challengeSeed": [ "fccss", - " $(document).ready(function() {", - "", - " });", + " $(document).ready(function() {", + " ", + " });", "fcces", "", "", "", "
", - "
", - " ", - " ", - " ", - " ", - "
", + "
", + "

Cat Photo Finder

", + "
", + "
", + "
", + "
", + " The message will go here", + "
", + "
", + "
", + "
", + "
", + " ", + "
", + "
", "
" ], "challengeType": 0, @@ -46,68 +59,12 @@ ], "tests": [ - ], - "challengeSeed": [ - "fccss", - "catPhotoJSON = [", - " {", - " \"id\": 0,", - " \"imageLink\": \"https://s3.amazonaws.com/freecodecamp/funny-cat.jpg\",", - " \"codeNames\": [", - " \"Juggernaut\",", - " \"Mrs. Wallace\",", - " \"Buttercup\"", - " ]", - " },", - " {", - " \"id\": 1,", - " \"imageLink\": \"https://s3.amazonaws.com/freecodecamp/grumpy-cat.jpg\",", - " \"codeNames\": [", - " \"Oscar\",", - " \"Scrooge\",", - " \"Tyrion\"", - " ]", - " },", - " {", - " \"id\": 2,", - " \"imageLink\": \"https://s3.amazonaws.com/freecodecamp/mischievous-cat.jpg\",", - " \"codeNames\": [", - " \"The Doctor\",", - " \"Loki\",", - " \"Joker\"", - " ]", - " }", - " ]", - "", - "fcces", - "", - "", - "", - "
", - "
", - "
", - "
" - ], - "challengeType": 0, - "type": "waypoint" - }, - - { - "id": "bad84fee1348bd9aecc58826", - "title": "Read Data from an Element Using jQuery", - "dashedName": "waypoint-read-data-from-an-element-using-jquery", - "difficulty": 3.17, - "description": [ - "Let's make everything roll with rollOut." - ], - "tests": [ - ], "challengeSeed": [ "fccss", " $(document).ready(function() {", - " $(\"button\").on(\"click\", function() {", - "", + " $(\"#getMessage\").on(\"click\", function(){", + " $(\".message\").html(\"Here is the message\");", " });", " });", "fcces", @@ -115,16 +72,23 @@ "", "", "
", - "
", - "
", - " ", - "
", - "
", - "

#check-me

", - "
", - " ", - " Is the checkbox checked?", - " ", + "
", + "

Cat Photo Finder

", + "
", + "
", + "
", + "
", + " The message will go here", + "
", + "
", + "
", + "
", + "
", + " ", + "
", + "
", "
" ], "challengeType": 0,