2.2 KiB
2.2 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bad87fee1348bd9aec908846 | Create a Bootstrap Headline | 0 | قم بإنشاء عنوان Bootstrap |
Description
h3
، باستخدام jQuery Playground
للنص. قم h3
عنصر h3
الخاص بك مع فئة Bootstrap text-primary
، وقم بتوسيطها مع فئة Bootstrap في مركز text-center
. 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>
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: ''
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