diff --git a/public/js/main.js b/public/js/main.js index e5352c30b5..ea9921d4a7 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -36,6 +36,12 @@ $(document).ready(function() { } }); + $('#complete-courseware-dialog').keydown(function(e) { + if (e.ctrlKey && e.keyCode == 13) { + $('.next-courseware-button').click(); + } + }); + function completedBonfire(didCompleteWith, bonfireSolution, thisBonfireHash) { diff --git a/seed_data/coursewares.json b/seed_data/coursewares.json index 1e77d03bb8..c47fca00cc 100644 --- a/seed_data/coursewares.json +++ b/seed_data/coursewares.json @@ -5,9 +5,9 @@ "difficulty": "0.00", "description": [ "Welcome to Free Code Camp's first challenge! Click on the button below for further instructions.", - "Awesome. Now you can read the rest of this challenge's instructions", + "Awesome. Now you can read the rest of this challenge's instructions.", "You can edit code in text editor we've embedded into this web page.", - "See the code in the text editor that says <h1>hello</h1>? That's an HTML element.", + "Do you see the code in the text editor that says <h1>hello</h1>? That's an HTML element.", "Most HTML elements have an opening tag and a closing tag. Opening tags look like this: <h1>. Closing tags look like this: </h1>. Note that the only difference between opening and is that closing tags have a slash after their opening angle bracket.", "To advance to the next exercise, change the h1 tag's text to say \"hello world\" instead of \"hello\"." ], @@ -24,14 +24,14 @@ "name": "Use the h2 Element", "difficulty" : "0.01", "description": [ - "Add an h2 tag that says \"hello HTML\" to create a second HTML element below the \"hello world\" h1 element.", + "Add an h2 tag that says \"cat photo app\" to create a second HTML element below the \"hello world\" h1 element.", "The h2 element you enter will create an h2 element on the website.", "This element tells the browser how to render the text that it contains.", "h2 elements are slightly smaller than h1 elements. There are also an h3, h4, h5 and h6 elements." ], "tests": [ "expect($('h1')).to.have.text('hello world');", - "expect($('h2')).to.have.text('hello HTML');" + "expect($('h2')).to.have.text('cat photo app');" ], "challengeSeed": [ "

hello world

" @@ -73,7 +73,7 @@ "