start work on jquery curriculum

This commit is contained in:
Quincy Larson
2015-06-05 12:05:23 -07:00
parent b8b807a38d
commit 23a242104b
3 changed files with 32 additions and 11 deletions

2
app.js
View File

@ -622,7 +622,7 @@ app.get(
} }
); );
// put this route last // put ths route last
app.get( app.get(
'/:username', '/:username',
userController.returnUser userController.returnUser

View File

@ -7,19 +7,41 @@
"name": "Waypoint: Learn how Script Tags and Document Ready Work", "name": "Waypoint: Learn how Script Tags and Document Ready Work",
"difficulty": 0.072, "difficulty": 0.072,
"description": [ "description": [
"Test" "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": [ "tests": [
"assert(typeof $('#target').attr('disabled') === 'undefined', 'Change the disabled attribute of the \"target\" button to false');", "assert(editor.match(/<script>/g), 'Create a <code>script</code> element.')",
"expect($('#target')).to.exist()" "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": [ "challengeSeed": [
"fccss", "<br>",
" $(document).ready(function() {", "<img src='http://bit.ly/fcc-kittens2' class='img-responsive'>",
" $('#target').attr('disabled', true)", "<br>",
" });", "<div class='row'>",
"fcces", " <div class='col-xs-4'>",
"<button id='target' class='btn btn-primary btn-block'>Enable this button with jQuery</button>" " <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'>",
" <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' class='btn btn-primary'><i class='fa fa-paper-plane'></i> Submit</button>",
" </div>",
" </div>",
"</form>"
], ],
"challengeType": 0 "challengeType": 0
}, },

View File

@ -3,7 +3,6 @@ html(ng-app='profileValidation', lang='en')
head head
include partials/universal-head include partials/universal-head
body.top-and-bottom-margins body.top-and-bottom-margins
include partials/css-cdns
include partials/navbar include partials/navbar
.container .container
include partials/flash include partials/flash