diff --git a/curriculum/challenges/espanol/00-certifications/javascript-algorithms-and-data-structures-certification/javascript-algorithms-and-data-structures-certification.yml b/curriculum/challenges/espanol/00-certifications/javascript-algorithms-and-data-structures-certification/javascript-algorithms-and-data-structures-certification.yml index bc071ad522..974ac84723 100644 --- a/curriculum/challenges/espanol/00-certifications/javascript-algorithms-and-data-structures-certification/javascript-algorithms-and-data-structures-certification.yml +++ b/curriculum/challenges/espanol/00-certifications/javascript-algorithms-and-data-structures-certification/javascript-algorithms-and-data-structures-certification.yml @@ -1,5 +1,5 @@ id: 561abd10cb81ac38a17513bc -title: Certificación en estructura de datos y Algoritmos de JavaScript +title: Legacy JavaScript Algorithms and Data Structures Certification certification: javascript-algorithms-and-data-structures challengeType: 7 isPrivate: true diff --git a/curriculum/challenges/espanol/00-certifications/javascript-algorithms-and-data-structures-v8/javascript-algorithms-and-data-structures-certification-v8.yml b/curriculum/challenges/espanol/00-certifications/javascript-algorithms-and-data-structures-v8/javascript-algorithms-and-data-structures-certification-v8.yml index 76c3ddfdde..f05415dfc4 100644 --- a/curriculum/challenges/espanol/00-certifications/javascript-algorithms-and-data-structures-v8/javascript-algorithms-and-data-structures-certification-v8.yml +++ b/curriculum/challenges/espanol/00-certifications/javascript-algorithms-and-data-structures-v8/javascript-algorithms-and-data-structures-certification-v8.yml @@ -1,5 +1,5 @@ id: 658180220947283cdc0689ce -title: Certificación en algoritmos y estructuras de datos de JavaScript (Beta) +title: JavaScript Algorithms and Data Structures Certification certification: javascript-algorithms-and-data-structures-v8 challengeType: 7 isPrivate: true diff --git a/curriculum/challenges/espanol/01-responsive-web-design/basic-css/add-borders-around-your-elements.md b/curriculum/challenges/espanol/01-responsive-web-design/basic-css/add-borders-around-your-elements.md index 539ec758ea..1245abffa7 100644 --- a/curriculum/challenges/espanol/01-responsive-web-design/basic-css/add-borders-around-your-elements.md +++ b/curriculum/challenges/espanol/01-responsive-web-design/basic-css/add-borders-around-your-elements.md @@ -50,10 +50,14 @@ assert.isTrue(document.querySelector('img').classList.contains('thick-green-bord Tu imagen debe tener un ancho de borde o "border-width" de `10px`. ```js +// Note: to any future maintainers, the read width of the border is dependent on +// the zoom. For example we cannot match 10px exactly because if a campers set the zoom to 110% +// it will be read as 9~px. const image = document.querySelector('img'); const imageBorderTopWidth = window.getComputedStyle(image)["border-top-width"]; - -assert.strictEqual(imageBorderTopWidth, "10px") +const widthNumber = parseInt(imageBorderTopWidth); +assert.isAtLeast(widthNumber, 8); +assert.isAtMost(widthNumber, 12); ``` Tu imagen debe tener un estilo de borde o "border-style" `solid`. diff --git a/curriculum/challenges/espanol/01-responsive-web-design/css-flexbox/add-flex-superpowers-to-the-tweet-embed.md b/curriculum/challenges/espanol/01-responsive-web-design/css-flexbox/add-flex-superpowers-to-the-tweet-embed.md index 72dd1f982d..c9db3e7efa 100644 --- a/curriculum/challenges/espanol/01-responsive-web-design/css-flexbox/add-flex-superpowers-to-the-tweet-embed.md +++ b/curriculum/challenges/espanol/01-responsive-web-design/css-flexbox/add-flex-superpowers-to-the-tweet-embed.md @@ -22,49 +22,66 @@ El encabezado `header`, el `.profile-name` del encabezado, el `.follow-btn` del Tu `.follow-btn` debe mostrarse en la página. Asegúrate de desactivar las extensiones, como los bloqueadores de anuncios. ```js -assert($('.follow-btn').length > 0 && $('.follow-btn').css('display') !== 'none'); +const followButton = document.querySelector('.follow-btn'); +const displayStyle = window.getComputedStyle(followButton)['display']; +assert.isNotNull(followButton); +assert.notStrictEqual(displayStyle, 'none'); ``` Tu `header` debe tener una propiedad `display` establecida en `flex`. ```js -assert($('header').css('display') == 'flex'); +const header = document.querySelector('header'); +const displayStyle = window.getComputedStyle(header)['display']; +assert.strictEqual(displayStyle, 'flex'); ``` Tu `footer` debe tener una propiedad `display` establecida en `flex`. ```js -assert($('footer').css('display') == 'flex'); +const footer = document.querySelector('footer'); +const displayStyle = window.getComputedStyle(footer)['display']; +assert.strictEqual(displayStyle, 'flex'); ``` Tu `h3` debe tener una propiedad `display` establecida en `flex`. ```js -assert($('h3').css('display') == 'flex'); +const h3Element = document.querySelector('h3'); +const displayStyle = window.getComputedStyle(h3Element)['display']; +assert.strictEqual(displayStyle, 'flex'); ``` Tu `h4` debe tener una propiedad `display` establecida en `flex`. ```js -assert($('h4').css('display') == 'flex'); +const h4Element = document.querySelector('h4'); +const displayStyle = window.getComputedStyle(h4Element)['display']; +assert.strictEqual(displayStyle, 'flex'); ``` Tu `.profile-name` debe tener una propiedad `display` establecida en `flex`. ```js -assert($('.profile-name').css('display') == 'flex'); +const profileName = document.querySelector('.profile-name'); +const displayStyle = window.getComputedStyle(profileName)['display']; +assert.strictEqual(displayStyle, 'flex'); ``` Tu `.follow-btn` debe tener una propiedad `display` establecida en `flex`. ```js -assert($('.follow-btn').css('display') == 'flex'); +const followButton = document.querySelector('.follow-btn'); +const displayStyle = window.getComputedStyle(followButton)['display']; +assert.strictEqual(displayStyle, 'flex'); ``` Tu `.stats` debe tener una propiedad `display` establecida en `flex`. ```js -assert($('.stats').css('display') == 'flex'); +const stats = document.querySelector('.stats'); +const displayStyle = window.getComputedStyle(stats)['display']; +assert.strictEqual(displayStyle, 'flex'); ``` # --seed-- @@ -142,18 +159,17 @@ assert($('.stats').css('display') == 'flex');
-

I meet so many people who are in search of that one trick that will help them work smart. Even if you work smart, you still have to work hard.

+

+ I meet so many people who are in search of that one trick that will help + them work smart. Even if you work smart, you still have to work hard. +

1:32 PM - 12 Jan 2018 -
+