2015-06-02 20:32:10 -07:00
{
2015-06-27 11:56:31 -07:00
"name" : "jQuery, Ajax and JSON" ,
"dashedName" : "jQuery, Ajax and JSON" ,
2015-06-14 01:02:39 -07:00
"order" : 0.004 ,
"challenges" : [ {
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9acdd08826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Learn how Script Tags and Document Ready Work" ,
"dashedName" : "Waypoint: Learn how Script Tags and Document Ready Work" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.072 ,
"description" : [
2015-06-14 01:02:39 -07:00
"We've simplified our Cat Photo App and removed our <code>style</code> element. Add a <code>script</code> element to your page and create a <code>$(document).ready</code> function within it." ,
"Add <code>$(document).ready(function() {</code> to your <code>script</code> element, and then close it on the following line with <code>});</code>."
] ,
"tests" : [
"assert(editor.match(/<script>/g), 'Create a <code>script</code> element.')" ,
"assert(editor.match(/<\\/script>/g) && editor.match(/<script/g) && editor.match(/<\\/script>/g).length === editor.match(/<script/g).length, 'Make sure your <code>script</code> element has a closing tag.')" ,
"assert(editor.match(/\\$\\(document\\)\\.ready\\(function\\(\\)\\s?\\{/g), 'Add <code>$(document).ready(function() {</code> to the beginning of your <code>script</code> element.')" ,
"assert(editor.match(/\\n\\s+?\\}\\);/g), 'Close your <code>$(document).ready(function() {</code> function with <code>\\}\\);</code>.')"
] ,
"challengeSeed" : [
2015-06-29 19:17:06 -07:00
"" ,
2015-06-27 19:42:25 -07:00
"" ,
"<!-- You shouldn't need to modify code below this line -->" ,
2015-06-14 01:02:39 -07:00
"<div class='row'>" ,
2015-06-29 19:17:06 -07:00
" <div class='col-xs-6'>" ,
" <h4>#left-well</h4>" ,
" <div class='well' id='left-well'>" ,
" <button class='btn btn-default target' id='target1'>#target1</button>" ,
" <button class='btn btn-default target' id='target2'>#target2</button>" ,
" <button class='btn btn-default target' id='target3'>#target3</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
2015-06-29 19:17:06 -07:00
" </div>" ,
" <div class='col-xs-6'>" ,
" <h4>#right-well</h4>" ,
" <div class='well' id='right-well'>" ,
" <button class='btn btn-default target' id='target4'>#target4</button>" ,
" <button class='btn btn-default target' id='target5'>#target5</button>" ,
" <button class='btn btn-default target' id='target6'>#target6</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
" </div>" ,
2015-06-29 19:17:06 -07:00
"</div>"
2015-06-14 01:02:39 -07:00
] ,
"challengeType" : 0
} ,
{
"id" : "bad87fee1348bd9bedc08826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Target Elements by Selectors Using jQuery" ,
"dashedName" : "waypoint-target-elements-by-selectors-using-jquery" ,
2015-06-14 01:02:39 -07:00
"difficulty" : 0.073 ,
"description" : [
2015-06-29 19:17:06 -07:00
"Make all <code>button</code> elements bounce <code>$('button').addClass('animated bounce')</code>."
2015-06-02 20:32:10 -07:00
] ,
"tests" : [
2015-06-29 19:17:06 -07:00
"assert($('button').hasClass('animated') && $('button').hasClass('bounce'), 'Use the jQuery <code>addClass()</code> function to give the classes \"animated\" and \"bounce\" to your <code>img</code> element.')" ,
2015-06-14 01:02:39 -07:00
"assert(!editor.match(/class.*animated/g), 'Only use jQuery to add these classes to the element.')"
2015-06-02 20:32:10 -07:00
] ,
"challengeSeed" : [
"fccss" ,
" $(document).ready(function() {" ,
2015-06-14 01:02:39 -07:00
"" ,
2015-06-02 20:32:10 -07:00
" });" ,
"fcces" ,
2015-06-27 19:42:25 -07:00
"<!-- You shouldn't need to modify code below this line -->" ,
2015-06-14 01:02:39 -07:00
"<div class='row'>" ,
2015-06-29 19:17:06 -07:00
" <div class='col-xs-6'>" ,
" <h4>#left-well</h4>" ,
" <div class='well' id='left-well'>" ,
" <button class='btn btn-default target' id='target1'>#target1</button>" ,
" <button class='btn btn-default target' id='target2'>#target2</button>" ,
" <button class='btn btn-default target' id='target3'>#target3</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
2015-06-29 19:17:06 -07:00
" </div>" ,
" <div class='col-xs-6'>" ,
" <h4>#right-well</h4>" ,
" <div class='well' id='right-well'>" ,
" <button class='btn btn-default target' id='target4'>#target4</button>" ,
" <button class='btn btn-default target' id='target5'>#target5</button>" ,
" <button class='btn btn-default target' id='target6'>#target6</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
" </div>" ,
2015-06-29 19:17:06 -07:00
"</div>"
2015-06-02 20:32:10 -07:00
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9aedc08826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Target Elements by Class Using jQuery" ,
"dashedName" : "waypoint-target-elements-by-class-using-jquery" ,
2015-06-14 01:02:39 -07:00
"difficulty" : 0.074 ,
2015-06-02 20:32:10 -07:00
"description" : [
2015-06-29 19:17:06 -07:00
"Make all the <code>div</code> elements with class \"well\" shake. <code>$('.well').addClass('animated shake')</code>"
2015-06-02 20:32:10 -07:00
] ,
"tests" : [
2015-06-29 19:17:06 -07:00
"assert($('.well').hasClass('animated') && $('.well').hasClass('shake'), 'Use the jQuery <code>addClass()</code> function to give the classes \"animated\" and \"shake\" to all your elements with the class \"well\".')" ,
2015-06-14 01:02:39 -07:00
"assert(!editor.match(/class.*animated/g), 'Only use jQuery to add these classes to the element.')"
2015-06-02 20:32:10 -07:00
] ,
"challengeSeed" : [
2015-06-14 01:02:39 -07:00
"fccss" ,
" $(document).ready(function() {" ,
2015-06-29 19:17:06 -07:00
"" ,
2015-06-14 01:02:39 -07:00
" });" ,
"fcces" ,
2015-06-27 19:42:25 -07:00
"<!-- You shouldn't need to modify code below this line -->" ,
2015-06-14 01:02:39 -07:00
"<div class='row'>" ,
2015-06-29 19:17:06 -07:00
" <div class='col-xs-6'>" ,
" <h4>#left-well</h4>" ,
" <div class='well' id='left-well'>" ,
" <button class='btn btn-default target' id='target1'>#target1</button>" ,
" <button class='btn btn-default target' id='target2'>#target2</button>" ,
" <button class='btn btn-default target' id='target3'>#target3</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
" </div>" ,
2015-06-29 19:17:06 -07:00
" <div class='col-xs-6'>" ,
" <h4>#right-well</h4>" ,
" <div class='well' id='right-well'>" ,
" <button class='btn btn-default target' id='target4'>#target4</button>" ,
" <button class='btn btn-default target' id='target5'>#target5</button>" ,
" <button class='btn btn-default target' id='target6'>#target6</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
" </div>" ,
2015-06-29 19:17:06 -07:00
"</div>"
2015-06-02 20:32:10 -07:00
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9aeda08826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Target Elements by ID Using jQuery" ,
"dashedName" : "waypoint-target-elements-by-id-using-jquery" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.075 ,
"description" : [
2015-06-29 19:17:06 -07:00
"Make all the <code>button</code> element with the id \"target3\" pulse. <code>$('#target3').addClass('animated pulse')</code>."
2015-06-02 20:32:10 -07:00
] ,
"tests" : [
2015-06-29 19:17:06 -07:00
"$('#target3').hasClass('animated') && $('#target3').hasClass('pulse'), 'Select the <code>button</code>element with the <code>id</code> of \"target3\" and use the jQuery <code>addClass()</code> function to give it the classes of \"animated\" and \"pulse\".')" ,
2015-06-14 01:02:39 -07:00
"assert(!editor.match(/class.*animated/g), 'Only use jQuery to add these classes to the element.')"
2015-06-02 20:32:10 -07:00
] ,
"challengeSeed" : [
2015-06-14 01:02:39 -07:00
"fccss" ,
" $(document).ready(function() {" ,
2015-06-29 19:17:06 -07:00
"" ,
2015-06-14 01:02:39 -07:00
" });" ,
"fcces" ,
2015-06-27 19:42:25 -07:00
"<!-- You shouldn't need to modify code below this line -->" ,
2015-06-14 01:02:39 -07:00
"<div class='row'>" ,
2015-06-29 19:17:06 -07:00
" <div class='col-xs-6'>" ,
" <h4>#left-well</h4>" ,
" <div class='well' id='left-well'>" ,
" <button class='btn btn-default target' id='target1'>#target1</button>" ,
" <button class='btn btn-default target' id='target2'>#target2</button>" ,
" <button class='btn btn-default target' id='target3'>#target3</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
2015-06-29 19:17:06 -07:00
" </div>" ,
" <div class='col-xs-6'>" ,
" <h4>#right-well</h4>" ,
" <div class='well' id='right-well'>" ,
" <button class='btn btn-default target' id='target4'>#target4</button>" ,
" <button class='btn btn-default target' id='target5'>#target5</button>" ,
" <button class='btn btn-default target' id='target6'>#target6</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
" </div>" ,
2015-06-29 19:17:06 -07:00
"</div>"
2015-06-02 20:32:10 -07:00
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9aed908826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Change the CSS of an Element Using jQuery" ,
"dashedName" : "waypoint-change-the-css-of-an-element-using-jquery" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.076 ,
"description" : [
] ,
"tests" : [
2015-06-14 01:02:39 -07:00
"assert(!editor.match(/nce\\'\\)\\;/g) && !editor.match(/ke\\'\\)\\;/g), 'Delete your <code>img</code> element selector statement and your \".btn\" selector statement.')" ,
"assert(editor.match(/css.*,.*background-color.*gray.\\);/g), 'Select the element with the <code>id</code> of \"cat-photo-form\" give it the background color of gray.')"
2015-06-02 20:32:10 -07:00
] ,
"challengeSeed" : [
2015-06-14 01:02:39 -07:00
"fccss" ,
" $(document).ready(function() {" ,
2015-06-29 19:17:06 -07:00
"" ,
2015-06-14 01:02:39 -07:00
" });" ,
"fcces" ,
2015-06-27 19:42:25 -07:00
"<!-- You shouldn't need to modify code below this line -->" ,
2015-06-14 01:02:39 -07:00
"<div class='row'>" ,
2015-06-29 19:17:06 -07:00
" <div class='col-xs-6'>" ,
" <h4>#left-well</h4>" ,
" <div class='well' id='left-well'>" ,
" <button class='btn btn-default target' id='target1'>#target1</button>" ,
" <button class='btn btn-default target' id='target2'>#target2</button>" ,
" <button class='btn btn-default target' id='target3'>#target3</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
2015-06-29 19:17:06 -07:00
" </div>" ,
" <div class='col-xs-6'>" ,
" <h4>#right-well</h4>" ,
" <div class='well' id='right-well'>" ,
" <button class='btn btn-default target' id='target4'>#target4</button>" ,
" <button class='btn btn-default target' id='target5'>#target5</button>" ,
" <button class='btn btn-default target' id='target6'>#target6</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
" </div>" ,
2015-06-29 19:17:06 -07:00
"</div>"
2015-06-02 20:32:10 -07:00
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9aed808826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Disable an Element Using jQuery" ,
"dashedName" : "waypoint-disable-an-element-using-jquery" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.077 ,
"description" : [
] ,
"tests" : [
2015-06-14 01:02:39 -07:00
"assert($('form button').attr('id') === 'submit-button', 'Add the ID of \"submit-button\" to your the <code>button</code> on your <code>form</code> element.')" ,
"assert($('#submit-button') && $('#submit-button').prop('disabled'), 'Disable your element with the id of \"submit-button\".')"
2015-06-02 20:32:10 -07:00
] ,
"challengeSeed" : [
2015-06-14 01:02:39 -07:00
"fccss" ,
" $(document).ready(function() {" ,
2015-06-29 19:17:06 -07:00
"" ,
2015-06-14 01:02:39 -07:00
" });" ,
"fcces" ,
2015-06-27 19:42:25 -07:00
"<!-- You shouldn't need to modify code below this line -->" ,
2015-06-14 01:02:39 -07:00
"<div class='row'>" ,
2015-06-29 19:17:06 -07:00
" <div class='col-xs-6'>" ,
" <h4>#left-well</h4>" ,
" <div class='well' id='left-well'>" ,
" <button class='btn btn-default target' id='target1'>#target1</button>" ,
" <button class='btn btn-default target' id='target2'>#target2</button>" ,
" <button class='btn btn-default target' id='target3'>#target3</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
2015-06-29 19:17:06 -07:00
" </div>" ,
" <div class='col-xs-6'>" ,
" <h4>#right-well</h4>" ,
" <div class='well' id='right-well'>" ,
" <button class='btn btn-default target' id='target4'>#target4</button>" ,
" <button class='btn btn-default target' id='target5'>#target5</button>" ,
" <button class='btn btn-default target' id='target6'>#target6</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
" </div>" ,
2015-06-29 19:17:06 -07:00
"</div>"
2015-06-02 20:32:10 -07:00
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9aed708826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Remove an Element Using jQuery" ,
"dashedName" : "waypoint-remove-an-element-using-jquery" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.078 ,
"description" : [
] ,
"tests" : [
2015-06-14 01:02:39 -07:00
"assert($('img').length === 0, 'Use jQuery to remove your <code>img</code> element from your page.')" ,
"assert(editor.match(/<img/g), 'You should still have an <code>img</code> element in your HTML but jQuery should remove it.')"
2015-06-02 20:32:10 -07:00
] ,
"challengeSeed" : [
2015-06-14 01:02:39 -07:00
"fccss" ,
" $(document).ready(function() {" ,
2015-06-29 19:17:06 -07:00
"" ,
2015-06-14 01:02:39 -07:00
" });" ,
"fcces" ,
2015-06-27 19:42:25 -07:00
"<!-- You shouldn't need to modify code below this line -->" ,
2015-06-14 01:02:39 -07:00
"<div class='row'>" ,
2015-06-29 19:17:06 -07:00
" <div class='col-xs-6'>" ,
" <h4>#left-well</h4>" ,
" <div class='well' id='left-well'>" ,
" <button class='btn btn-default target' id='target1'>#target1</button>" ,
" <button class='btn btn-default target' id='target2'>#target2</button>" ,
" <button class='btn btn-default target' id='target3'>#target3</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
2015-06-29 19:17:06 -07:00
" </div>" ,
" <div class='col-xs-6'>" ,
" <h4>#right-well</h4>" ,
" <div class='well' id='right-well'>" ,
" <button class='btn btn-default target' id='target4'>#target4</button>" ,
" <button class='btn btn-default target' id='target5'>#target5</button>" ,
" <button class='btn btn-default target' id='target6'>#target6</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
" </div>" ,
2015-06-29 19:17:06 -07:00
"</div>"
2015-06-02 20:32:10 -07:00
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9aed608826" ,
2015-06-27 19:42:25 -07:00
"name" : "Waypoint: Use appendTo to Move Elements with jQuery" ,
"dashedName" : "waypoint-use-appendto-to-move-elements-with-jquery" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.079 ,
"description" : [
2015-06-27 19:42:25 -07:00
"$('.btn').appendTo('#right-well')"
2015-06-27 11:56:31 -07:00
] ,
"tests" : [
2015-06-27 19:42:25 -07:00
"assert($('#left-well').children().length === 0, 'Your left well should not have any buttons inside it.')" ,
"assert($('#right-well').children().length === 6, 'Your right well should have all 6 buttons inside it.')"
2015-06-27 11:56:31 -07:00
] ,
"challengeSeed" : [
2015-06-14 01:02:39 -07:00
"fccss" ,
" $(document).ready(function() {" ,
2015-06-27 19:42:25 -07:00
"" ,
2015-06-14 01:02:39 -07:00
" });" ,
"fcces" ,
2015-06-27 19:42:25 -07:00
"<!-- You shouldn't need to modify code below this line -->" ,
2015-06-14 01:02:39 -07:00
"<div class='row'>" ,
2015-06-27 19:42:25 -07:00
" <div class='col-xs-6'>" ,
" <h4>#left-well</h4>" ,
" <div class='well' id='left-well'>" ,
" <button class='btn btn-default target' id='target1'>#target1</button>" ,
" <button class='btn btn-default target' id='target2'>#target2</button>" ,
" <button class='btn btn-default target' id='target3'>#target3</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
2015-06-27 19:42:25 -07:00
" </div>" ,
" <div class='col-xs-6'>" ,
" <h4>#right-well</h4>" ,
" <div class='well' id='right-well'>" ,
" <button class='btn btn-default target' id='target4'>#target4</button>" ,
" <button class='btn btn-default target' id='target5'>#target5</button>" ,
" <button class='btn btn-default target' id='target6'>#target6</button>" ,
2015-06-14 01:02:39 -07:00
" </div>" ,
" </div>" ,
2015-06-27 19:42:25 -07:00
"</div>"
2015-06-02 20:32:10 -07:00
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9aed508826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Clone an Element Using jQuery" ,
"dashedName" : "waypoint-clone-an-element-using-jquery" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.080 ,
"description" : [
2015-06-27 19:42:25 -07:00
"Clone the #target1 element and append it to the #left-well element. $('#target1').clone().appendTo('#left-well')"
2015-06-02 20:32:10 -07:00
] ,
"tests" : [
2015-06-27 19:42:25 -07:00
"assert($('#left-well').children().length > 3, 'You should have at least 4 button elements in your #left-well element')"
2015-06-02 20:32:10 -07:00
] ,
"challengeSeed" : [
2015-06-27 19:42:25 -07:00
"fccss" ,
" $(document).ready(function() {" ,
"" ,
" });" ,
"fcces" ,
"<!-- You shouldn't need to modify code below this line -->" ,
"<div class='row'>" ,
" <div class='col-xs-6'>" ,
" <h4>#left-well</h4>" ,
" <div class='well' id='left-well'>" ,
" <button class='btn btn-default target' id='target1'>#target1</button>" ,
" <button class='btn btn-default target' id='target2'>#target2</button>" ,
" <button class='btn btn-default target' id='target3'>#target3</button>" ,
" </div>" ,
" </div>" ,
" <div class='col-xs-6'>" ,
" <h4>#right-well</h4>" ,
" <div class='well' id='right-well'>" ,
" <button class='btn btn-default target' id='target4'>#target4</button>" ,
" <button class='btn btn-default target' id='target5'>#target5</button>" ,
" <button class='btn btn-default target' id='target6'>#target6</button>" ,
" </div>" ,
" </div>" ,
"</div>"
2015-06-02 20:32:10 -07:00
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9aed308826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Target the Parent of an Element Using jQuery" ,
"dashedName" : "waypoint-target-the-parent-of-an-element-using-jquery" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.082 ,
"description" : [
2015-06-27 19:42:25 -07:00
"Change the parent of the #target1 element to have the background color of red." ,
"$('#target1').parent().css('background-color', 'red')"
2015-06-02 20:32:10 -07:00
] ,
"tests" : [
] ,
"challengeSeed" : [
2015-06-27 19:42:25 -07:00
"fccss" ,
" $(document).ready(function() {" ,
"" ,
" });" ,
"fcces" ,
"<!-- You shouldn't need to modify code below this line -->" ,
"<div class='row'>" ,
" <div class='col-xs-6'>" ,
" <h4>#left-well</h4>" ,
" <div class='well' id='left-well'>" ,
" <button class='btn btn-default target' id='target1'>#target1</button>" ,
" <button class='btn btn-default target' id='target2'>#target2</button>" ,
" <button class='btn btn-default target' id='target3'>#target3</button>" ,
" </div>" ,
" </div>" ,
" <div class='col-xs-6'>" ,
" <h4>#right-well</h4>" ,
" <div class='well' id='right-well'>" ,
" <button class='btn btn-default target' id='target4'>#target4</button>" ,
" <button class='btn btn-default target' id='target5'>#target5</button>" ,
" <button class='btn btn-default target' id='target6'>#target6</button>" ,
" </div>" ,
" </div>" ,
"</div>"
2015-06-02 20:32:10 -07:00
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9aed208826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Target the Children of an Element Using jQuery" ,
"dashedName" : "waypoint-target-the-children-of-an-element-using-jquery" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.083 ,
"description" : [
2015-06-27 19:42:25 -07:00
"Change the color of all the #left-well element's children to blue." ,
"$('#right-well').children().css('background-color', 'blue')"
2015-06-02 20:32:10 -07:00
] ,
"tests" : [
] ,
"challengeSeed" : [
2015-06-27 19:42:25 -07:00
"fccss" ,
" $(document).ready(function() {" ,
"" ,
" });" ,
"fcces" ,
"<!-- You shouldn't need to modify code below this line -->" ,
"<div class='row'>" ,
" <div class='col-xs-6'>" ,
" <h4>#left-well</h4>" ,
" <div class='well' id='left-well'>" ,
" <button class='btn btn-default target' id='target1'>#target1</button>" ,
" <button class='btn btn-default target' id='target2'>#target2</button>" ,
" <button class='btn btn-default target' id='target3'>#target3</button>" ,
" </div>" ,
" </div>" ,
" <div class='col-xs-6'>" ,
" <h4>#right-well</h4>" ,
" <div class='well' id='right-well'>" ,
" <button class='btn btn-default target' id='target4'>#target4</button>" ,
" <button class='btn btn-default target' id='target5'>#target5</button>" ,
" <button class='btn btn-default target' id='target6'>#target6</button>" ,
" </div>" ,
" </div>" ,
"</div>"
2015-06-02 20:32:10 -07:00
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9aed108826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Target a Specific Child of an Element Using jQuery" ,
"dashedName" : "waypoint-target-a-specific-child-of-an-element-using-jquery" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.084 ,
"description" : [
] ,
"tests" : [
] ,
"challengeSeed" : [
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9aed008826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Target Even Numbered Elements Using jQuery" ,
"dashedName" : "waypoint-target-even-numbered-elements-using-jquery" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.085 ,
"description" : [
] ,
"tests" : [
] ,
"challengeSeed" : [
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9aecc08826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Read Data from an Element Using jQuery" ,
"dashedName" : "Waypoint-read-data-from-an-element-using-jquery" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.086 ,
"description" : [
] ,
"tests" : [
] ,
"challengeSeed" : [
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9aebc08826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Get Data from an URL Using jQuery" ,
"dashedName" : "waypoint-get-data-from-a-url-using-jquery" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.087 ,
"description" : [
] ,
"tests" : [
] ,
"challengeSeed" : [
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9ae9c08826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Loop through JSON Data Using jQuery" ,
"dashedName" : "waypoint-loop-through-json-data-using-jquery" ,
2015-07-02 17:31:08 -07:00
"difficulty" : 0.088 ,
2015-06-02 20:32:10 -07:00
"description" : [
] ,
"tests" : [
] ,
"challengeSeed" : [
] ,
"challengeType" : 0
} ,
{
2015-06-04 13:20:42 -07:00
"id" : "bad87fee1348bd9ae8c08826" ,
2015-06-27 11:56:31 -07:00
"name" : "Waypoint: Setup Click Events Using jQuery" ,
"dashedName" : "waypoint-setup-click-events-using-jquery" ,
2015-06-02 20:32:10 -07:00
"difficulty" : 0.089 ,
"description" : [
] ,
"tests" : [
] ,
"challengeSeed" : [
2015-07-02 17:31:08 -07:00
"fccss" ,
" $(document).ready(function() {" ,
"" ,
" });" ,
"fcces" ,
"<!-- You shouldn't need to modify code below this line -->" ,
"<button id='count-presses-button' class='btn btn-primary btn-block btn-lg>Press me</button>" ,
"<span id='times-pressed'>"
2015-06-02 20:32:10 -07:00
] ,
"challengeType" : 0
2015-07-02 17:31:08 -07:00
} ,
{
"id" : "bad88fee1348bd9ae8c08826" ,
"name" : "Waypoint: Wire AJAX Call into a jQuery Click Event" ,
"dashedName" : "waypoint-wire-ajax-call-into-a-jquery-click-event" ,
"difficulty" : 0.089 ,
2015-06-02 20:32:10 -07:00
"description" : [
2015-07-02 17:31:08 -07:00
"<img src='https://www.evernote.com/l/AjmAQ5BxGrFGRrWl_j2eSpGZMfrunfse89gB/image.png'>"
2015-06-02 20:32:10 -07:00
] ,
"tests" : [
] ,
"challengeSeed" : [
2015-07-02 17:31:08 -07:00
"fccss" ,
" var random = function() { return Math.floor(Math.random() * 3) }" ,
" $(document).ready(function() {" ,
"<!-- Don't change code above this line -->" ,
"" ,
" $('#cat-button').on('click', function() {" ,
" $.getJSON('/json/cats.json', function( json ) {" ,
" var kitten = json[random()];" ,
" $(\"<img src='\" + kitten.imageLink + \"'>\").appendTo('#output');" ,
" $(\"<h3>Code name: \" + kitten.codeNames[random()] + \"</h3>\").appendTo('#output');" ,
" });" ,
" });" ,
"" ,
"<!-- Don't change code below this line -->" ,
" });" ,
"fcces" ,
"<button id='cat-button' class='btn btn-primary btn-block btn-lg'>Cat Button</button>" ,
"<div class='jumbotron' id='output'>" ,
"</div>"
2015-06-02 20:32:10 -07:00
] ,
"challengeType" : 0
}
]
}