From 3ce51feceac7c5bf7267a0d2e11362e6bcef0501 Mon Sep 17 00:00:00 2001 From: Matias Cao Date: Tue, 16 Jun 2015 18:27:58 -0300 Subject: [PATCH 01/15] WP11 ES Translation --- challenges/basic-html5-and-css.json | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/challenges/basic-html5-and-css.json b/challenges/basic-html5-and-css.json index 4640facb09..f1b8f5608c 100644 --- a/challenges/basic-html5-and-css.json +++ b/challenges/basic-html5-and-css.json @@ -439,8 +439,17 @@ "descriptionFr": [], "nameRu": "", "descriptionRu": [], - "nameEs": "", - "descriptionEs": [], + "nameEs": "Waypoint: Utiliza una clase CSS para darle estilo a un elemento", + "descriptionEs": [ + "Crea una clase CSS llamada \"red-text\" y aplicala a tu elemento h2.", + "Las clases son estilos reutilizables que pueden ser añadidos a elementos HTML", + "Esta es la anatomía de una clase CSS:", + "a diagram of how style tags are composed, which is also described in detail on the following lines.", + "Puedes ver que hemos creado una clase CSS llamada \"blue-text\" dentro de la etiqueta <style>.", + "Puedes aplicar una clase a un elemento HTML de esta manera: <h2 class=\"blue-text\">CatPhotoApp</h2>.", + "Nota que en el elemento CSS style, las clases deberían comenzar con un punto. En los elementos HTML, las declaraciones de clase, NO deberían comenzar con punto. ", + "En vez de de crear un nuevo elemento style, prueba remover la declaración de estilo de h2 y reemplazarla por la declaración \"red-text\"." + ], "namePt": "", "descriptionPt": [] }, From 120879e10b9c0f41f591132956d4940048d8e3d3 Mon Sep 17 00:00:00 2001 From: Matias Cao Date: Mon, 22 Jun 2015 20:22:09 -0300 Subject: [PATCH 02/15] WP 12-13 ES Translation --- challenges/basic-html5-and-css.json | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/challenges/basic-html5-and-css.json b/challenges/basic-html5-and-css.json index f1b8f5608c..fcb1eb9f77 100644 --- a/challenges/basic-html5-and-css.json +++ b/challenges/basic-html5-and-css.json @@ -487,8 +487,12 @@ "descriptionFr": [], "nameRu": "", "descriptionRu": [], - "nameEs": "", - "descriptionEs": [], + "nameEs": "Waypoint: Estila multiples elementos con una clase CSS", + "descriptionEs": [ + "Aplica la clase \"red-text\" a tus elementos h2 y p.", + "Recuerda que puedes agregar clases a elementos HTML utilizando class=\"your-class-here\" dentro de la tag de entrada del mismo.", + "Recuerda que los selectores CSS requieren un punto al principio: .blue-text { color: blue; }, pero que las declaraciones de clase NO llevan punto: <h2 class=\"blue-text\">CatPhotoApp<h2>." + ], "namePt": "", "descriptionPt": [] }, @@ -527,8 +531,13 @@ "descriptionFr": [], "nameRu": "", "descriptionRu": [], - "nameEs": "", - "descriptionEs": [], + "nameEs": "Waypoint: Cambia el tamaño de fuente de un elemento.", + "descriptionEs": [ + "Crea un segundo elemento p. Luego, dentro de tu elemento <style>, pon el \"font-size\" de todos los elementos p a 16 pixeles.", + "El tamaño de fuente es controlado por el atributo CSS \"font-size\", como aquí: h1 { font-size: 30px; }.", + "Primero, crea un segundo elemento p con el siguiente texto Kitty Ipsum: Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.", + "Ve si puedes encontrar una manera de darle a ambos elementos p un font-size de 16 pixeles (16px). Puedes hacer esto dentro de la misma etiqueta <style> que creamos para la clase \"red-text\"." + ], "namePt": "", "descriptionPt": [] }, From 08c2138cee9a906af3f205a2803080705f793cd5 Mon Sep 17 00:00:00 2001 From: ahstro Date: Thu, 6 Aug 2015 23:28:27 +0200 Subject: [PATCH 03/15] Improves 'Target Elements by ID Using jQuery' --- challenges/jquery-ajax-and-json.json | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/challenges/jquery-ajax-and-json.json b/challenges/jquery-ajax-and-json.json index dad707f590..ce8cf694d9 100644 --- a/challenges/jquery-ajax-and-json.json +++ b/challenges/jquery-ajax-and-json.json @@ -153,15 +153,17 @@ "dashedName": "waypoint-target-elements-by-id-using-jquery", "difficulty": 3.04, "description": [ - "You can also target elements by their id attributes.", - "First target your div element with the class \"target3\" by using the $('#target3') selector.", - "Note that, just like with CSS declarations, you type a # before the class's name.", - "Then use jQuery's .addClass() function to add the classes \"animated\" and \"fadeOut\".", - "Make all the button element with the id \"target3\" fadeOut. $('#target3').addClass('animated fadeOut')." + "Just like you can target elements by their classes, you can also target them by their id attributes.", + "First target the element with the id target3 by using the $('#target3') selector.", + "Note that, just like with CSS selectors, you type a # before the id's name.", + "Then use jQuery's .addClass() function to add the class fadeOut.", + "Since #target3 is a button, and we already added the animated-class to all button-elements, we do not need to add it again.", + "Make all the elements with the id target3 fade out. $('#target3').addClass('fadeOut')." ], "tests": [ - "assert($('#target3').hasClass('animated') && $('#target3').hasClass('fadeOut'), 'Select the buttonelement with the id of \"target3\" and use the jQuery addClass() function to give it the classes of \"animated\" and \"fadeOut\".');", - "assert(!editor.match(/class.*animated/g), 'Only use jQuery to add these classes to the element.');" + "assert($('#target3').hasClass('animated'), 'Make sure the old animated-class is still added to all buttons.')", + "assert($('#target3').hasClass('fadeOut'), 'Target the element with the id target3 and use the jQuery addClass() function to give it the class fadeOut.')", + "assert(!editor.match(/class.*animated/g), 'Only use jQuery to add these classes to the element.')" ], "challengeSeed": [ "fccss", From 83005129cb3350ac2efc54ca25288bdc1e24a01b Mon Sep 17 00:00:00 2001 From: Samuel Plumppu Date: Fri, 7 Aug 2015 16:32:20 +0200 Subject: [PATCH 04/15] clarified description for waypoint: make images mobile responsive --- challenges/bootstrap.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/bootstrap.json b/challenges/bootstrap.json index def874e207..c929ee9591 100644 --- a/challenges/bootstrap.json +++ b/challenges/bootstrap.json @@ -92,7 +92,7 @@ "dashedName": "waypoint-make-images-mobile-responsive", "difficulty": 2.02, "description": [ - "First, Add a new image with the src attribute of \"http://bit.ly/fcc-kittens2\".", + "First, Add a new image below the existing one. Set it's src attribute to \"http://bit.ly/fcc-kittens2\".", "It would be great if this image could be exactly the width of our phone's screen.", "Fortunately, with Bootstrap, all we need to do is add the \"img-responsive\" class to your image. Do this, and the image should perfectly fit the width of your page." ], From 9966f496782686c27e35266444ebeaa2530f9959 Mon Sep 17 00:00:00 2001 From: ahstro Date: Sat, 8 Aug 2015 03:29:22 +0200 Subject: [PATCH 05/15] 'Convert HTML Entities' now allows upper and lower case entities #1647 --- challenges/intermediate-bonfires.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/challenges/intermediate-bonfires.json b/challenges/intermediate-bonfires.json index 184a648748..7f6c88ae26 100644 --- a/challenges/intermediate-bonfires.json +++ b/challenges/intermediate-bonfires.json @@ -398,12 +398,12 @@ "convert('Dolce & Gabbana');" ], "tests": [ - "assert.strictEqual(convert('Dolce & Gabbana'), 'Dolce & Gabbana', 'should escape characters');", - "assert.strictEqual(convert('Hamburgers < Pizza < Tacos'), 'Hamburgers < Pizza < Tacos', 'should escape characters');", - "assert.strictEqual(convert('Sixty > twelve'), 'Sixty > twelve', 'should escape characters');", - "assert.strictEqual(convert('Stuff in \"quotation marks\"'), 'Stuff in "quotation marks"', 'should escape characters');", - "assert.strictEqual(convert(\"Shindler's List\"), 'Shindler's List', 'should escape characters');", - "assert.strictEqual(convert('<>'), '<>', 'should escape characters');", + "assert.match(convert('Dolce & Gabbana'), /Dolce &(amp|AMP); Gabbana/, 'should escape characters');", + "assert.match(convert('Hamburgers < Pizza < Tacos'), /Hamburgers &(lt|LT); Pizza &(lt|LT); Tacos/, 'should escape characters');", + "assert.match(convert('Sixty > twelve'), /Sixty &(gt|GT); twelve/, 'should escape characters');", + "assert.match(convert('Stuff in \"quotation marks\"'), /Stuff in &(quot|QUOT);quotation marks&(quot|QUOT);/, 'should escape characters');", + "assert.match(convert(\"Shindler's List\"), /Shindler&(apos|APOS);s List/, 'should escape characters');", + "assert.match(convert('<>'), /&(lt|LT);&(gt|GT);/, 'should escape characters');", "assert.strictEqual(convert('abc'), 'abc', 'should handle strings with nothing to escape');" ], "MDNlinks": [ From 7c3740ddc88d813d4f680f9b78979c145a4f5ad9 Mon Sep 17 00:00:00 2001 From: ahstro Date: Sat, 8 Aug 2015 03:43:14 +0200 Subject: [PATCH 06/15] Added even more HTML entities and removed &APOS; --- challenges/intermediate-bonfires.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/challenges/intermediate-bonfires.json b/challenges/intermediate-bonfires.json index 7f6c88ae26..42b5178011 100644 --- a/challenges/intermediate-bonfires.json +++ b/challenges/intermediate-bonfires.json @@ -398,12 +398,12 @@ "convert('Dolce & Gabbana');" ], "tests": [ - "assert.match(convert('Dolce & Gabbana'), /Dolce &(amp|AMP); Gabbana/, 'should escape characters');", - "assert.match(convert('Hamburgers < Pizza < Tacos'), /Hamburgers &(lt|LT); Pizza &(lt|LT); Tacos/, 'should escape characters');", - "assert.match(convert('Sixty > twelve'), /Sixty &(gt|GT); twelve/, 'should escape characters');", - "assert.match(convert('Stuff in \"quotation marks\"'), /Stuff in &(quot|QUOT);quotation marks&(quot|QUOT);/, 'should escape characters');", - "assert.match(convert(\"Shindler's List\"), /Shindler&(apos|APOS);s List/, 'should escape characters');", - "assert.match(convert('<>'), /&(lt|LT);&(gt|GT);/, 'should escape characters');", + "assert.match(convert('Dolce & Gabbana'), /Dolce &(amp|AMP|#x00026|#38); Gabbana/, 'should escape characters');", + "assert.match(convert('Hamburgers < Pizza < Tacos'), /Hamburgers &(lt|LT|#x0003C|#60); Pizza &(lt|LT|#x0003C|#60); Tacos/, 'should escape characters');", + "assert.match(convert('Sixty > twelve'), /Sixty &(gt|GT|#x0003E|#62); twelve/, 'should escape characters');", + "assert.match(convert('Stuff in \"quotation marks\"'), /Stuff in &(quot|QUOT|#x00022|#34);quotation marks&(quot|QUOT|#x00022|#34);/, 'should escape characters');", + "assert.match(convert(\"Shindler's List\"), /Shindler&(apos|#x00027|#39);s List/, 'should escape characters');", + "assert.match(convert('<>'), /&(lt|LT|#x0003C|#60);&(gt|GT|#x0003E|#62);/, 'should escape characters');", "assert.strictEqual(convert('abc'), 'abc', 'should handle strings with nothing to escape');" ], "MDNlinks": [ From d18c819ebdc489dda179c1cf0a4c2196b05fdfda Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Tue, 11 Aug 2015 23:53:30 -0700 Subject: [PATCH 07/15] fix omission in simon zipline --- challenges/intermediate-ziplines.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/intermediate-ziplines.json b/challenges/intermediate-ziplines.json index 2a2d5af952..4839ec8760 100644 --- a/challenges/intermediate-ziplines.json +++ b/challenges/intermediate-ziplines.json @@ -140,7 +140,7 @@ "difficulty": 1.07, "challengeSeed": ["126415123"], "description": [ - "Objective: Build a CodePen.io app that successfully reverse-engineers this: http://codepen.io/dting/full/KpJXZV/.", + "Objective: Build a CodePen.io app that successfully reverse-engineers this: http://codepen.io/dting/full/KpJXZV/.", "Rule #1: Don't look at the example project's code on CodePen. Figure it out for yourself.", "Rule #2: You may use whichever libraries or APIs you need.", "Rule #3: Reverse engineer the example project's functionality, and also feel free to personalize it.", From 78441a49d41b95be13c0a5ed67fa84371074886a Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Wed, 12 Aug 2015 00:52:40 -0700 Subject: [PATCH 08/15] make all single quotes in jquery challenges double quotes --- challenges/jquery-ajax-and-json.json | 895 -------------------------- challenges/jquery.json | 899 +++++++++++++++++++++++++++ 2 files changed, 899 insertions(+), 895 deletions(-) delete mode 100644 challenges/jquery-ajax-and-json.json create mode 100644 challenges/jquery.json diff --git a/challenges/jquery-ajax-and-json.json b/challenges/jquery-ajax-and-json.json deleted file mode 100644 index 26cdb46b8a..0000000000 --- a/challenges/jquery-ajax-and-json.json +++ /dev/null @@ -1,895 +0,0 @@ -{ - "name": "jQuery", - "order": 0.004, - "challenges": [ - { - "id": "bad87fee1348bd9acdd08826", - "title": "Learn how Script Tags and Document Ready Work", - "difficulty": 3.01, - "description": [ - "Now we're ready to learn jQuery, the most popular JavaScript tool of all time. Don't worry about JavaScript itself - we will cover it soon.", - "Before we can start using jQuery, we need to add some things to our HTML.", - "First, add a script element at the top of your page. Be sure to close it on the following line.", - "Your browser will run any JavaScript inside a script element, including jQuery.", - "Inside your script element, add this code: $(document).ready(function() { to your script. Then close it on the following line (still inside your script element) with: });" - ], - "tests": [ - "assert(editor.match(/