Files
freeCodeCamp/curriculum/challenges/russian/03-front-end-libraries/bootstrap/create-a-bootstrap-row.russian.md

60 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: bad87fee1348bd9bec908846
title: Create a Bootstrap Row
challengeType: 0
videoUrl: ''
localeTitle: Создать строку Bootstrap
---
## Description
<section id="description"> Теперь мы создадим строку Bootstrap для наших встроенных элементов. Создайте элемент <code>div</code> под тегом <code>h3</code> с классом <code>row</code> . </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: Добавьте элемент <code>div</code> ниже вашего элемента <code>h3</code> .
testString: 'assert(($("div").length > 1) && ($("div.row h3.text-primary").length == 0) && ($("div.row + h3.text-primary").length == 0) && ($("h3.text-primary + div.row").length > 0), "Add a <code>div</code> element below your <code>h3</code> element.");'
- text: Ваш элемент <code>div</code> должен иметь <code>row</code> класса
testString: 'assert($("div").hasClass("row"), "Your <code>div</code> element should have the class <code>row</code>");'
- text: Ваш <code>row div</code> должен быть вложен в <code>container-fluid div</code>
testString: 'assert($("div.container-fluid div.row").length > 0, "Your <code>row div</code> should be nested inside the <code>container-fluid div</code>");'
- text: 'Убедитесь, что ваш элемент <code>div</code> имеет закрывающий тег.'
testString: 'assert(code.match(/<\/div>/g) && code.match(/<div/g) && code.match(/<\/div>/g).length === code.match(/<div/g).length, "Make sure your <code>div</code> element has a closing tag.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='html-seed'>
```html
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
</div>
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>