From 1b1dc0ca4dc6f99d22637a8c6087021836408017 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Sat, 6 Jun 2015 11:57:40 -0700 Subject: [PATCH] add additional jquery challengeSeed and tests --- .../challenges/future-jquery-ajax-json.json | 180 +++++++++++++++++- 1 file changed, 173 insertions(+), 7 deletions(-) diff --git a/seed_data/challenges/future-jquery-ajax-json.json b/seed_data/challenges/future-jquery-ajax-json.json index e197f8e3d8..d82aba2915 100644 --- a/seed_data/challenges/future-jquery-ajax-json.json +++ b/seed_data/challenges/future-jquery-ajax-json.json @@ -47,23 +47,52 @@ }, { - "_id": "bad87fee1348bd9aedc08826", + "_id": "bad87fee1348bd9bedc08826", "name": "Waypoint: Target Elements by Selectors Using jQuery", "difficulty": 0.073, "description": [ - + "Make all img elements bounce $('img').addClass('animated bounce')" ], "tests": [ ], "challengeSeed": [ - + "fccss", + " $(document).ready(function() {", + "", + " });", + "fcces", + "
", + "", + "
", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + "
", + "
", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + "
" ], "challengeType": 0 }, { - "_id": "bad87fee1348bd9aedb08826", + "_id": "bad87fee1348bd9aedc08826", "name": "Waypoint: Target Elements by Class Using jQuery", "difficulty": 0.074, "description": [ @@ -73,14 +102,90 @@ ], "challengeSeed": [ + "fccss", + " $(document).ready(function() {", + " $('img').addClass('animated bounce');", + " $('.btn').addClass('animated shake');", + " });", + "fcces", + "
", + "", + "
", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + "
", + "
", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + "
" + ], + "challengeType": 0 + }, + { + "_id": "bad87fee1348bd9aedb08826", + "name": "Waypoint: Add an ID to an Element", + "difficulty": 0.075, + "description": [ + + ], + "tests": [ + "assert($('form').attr('id') === 'cat-photo-form', 'Add an ID script element has a closing tag.')" + ], + "challengeSeed": [ + "fccss", + " $(document).ready(function() {", + " $('img').addClass('animated bounce');", + " $('.btn').addClass('animated shake');", + " });", + "fcces", + "
", + "", + "
", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + "
", + "
", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + "
" ], "challengeType": 0 }, { "_id": "bad87fee1348bd9aeda08826", - "name": "Waypoint: Target an element by ID Using jQuery", + "name": "Waypoint: Target Elements by ID Using jQuery", "difficulty": 0.075, "description": [ @@ -89,7 +194,37 @@ ], "challengeSeed": [ - + "fccss", + " $(document).ready(function() {", + " $('img').addClass('animated bounce');", + " $('.btn').addClass('animated shake');", + " });", + "fcces", + "
", + "", + "
", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + "
", + "
", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + "
" ], "challengeType": 0 }, @@ -105,7 +240,38 @@ ], "challengeSeed": [ - + "fccss", + " $(document).ready(function() {", + " $('img').addClass('animated bounce');", + " $('.btn').addClass('animated shake');", + " $('.cat-photo-form').addClass('animated pulse');", + " });", + "fcces", + "
", + "", + "
", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + "
", + "
", + "
", + "
", + " ", + "
", + "
", + " ", + "
", + "
", + "
" ], "challengeType": 0 },