From 1e2011a354d4cd00461debafa3c7ba79f024de6a Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Sat, 1 Aug 2015 08:25:56 -0700 Subject: [PATCH] fix some issues and finalize jquery challenges for today --- seed/challenges/bootstrap.json | 4 +- seed/challenges/html5-and-css.json | 30 ++-- seed/challenges/jquery-ajax-and-json.json | 158 ++-------------------- 3 files changed, 26 insertions(+), 166 deletions(-) diff --git a/seed/challenges/bootstrap.json b/seed/challenges/bootstrap.json index 6c3c9467be..ea01b15573 100644 --- a/seed/challenges/bootstrap.json +++ b/seed/challenges/bootstrap.json @@ -1569,7 +1569,7 @@ "Let's nest your h3 element within a div element with the class \"containter-fluid\"." ], "tests": [ - "assert($('div').hasClass('container-fluid'), 'Your div element should have the class \"row\"')", + "assert($('div').hasClass('container-fluid'), 'Your div element should have the class \"container-fluid\"')", "assert(editor.match(/<\\/div>/g) && editor.match(/
/g).length === editor.match(/
div elements has a closing tag.')" ], "challengeSeed": [ @@ -1837,7 +1837,7 @@ ], "tests": [ "assert($('#left-well') && $('#left-well').length > 0, 'Give your left \"well\" the id of \"left-well\".')", - "assert($('#left-well') && $('#left-well').length > 0, 'Give your right \"well\" the id of \"right-well\".')" + "assert($('#right-well') && $('#right-well').length > 0, 'Give your right \"well\" the id of \"right-well\".')" ], "challengeSeed": [ "
", diff --git a/seed/challenges/html5-and-css.json b/seed/challenges/html5-and-css.json index 1ef68d9dce..05f9256358 100644 --- a/seed/challenges/html5-and-css.json +++ b/seed/challenges/html5-and-css.json @@ -3720,14 +3720,14 @@ "difficulty": 1.63, "description": [ "Another way you can represent colors in CSS is by using RGB values.", - "RGB values look like this: rgb(0, 0, 0) for black and rgb(255, 255, 255) for white.", + "RGB values look like this: rgb(0, 0, 0) for black and rgb(255, 255, 255) for white.", "Instead of using six hexadecimal digits like you do with hex code, with RGB you specify the brightness of each color with a number between 0 and 255.", "If you do the math, 16 times 16 is 256 total values. So RGB, which starts counting from zero, has the exact same number of possible values as hex code.", "Let's replace the hex code in our body element's background color with the RGB value for black: rgb(0, 0, 0)" ], "tests": [ - "assert(editor.match(/rgb\\s*\\(\\s*0\\s*,\\s*0\\s*,\\s*0\\s*\\)/ig), 'Use RGB to give your body element the background-color of black. For example body: { color: rgb(0, 0, 0); }.')", - "assert($('body').css('background-color') === 'rgb(0, 0, 0)', 'Your body element's the background-color should be black.')" + "assert($('body').css('background-color') === 'rgb(0, 0, 0)', 'Give your body element the background-color of black.')", + "assert(editor.match(/rgb\\s*\\(\\s*0\\s*,\\s*0\\s*,\\s*0\\s*\\)/ig), 'Use RGB to give your body element the background-color of black. For example body: { color: rgb(0, 0, 0); }.')" ], "challengeSeed": [ "