From 973143bba5829a29dbbbb2f46841caf1c11bfc00 Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 4 Sep 2024 04:53:06 -0400 Subject: [PATCH] feat(curriculum) : remove jQuery from bootstrap project (#55950) Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> --- ...dd-elements-within-your-bootstrap-wells.md | 21 +++++----- ...ont-awesome-icons-to-all-of-our-buttons.md | 22 +++++----- .../add-font-awesome-icons-to-our-buttons.md | 25 +++++------ ...add-id-attributes-to-bootstrap-elements.md | 14 +++---- ...pply-the-default-bootstrap-button-style.md | 4 +- ...call-out-optional-actions-with-btn-info.md | 17 ++++---- .../bootstrap/center-text-with-bootstrap.md | 4 +- ...create-a-block-element-bootstrap-button.md | 13 +++--- .../bootstrap/create-a-bootstrap-button.md | 17 ++++---- .../bootstrap/create-a-bootstrap-headline.md | 16 ++++--- .../bootstrap/create-a-bootstrap-row.md | 23 +++++----- ...a-class-to-target-with-jquery-selectors.md | 2 +- .../bootstrap/create-a-custom-heading.md | 33 ++++++++------- .../bootstrap/create-bootstrap-wells.md | 13 +++--- .../ditch-custom-css-for-bootstrap.md | 16 ++++--- .../give-each-element-a-unique-id.md | 42 ++++++++----------- ...-within-a-bootstrap-container-fluid-div.md | 15 +++---- .../bootstrap/label-bootstrap-buttons.md | 12 +++--- .../bootstrap/label-bootstrap-wells.md | 23 +++++----- ...rm-elements-responsively-with-bootstrap.md | 23 +++++----- .../make-images-mobile-responsive.md | 16 ++++--- .../responsively-style-checkboxes.md | 14 +++---- .../responsively-style-radio-buttons.md | 14 +++---- .../bootstrap/split-your-bootstrap-row.md | 10 ++--- .../style-text-inputs-as-form-controls.md | 13 ++++-- ...aste-the-bootstrap-button-color-rainbow.md | 13 +++--- .../use-a-span-to-target-inline-elements.md | 21 ++++------ .../bootstrap/use-comments-to-clarify-code.md | 8 ++-- ...-design-with-bootstrap-fluid-containers.md | 18 ++++---- ...strap-grid-to-put-elements-side-by-side.md | 32 ++++++++------ ...s-of-a-dangerous-action-with-btn-danger.md | 16 +++---- 31 files changed, 264 insertions(+), 266 deletions(-) diff --git a/curriculum/challenges/english/03-front-end-development-libraries/bootstrap/add-elements-within-your-bootstrap-wells.md b/curriculum/challenges/english/03-front-end-development-libraries/bootstrap/add-elements-within-your-bootstrap-wells.md index 2326bddd3cc..59707e58898 100644 --- a/curriculum/challenges/english/03-front-end-development-libraries/bootstrap/add-elements-within-your-bootstrap-wells.md +++ b/curriculum/challenges/english/03-front-end-development-libraries/bootstrap/add-elements-within-your-bootstrap-wells.md @@ -17,26 +17,27 @@ Nest three `button` elements within each of your `div` elements having the class Three `button` elements should be nested within each of your `div` elements with class `well`. ```js -assert( - $('div.well:eq(0)').children('button').length === 3 && - $('div.well:eq(1)').children('button').length === 3 -); +const buttonOne = document.querySelectorAll('div.well')?.[0]; +const buttonOneChildren = buttonOne?.querySelectorAll(`:scope ${'button'}`); +assert.lengthOf(buttonOneChildren,3); + +const buttonTwo = document.querySelectorAll('div.well')?.[1] +const buttonTwoChildren = buttonTwo?.querySelectorAll(`:scope ${'button'}`); +assert.lengthOf(buttonTwoChildren,3); ``` You should have a total of 6 `button` elements. ```js -assert($('button') && $('button').length > 5); +assert.lengthOf(document.querySelectorAll('button'), 6); ``` All of your `button` elements should have closing tags. ```js -assert( - code.match(/<\/button>/g) && - code.match(/