From c98afee9264c8d9ed95784512a684e1b54e12206 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Tue, 7 Jul 2015 20:24:00 -0700 Subject: [PATCH] continue building the jQuery Playground --- seed/challenges/bootstrap.json | 70 ++++++++++++++++++++++++++++------ 1 file changed, 59 insertions(+), 11 deletions(-) diff --git a/seed/challenges/bootstrap.json b/seed/challenges/bootstrap.json index 0b1b6402ca..a8b417283b 100644 --- a/seed/challenges/bootstrap.json +++ b/seed/challenges/bootstrap.json @@ -1417,13 +1417,18 @@ }, { "id": "bad87fee1348bd9aec908846", - "name": "Waypoint: Build a jQuery Playground in Bootstrap", - "dashedName": "waypoint-line-up-form-elements-responsively-with-bootstrap", + "name": "Waypoint: Create a Bootstrap Headline", + "dashedName": "waypoint-create-a-bootstrap-headline", "difficulty": 18, "description": [ + ], "tests": [ - + "assert($('h3') && $('h3').length > 0, 'Add a h3 element to your page.')", + "assert(editor.match(/<\\/h3>/g) && editor.match(/

/g).length === editor.match(/

h3 element has a closing tag.')", + "assert($('h3').hasClass('text-primary'), 'Your h3 element should be colored by applying the class \"text-primary\"')", + "assert($('h3').hasClass('text-center'), 'Your h3 element should be centered by applying the class \"text-center\"')", + "assert.isTrue((/jquery(\\s)+playground/gi).test($('h3').text()), 'Your h3 element should have the text \"jQuery Playground\".')" ], "challengeSeed": [ "", @@ -1442,17 +1447,48 @@ "namePt": "", "descriptionPt": [] }, + { + "id": "bad87fee1348bd9bec908846", + "name": "Waypoint: Create a Bootstrap Row", + "dashedName": "waypoint-create-a-bootstrap-row", + "difficulty": 18.5, + "description": [ + ], + "tests": [ + "assert($('div').length > 0, 'Add a div element to your page.')", + "assert($('div').hasClass('row'), 'Your div element should have the class \"row\"')", + "assert(editor.match(/<\\/div>/g) && editor.match(/
/g).length === editor.match(/
div element has a closing tag.')" + ], + "challengeSeed": [ + "

jQuery Playground

", + "", + "" + ], + "challengeType": 0, + "nameCn": "", + "descriptionCn": [], + "nameFr": "", + "descriptionFr": [], + "nameRu": "", + "descriptionRu": [], + "nameEs": "", + "descriptionEs": [], + "namePt": "", + "descriptionPt": [] + }, { "id": "bad87fee1348bd9aec908847", - "name": "Waypoint: Build a jQuery Playground in Bootstrap", - "dashedName": "waypoint-line-up-form-elements-responsively-with-bootstrap", + "name": "Waypoint: Split your Bootstrap Row", + "dashedName": "waypoint-split-your-bootstrap-row", "difficulty": 19, "description": [ ], "tests": [ - + "assert($('div.row').children('div.col-xs-6').length > 1, 'Wrap two div class=\"col-xs-6\" elements within your div class=\"row\" element.')", + "assert(editor.match(/<\\/div>/g) && editor.match(/
/g).length === editor.match(/
div elements have closing tags.')" ], "challengeSeed": [ + "

jQuery Playground

", "
", "
" ], @@ -1470,15 +1506,19 @@ }, { "id": "bad87fee1348bd9aec908848", - "name": "Waypoint: Build a jQuery Playground in Bootstrap", - "dashedName": "waypoint-line-up-form-elements-responsively-with-bootstrap", + "name": "Waypoint: Create Bootstrap Wells", + "dashedName": "waypoint-create-bootstrap-wells", "difficulty": 20, "description": [ ], "tests": [ - + "assert($('div').length > 4, 'Add two div elements inside your div class=\"row\"> element both with the class \"col-xs-6\"')", + "assert($('div.row').children('div.col-xs-6').length > 1, 'Wrap both of your div class=\"col-xs-6\" elements within your div class=\"row\" element.')", + "assert($('div.col-xs-6').children('div.well').length > 1, 'Wrap both of your div class=\"col-xs-6\" elements within your div class=\"row\" element.')", + "assert(editor.match(/<\\/div>/g) && editor.match(/
/g).length === editor.match(/
div elements have closing tags.')" ], "challengeSeed": [ + "

jQuery Playground

", "
", "
", "
", @@ -1509,6 +1549,7 @@ ], "challengeSeed": [ + "

jQuery Playground

", "
", "
", "
", @@ -1543,6 +1584,7 @@ ], "challengeSeed": [ + "

jQuery Playground

", "
", "
", "
", @@ -1583,6 +1625,7 @@ ], "challengeSeed": [ + "

jQuery Playground

", "
", "
", "
", @@ -1623,6 +1666,7 @@ ], "challengeSeed": [ + "

jQuery Playground

", "
", "
", "
", @@ -1663,6 +1707,7 @@ ], "challengeSeed": [ + "

jQuery Playground

", "
", "
", "
", @@ -1703,6 +1748,7 @@ ], "challengeSeed": [ + "

jQuery Playground

", "
", "
", "

#left-well

", @@ -1745,6 +1791,7 @@ ], "challengeSeed": [ + "

jQuery Playground

", "
", "
", "

#left-well

", @@ -1778,8 +1825,8 @@ }, { "id": "bad87fee1348bd9aec908857", - "name": "Waypoint: Build a jQuery Playground in Bootstrap", - "dashedName": "waypoint-line-up-form-elements-responsively-with-bootstrap", + "name": "Waypoint: Use Comments to Clarify Code", + "dashedName": "waypoint-use-comments-to-clarify-code", "difficulty": 28, "description": [ "add " @@ -1788,6 +1835,7 @@ ], "challengeSeed": [ + "

jQuery Playground

", "
", "
", "

#left-well

",