add additional jQuery waypoint
This commit is contained in:
@ -332,10 +332,41 @@
|
|||||||
|
|
||||||
],
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
|
"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.')"
|
||||||
],
|
],
|
||||||
"challengeSeed": [
|
"challengeSeed": [
|
||||||
|
"fccss",
|
||||||
|
" $(document).ready(function() {",
|
||||||
|
" $('#cat-photo-form').css('background-color', 'gray');",
|
||||||
|
" $('#submit-button').prop('disabled', 'true');",
|
||||||
|
" });",
|
||||||
|
"fcces",
|
||||||
|
"<br>",
|
||||||
|
"<img src='http://bit.ly/fcc-kittens2' class='img-responsive'>",
|
||||||
|
"<br>",
|
||||||
|
"<div class='row'>",
|
||||||
|
" <div class='col-xs-4'>",
|
||||||
|
" <button class='btn btn-block btn-primary'><i class='fa fa-thumbs-up'></i> Like</button>",
|
||||||
|
" </div>",
|
||||||
|
" <div class='col-xs-4'>",
|
||||||
|
" <button class='btn btn-block btn-info'><i class='fa fa-info-circle'></i> Info</button>",
|
||||||
|
" </div>",
|
||||||
|
" <div class='col-xs-4'>",
|
||||||
|
" <button class='btn btn-block btn-danger'><i class='fa fa-trash'></i> Delete</button>",
|
||||||
|
" </div>",
|
||||||
|
"</div>",
|
||||||
|
"<br>",
|
||||||
|
"<form action='submit-cat-photo' id='cat-photo-form'>",
|
||||||
|
" <div class='row'>",
|
||||||
|
" <div class='col-xs-7'>",
|
||||||
|
" <input type='text' class='form-control' placeholder='cat photo URL' required>",
|
||||||
|
" </div>",
|
||||||
|
" <div class='col-xs-5'>",
|
||||||
|
" <button type='submit' id='submit-button' class='btn btn-primary'><i class='fa fa-paper-plane'></i> Submit</button>",
|
||||||
|
" </div>",
|
||||||
|
" </div>",
|
||||||
|
"</form>"
|
||||||
],
|
],
|
||||||
"challengeType": 0
|
"challengeType": 0
|
||||||
},
|
},
|
||||||
@ -345,7 +376,38 @@
|
|||||||
"name": "Waypoint: Move an Element Using jQuery",
|
"name": "Waypoint: Move an Element Using jQuery",
|
||||||
"difficulty": 0.079,
|
"difficulty": 0.079,
|
||||||
"description": [
|
"description": [
|
||||||
|
"fccss",
|
||||||
|
" $(document).ready(function() {",
|
||||||
|
" $('#cat-photo-form').css('background-color', 'gray');",
|
||||||
|
" $('#submit-button').prop('disabled', 'true');",
|
||||||
|
" $('img').remove();",
|
||||||
|
" });",
|
||||||
|
"fcces",
|
||||||
|
"<br>",
|
||||||
|
"<img src='http://bit.ly/fcc-kittens2' class='img-responsive'>",
|
||||||
|
"<br>",
|
||||||
|
"<div class='row'>",
|
||||||
|
" <div class='col-xs-4'>",
|
||||||
|
" <button class='btn btn-block btn-primary'><i class='fa fa-thumbs-up'></i> Like</button>",
|
||||||
|
" </div>",
|
||||||
|
" <div class='col-xs-4'>",
|
||||||
|
" <button class='btn btn-block btn-info'><i class='fa fa-info-circle'></i> Info</button>",
|
||||||
|
" </div>",
|
||||||
|
" <div class='col-xs-4'>",
|
||||||
|
" <button class='btn btn-block btn-danger'><i class='fa fa-trash'></i> Delete</button>",
|
||||||
|
" </div>",
|
||||||
|
"</div>",
|
||||||
|
"<br>",
|
||||||
|
"<form action='submit-cat-photo' id='cat-photo-form'>",
|
||||||
|
" <div class='row'>",
|
||||||
|
" <div class='col-xs-7'>",
|
||||||
|
" <input type='text' class='form-control' placeholder='cat photo URL' required>",
|
||||||
|
" </div>",
|
||||||
|
" <div class='col-xs-5'>",
|
||||||
|
" <button type='submit' id='submit-button' class='btn btn-primary'><i class='fa fa-paper-plane'></i> Submit</button>",
|
||||||
|
" </div>",
|
||||||
|
" </div>",
|
||||||
|
"</form>"
|
||||||
],
|
],
|
||||||
"tests": [
|
"tests": [
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user