2.1 KiB
2.1 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bad87fee1348bd9aec908846 | Create a Bootstrap Headline | 0 | Criar um título de bootstrap |
Description
h3
, com o texto jQuery Playground
. h3
cor ao elemento h3
com a classe Bootstrap text-primary
ao text-primary
e centralize-o com a classe Bootstrap do text-center
. Instructions
Tests
tests:
- text: Adicione um elemento <code>h3</code> à sua página.
testString: 'assert($("h3") && $("h3").length > 0, "Add a <code>h3</code> element to your page.");'
- text: Certifique-se de que seu elemento <code>h3</code> tenha uma tag de fechamento.
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: Seu elemento <code>h3</code> deve ser colorido aplicando a classe <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: Seu elemento <code>h3</code> deve ser centrado aplicando o <code>text-center</code> da turma
testString: 'assert($("h3").hasClass("text-center"), "Your <code>h3</code> element should be centered by applying the class <code>text-center</code>");'
- text: Seu elemento <code>h3</code> deve ter o texto <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