2.5 KiB
2.5 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bad87fee1348bd9aec908846 | Create a Bootstrap Headline | 0 | Создать заголовок Bootstrap |
Description
h3
с текстовой jQuery Playground
. Разделите свой элемент h3
text-primary
исходным классом Bootstrap и центрируйте его с помощью text-center
Bootstrap. Instructions
Tests
tests:
- text: Добавьте элемент <code>h3</code> на свою страницу.
testString: 'assert($("h3") && $("h3").length > 0, "Add a <code>h3</code> element to your page.");'
- text: 'Убедитесь, что ваш элемент <code>h3</code> имеет закрывающий тег.'
testString: 'assert(code.match(/<\/h3>/g) && code.match(/<h3/g) && code.match(/<\/h3>/g).length === code.match(/<h3/g).length, "Make sure your <code>h3</code> element has a closing tag.");'
- text: 'Ваш элемент <code>h3</code> должен быть окрашен, применяя <code>text-primary</code> класса <code>text-primary</code>'
testString: 'assert($("h3").hasClass("text-primary"), "Your <code>h3</code> element should be colored by applying the class <code>text-primary</code>");'
- text: 'Ваш элемент <code>h3</code> должен быть центрирован, применяя <code>text-center</code> класса'
testString: 'assert($("h3").hasClass("text-center"), "Your <code>h3</code> element should be centered by applying the class <code>text-center</code>");'
- text: Ваш элемент <code>h3</code> должен иметь текстовую <code>jQuery Playground</code> .
testString: 'assert.isTrue((/jquery(\s)+playground/gi).test($("h3").text()), "Your <code>h3</code> element should have the text <code>jQuery Playground</code>.");'
Challenge Seed
Solution
// solution required