diff --git a/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js b/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js index 2b89f012f5..94d8bb7e93 100644 --- a/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js +++ b/public/js/lib/coursewares/coursewaresHCJQFramework_0.1.9.js @@ -110,21 +110,6 @@ var testSuccess = function() { } }; -var challengeSeed = challengeSeed || null; -var allSeeds = ''; -(function() { - challengeSeed.forEach(function(elem) { - allSeeds += elem.replace(/fccss/g, '') + '\n'; - }); - editor.setValue(allSeeds); - (function() { - setTimeout(function() { - editor.refresh(); - }, 200); - })(); -})(); - - function doLinting () { editor.operation(function () { for (var i = 0; i < widgets.length; ++i) @@ -263,3 +248,17 @@ var resetEditor = function resetEditor() { updatePreview(); codeStorage.updateStorage(); }; + +var challengeSeed = challengeSeed || null; +var allSeeds = ''; +(function() { + challengeSeed.forEach(function(elem) { + allSeeds += elem.replace(/fccss/g, '') + '\n'; + }); + editor.setValue(allSeeds); + (function() { + setTimeout(function() { + editor.refresh(); + }, 200); + })(); +})(); diff --git a/seed/challenges/bootstrap.json b/seed/challenges/bootstrap.json index aae8943134..6c3c9467be 100644 --- a/seed/challenges/bootstrap.json +++ b/seed/challenges/bootstrap.json @@ -12,7 +12,7 @@ "Bootstrap will figure out how wide your screen is and respond by resizing your HTML elements - hence the name Responsive Design.", "With responsive design, there is no need to design a mobile version of your website. It will look good on devices with screens of any width.", "You can add Bootstrap to any app just by including it with <link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css'/> at the top of your HTML. But we've gone ahead and automatically added it to your Cat Photo App for you.", - "To get started, we should wrap all of our HTML in a div element with the class \"fluid-container\"." + "To get started, we should nest all of our HTML in a div element with the class \"fluid-container\"." ], "tests": [ "assert($('div').hasClass('container-fluid'), 'Your div element should have the class \"row\"')", @@ -703,12 +703,12 @@ "", "Note that in this illustration, the col-md-* class is being used. Here, \"md\" means \"medium\", and \"*\" is a number specifying how many columns wide the element should be. In this case, the column width of an element on a medium-sized screen, such as a laptop, is being specified.", "In the Cat Photo App that we're building, we'll use col-xs-*, where \"*\" is the number of columns wide the element should be, and \"xs\" means \"extra small\", like an extra-small mobile phone screen.", - "Put the \"Like\", \"Info\" and \"Delete\" buttons side-by-side by wrapping all three of them within one <div class=\"row\"> element, then each of them within a <div class=\"col-xs-4\"> element.", - "The \"row\" class is applied to a div, and the buttons themselves can be wrapped within it." + "Put the \"Like\", \"Info\" and \"Delete\" buttons side-by-side by nesting all three of them within one <div class=\"row\"> element, then each of them within a <div class=\"col-xs-4\"> element.", + "The \"row\" class is applied to a div, and the buttons themselves can be nested within it." ], "tests": [ - "assert($('div.row:has(button)').length > 0, 'Your buttons should all be wrapped within the same div element with the class \"row\".')", - "assert($('div.col-xs-4:has(button)').length > 2, 'Each of your Bootstrap buttons should be wrapped within its own div element with the class \"col-xs-4\".')", + "assert($('div.row:has(button)').length > 0, 'Your buttons should all be nested within the same div element with the class \"row\".')", + "assert($('div.col-xs-4:has(button)').length > 2, 'Each of your Bootstrap buttons should be nested within its own div element with the class \"col-xs-4\".')", "assert(editor.match(/<\\/button>/g) && editor.match(/