From 23a242104b3bbc7badae08c3069f2c3657e1efe3 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Fri, 5 Jun 2015 12:05:23 -0700 Subject: [PATCH 01/28] start work on jquery curriculum --- app.js | 2 +- .../future-jquery-ajax-json.json | 40 ++++++++++++++----- views/layout.jade | 1 - 3 files changed, 32 insertions(+), 11 deletions(-) rename seed_data/{ => challenges}/future-jquery-ajax-json.json (72%) diff --git a/app.js b/app.js index 6ec67f2611..5d20a43d7e 100755 --- a/app.js +++ b/app.js @@ -622,7 +622,7 @@ app.get( } ); -// put this route last +// put ths route last app.get( '/:username', userController.returnUser diff --git a/seed_data/future-jquery-ajax-json.json b/seed_data/challenges/future-jquery-ajax-json.json similarity index 72% rename from seed_data/future-jquery-ajax-json.json rename to seed_data/challenges/future-jquery-ajax-json.json index 4ceea2fafc..e197f8e3d8 100644 --- a/seed_data/future-jquery-ajax-json.json +++ b/seed_data/challenges/future-jquery-ajax-json.json @@ -7,19 +7,41 @@ "name": "Waypoint: Learn how Script Tags and Document Ready Work", "difficulty": 0.072, "description": [ - "Test" + "We've simplified our Cat Photo App and removed our style element. Add a script element to your page and create a $(document).ready function within it.", + "Add $(document).ready(function() { to your script element, and then close it on the following line with });." ], "tests": [ - "assert(typeof $('#target').attr('disabled') === 'undefined', 'Change the disabled attribute of the \"target\" button to false');", - "expect($('#target')).to.exist()" + "assert(editor.match(/