move example out of test

This commit is contained in:
texas2010
2017-05-26 11:26:40 -05:00
parent ae19c6b7ca
commit 26fdd5e28f

View File

@ -3461,6 +3461,8 @@
"<code>rgb(255, 255, 255)</code>",
"Instead of using six hexadecimal digits like you do with hex code, with <code>RGB</code> you specify the brightness of each color with a number between 0 and 255.",
"If you do the math, the two digits for one color equal 16 times 16, which gives us 256 total values. So <code>RGB</code>, which starts counting from zero, has the exact same number of possible values as hex code.",
"Here's an example of how you'd change the body background to orange using its RGB code.",
"<blockquote>body {<br> background-color: rgb(255, 165, 0);<br>}</blockquote>",
"<hr>",
"Let's replace the hex code in our <code>body</code> element's background color with the RGB value for black: <code>rgb(0, 0, 0)</code>"
],
@ -3473,7 +3475,7 @@
],
"tests": [
"assert($(\"body\").css(\"background-color\") === \"rgb(0, 0, 0)\", 'message: Your <code>body</code> element should have a black background.');",
"assert(code.match(/rgb\\s*\\(\\s*0\\s*,\\s*0\\s*,\\s*0\\s*\\)/ig), 'message: Use <code>rgb</code> to give your <code>body</code> element a color of black. For example <code>body { background-color&#58; rgb&#40;255&#44; 165&#44; 0&#41;; }</code>');"
"assert(code.match(/rgb\\s*\\(\\s*0\\s*,\\s*0\\s*,\\s*0\\s*\\)/ig), 'message: Use <code>rgb</code> to give your <code>body</code> element a color of black.');"
],
"type": "waypoint",
"challengeType": 0,