fix(learn): updated catphotoapp links (Arabic) (#39256)
This commit is contained in:
@ -40,7 +40,7 @@ tests:
|
|||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<a href="http://freecatphotoapp.com/" target="_blank">CatPhotoApp</a>
|
<a href="https://freecatphotoapp.com/" target="_blank">CatPhotoApp</a>
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -56,4 +56,5 @@ tests:
|
|||||||
```js
|
```js
|
||||||
// solution required
|
// solution required
|
||||||
```
|
```
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -79,7 +79,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -79,7 +79,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -53,7 +53,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -57,7 +57,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -82,7 +82,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -68,7 +68,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -80,7 +80,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -61,7 +61,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -82,7 +82,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -69,7 +69,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -73,7 +73,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -65,7 +65,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -63,7 +63,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -88,7 +88,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo" id="cat-photo-form">
|
<form action="https://freecatphotoapp.com/submit-cat-photo" id="cat-photo-form">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -86,7 +86,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo" id="cat-photo-form">
|
<form action="https://freecatphotoapp.com/submit-cat-photo" id="cat-photo-form">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -59,7 +59,7 @@ tests:
|
|||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -54,7 +54,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<input type="text" placeholder="cat photo URL">
|
<input type="text" placeholder="cat photo URL">
|
||||||
</form>
|
</form>
|
||||||
</main>
|
</main>
|
||||||
|
@ -50,7 +50,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -10,7 +10,7 @@ localeTitle: إنشاء عنصر النموذج
|
|||||||
<section id="description"> يمكنك إنشاء نماذج ويب تقوم بالفعل بإرسال البيانات إلى خادم لا يستخدم أكثر من HTML خالص. يمكنك القيام بذلك عن طريق تحديد إجراء على عنصر <code>form</code> الخاص بك. على سبيل المثال: <code><form action="/url-where-you-want-to-submit-form-data"></form></code> </section>
|
<section id="description"> يمكنك إنشاء نماذج ويب تقوم بالفعل بإرسال البيانات إلى خادم لا يستخدم أكثر من HTML خالص. يمكنك القيام بذلك عن طريق تحديد إجراء على عنصر <code>form</code> الخاص بك. على سبيل المثال: <code><form action="/url-where-you-want-to-submit-form-data"></form></code> </section>
|
||||||
|
|
||||||
## Instructions
|
## Instructions
|
||||||
<section id="instructions"> ضع حقل النص داخل عنصر <code>form</code> ، وأضف السمة <code>action="/submit-cat-photo"</code> إلى عنصر النموذج. </section>
|
<section id="instructions"> ضع حقل النص داخل عنصر <code>form</code> ، وأضف السمة <code>action="https://freecatphotoapp.com/submit-cat-photo"</code> إلى عنصر النموذج. </section>
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
<section id='tests'>
|
<section id='tests'>
|
||||||
@ -19,8 +19,8 @@ localeTitle: إنشاء عنصر النموذج
|
|||||||
tests:
|
tests:
|
||||||
- text: ضع عنصر إدخال النص داخل عنصر <code>form</code> .
|
- text: ضع عنصر إدخال النص داخل عنصر <code>form</code> .
|
||||||
testString: 'assert($("form") && $("form").children("input") && $("form").children("input").length > 0, "Nest your text input element within a <code>form</code> element.");'
|
testString: 'assert($("form") && $("form").children("input") && $("form").children("input").length > 0, "Nest your text input element within a <code>form</code> element.");'
|
||||||
- text: تأكد من احتواء <code>form</code> على سمة <code>action</code> تم تعيينها على <code>/submit-cat-photo</code>
|
- text: تأكد من احتواء <code>form</code> على سمة <code>action</code> تم تعيينها على <code>https://freecatphotoapp.com/submit-cat-photo</code>
|
||||||
testString: 'assert($("form").attr("action") === "/submit-cat-photo", "Make sure your <code>form</code> has an <code>action</code> attribute which is set to <code>/submit-cat-photo</code>");'
|
testString: 'assert($("form").attr("action") === "https://freecatphotoapp.com/submit-cat-photo", "Make sure your <code>form</code> has an <code>action</code> attribute which is set to <code>https://freecatphotoapp.com/submit-cat-photo</code>");'
|
||||||
- text: تأكد من أن عنصر <code>form</code> يحتوي على علامات فتح وغلق جيدة الإنشاء.
|
- text: تأكد من أن عنصر <code>form</code> يحتوي على علامات فتح وغلق جيدة الإنشاء.
|
||||||
testString: 'assert(code.match(/<\/form>/g) && code.match(/<form [^<]*>/g) && code.match(/<\/form>/g).length === code.match(/<form [^<]*>/g).length, "Make sure your <code>form</code> element has well-formed open and close tags.");'
|
testString: 'assert(code.match(/<\/form>/g) && code.match(/<form [^<]*>/g) && code.match(/<\/form>/g).length === code.match(/<form [^<]*>/g).length, "Make sure your <code>form</code> element has well-formed open and close tags.");'
|
||||||
|
|
||||||
@ -69,4 +69,5 @@ tests:
|
|||||||
```js
|
```js
|
||||||
// solution required
|
// solution required
|
||||||
```
|
```
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -54,7 +54,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label for="indoor"><input id="indoor" type="radio" name="indoor-outdoor"> Indoor</label>
|
<label for="indoor"><input id="indoor" type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label for="outdoor"><input id="outdoor" type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label for="outdoor"><input id="outdoor" type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<input type="text" placeholder="cat photo URL" required>
|
<input type="text" placeholder="cat photo URL" required>
|
||||||
|
@ -60,7 +60,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<input type="text" placeholder="cat photo URL" required>
|
<input type="text" placeholder="cat photo URL" required>
|
||||||
<button type="submit">Submit</button>
|
<button type="submit">Submit</button>
|
||||||
</form>
|
</form>
|
||||||
|
@ -17,7 +17,7 @@ localeTitle: ربط الصفحات الخارجية بستخدام عناصر ا
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
## Instructions
|
## Instructions
|
||||||
<section id="instructions"> إنشاء العنصر <code>a</code> الذي يربط <code>http://freecatphotoapp.com</code> له النص "cat photos"، في <code> نص الرابط</code> . </section>
|
<section id="instructions"> إنشاء العنصر <code>a</code> الذي يربط <code>https://freecatphotoapp.com</code> له النص "cat photos"، في <code> نص الرابط</code> . </section>
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
<section id='tests'>
|
<section id='tests'>
|
||||||
@ -26,7 +26,7 @@ localeTitle: ربط الصفحات الخارجية بستخدام عناصر ا
|
|||||||
tests:
|
tests:
|
||||||
- text: يجب أن يحتوي العنصر <code>a</code> الخاص بك على "cat photos" كنص للرابط <code>anchor text </code>.
|
- text: يجب أن يحتوي العنصر <code>a</code> الخاص بك على "cat photos" كنص للرابط <code>anchor text </code>.
|
||||||
testString: 'assert((/cat photos/gi).test($("a").text()), "Your <code>a</code> element should have the <code>anchor text</code> of "cat photos".");'
|
testString: 'assert((/cat photos/gi).test($("a").text()), "Your <code>a</code> element should have the <code>anchor text</code> of "cat photos".");'
|
||||||
- text: 'تحتاج إلى عنصر <code>a</code> يربط بالعنوان <code>http://freecatphotoapp.com</code>'
|
- text: 'تحتاج إلى عنصر <code>a</code> يربط بالعنوان <code>https://freecatphotoapp.com</code>'
|
||||||
testString: 'assert(/http:\/\/(www\.)?freecatphotoapp\.com/gi.test($("a").attr("href")), "You need an <code>a</code> element that links to <code>http://freecatphotoapp<wbr>.com</code>");'
|
testString: 'assert(/http:\/\/(www\.)?freecatphotoapp\.com/gi.test($("a").attr("href")), "You need an <code>a</code> element that links to <code>http://freecatphotoapp<wbr>.com</code>");'
|
||||||
- text: تأكد من ان العنصر <code>a</code> يحتوي على وسم إغلاق.
|
- text: تأكد من ان العنصر <code>a</code> يحتوي على وسم إغلاق.
|
||||||
testString: 'assert(code.match(/<\/a>/g) && code.match(/<\/a>/g).length === code.match(/<a/g).length, "Make sure your <code>a</code> element has a closing tag.");'
|
testString: 'assert(code.match(/<\/a>/g) && code.match(/<\/a>/g).length === code.match(/<a/g).length, "Make sure your <code>a</code> element has a closing tag.");'
|
||||||
@ -66,4 +66,5 @@ tests:
|
|||||||
```js
|
```js
|
||||||
// solution required
|
// solution required
|
||||||
```
|
```
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -43,7 +43,7 @@ tests:
|
|||||||
<h2>CatPhotoApp</h2>
|
<h2>CatPhotoApp</h2>
|
||||||
<main>
|
<main>
|
||||||
|
|
||||||
<a href="http://freecatphotoapp.com" target="_blank">cat photos</a>
|
<a href="https://freecatphotoapp.com" target="_blank">cat photos</a>
|
||||||
|
|
||||||
<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
|
<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
|
||||||
|
|
||||||
@ -70,4 +70,5 @@ tests:
|
|||||||
```js
|
```js
|
||||||
// solution required
|
// solution required
|
||||||
```
|
```
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -10,7 +10,7 @@ localeTitle: جعل الروابط الميتة باستخدام رمز التج
|
|||||||
<section id="description"> أحيانا كنت ترغب في إضافة <code>a</code> عناصر لموقع الويب الخاص بك قبل ان تعرفه حيث سيربط. هذا مفيد أيضًا عند تغيير سلوك الارتباط باستخدام <code>JavaScript</code> ، والذي سنتعرف عليه لاحقًا. </section>
|
<section id="description"> أحيانا كنت ترغب في إضافة <code>a</code> عناصر لموقع الويب الخاص بك قبل ان تعرفه حيث سيربط. هذا مفيد أيضًا عند تغيير سلوك الارتباط باستخدام <code>JavaScript</code> ، والذي سنتعرف عليه لاحقًا. </section>
|
||||||
|
|
||||||
## Instructions
|
## Instructions
|
||||||
<section id="instructions"> القيمة الحالية لسمة <code>href</code> عبارة عن رابط يشير إلى "http://freecatphotoapp.com". استبدل قيمة السمة <code>href</code> بـ <code>#</code> ، والمعروف أيضًا باسم رمز التجزئة ، لإنشاء رابط ميت. على سبيل المثال: <code>href="#"</code> </section>
|
<section id="instructions"> القيمة الحالية لسمة <code>href</code> عبارة عن رابط يشير إلى "https://freecatphotoapp.com". استبدل قيمة السمة <code>href</code> بـ <code>#</code> ، والمعروف أيضًا باسم رمز التجزئة ، لإنشاء رابط ميت. على سبيل المثال: <code>href="#"</code> </section>
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
<section id='tests'>
|
<section id='tests'>
|
||||||
@ -32,7 +32,7 @@ tests:
|
|||||||
```html
|
```html
|
||||||
<h2>CatPhotoApp</h2>
|
<h2>CatPhotoApp</h2>
|
||||||
<main>
|
<main>
|
||||||
<p>Click here to view more <a href="http://freecatphotoapp.com" target="_blank">cat photos</a>.</p>
|
<p>Click here to view more <a href="https://freecatphotoapp.com" target="_blank">cat photos</a>.</p>
|
||||||
|
|
||||||
<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
|
<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
|
||||||
|
|
||||||
@ -54,4 +54,5 @@ tests:
|
|||||||
```js
|
```js
|
||||||
// solution required
|
// solution required
|
||||||
```
|
```
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -17,16 +17,16 @@ localeTitle: عش عنصر الارتساء ضمن فقرة
|
|||||||
|
|
||||||
```yml
|
```yml
|
||||||
tests:
|
tests:
|
||||||
- text: 'تحتاج إلى <code>a</code> العنصر الذي يربط "http://freecatphotoapp.com".'
|
- text: 'تحتاج إلى <code>a</code> العنصر الذي يربط "https://freecatphotoapp.com".'
|
||||||
testString: 'assert(($("a[href=\"http://freecatphotoapp.com\"]").length > 0 || $("a[href=\"http://www.freecatphotoapp.com\"]").length > 0), "You need an <code>a</code> element that links to "http://freecatphotoapp.com".");'
|
testString: 'assert(($("a[href=\"https://freecatphotoapp.com\"]").length > 0 || $("a[href=\"http://www.freecatphotoapp.com\"]").length > 0), "You need an <code>a</code> element that links to "https://freecatphotoapp.com".");'
|
||||||
- text: الخاص بك <code>a</code> يجب أن يكون عنصر النص مرساة "صور القط"
|
- text: الخاص بك <code>a</code> يجب أن يكون عنصر النص مرساة "صور القط"
|
||||||
testString: 'assert($("a").text().match(/cat\sphotos/gi), "Your <code>a</code> element should have the anchor text of "cat photos"");'
|
testString: 'assert($("a").text().match(/cat\sphotos/gi), "Your <code>a</code> element should have the anchor text of "cat photos"");'
|
||||||
- text: إنشاء جديد <code>p</code> العنصر حول الخاص <code>a</code> العنصر. يجب أن يكون هناك 3 علامات <code>p</code> على الأقل في كود HTML الخاص بك.
|
- text: إنشاء جديد <code>p</code> العنصر حول الخاص <code>a</code> العنصر. يجب أن يكون هناك 3 علامات <code>p</code> على الأقل في كود HTML الخاص بك.
|
||||||
testString: 'assert($("p") && $("p").length > 2, "Create a new <code>p</code> element around your <code>a</code> element. There should be at least 3 total <code>p</code> tags in your HTML code.");'
|
testString: 'assert($("p") && $("p").length > 2, "Create a new <code>p</code> element around your <code>a</code> element. There should be at least 3 total <code>p</code> tags in your HTML code.");'
|
||||||
- text: ''
|
- text: ''
|
||||||
testString: 'assert(($("a[href=\"http://freecatphotoapp.com\"]").parent().is("p") || $("a[href=\"http://www.freecatphotoapp.com\"]").parent().is("p")), "Your <code>a</code> element should be nested within your new <code>p</code> element.");'
|
testString: 'assert(($("a[href=\"https://freecatphotoapp.com\"]").parent().is("p") || $("a[href=\"http://www.freecatphotoapp.com\"]").parent().is("p")), "Your <code>a</code> element should be nested within your new <code>p</code> element.");'
|
||||||
- text: يجب أن يحتوي عنصر <code>p</code> على النص "عرض المزيد" (مع وجود مسافة بعده).
|
- text: يجب أن يحتوي عنصر <code>p</code> على النص "عرض المزيد" (مع وجود مسافة بعده).
|
||||||
testString: 'assert(($("a[href=\"http://freecatphotoapp.com\"]").parent().text().match(/View\smore\s/gi) || $("a[href=\"http://www.freecatphotoapp.com\"]").parent().text().match(/View\smore\s/gi)), "Your <code>p</code> element should have the text "View more " (with a space after it).");'
|
testString: 'assert(($("a[href=\"https://freecatphotoapp.com\"]").parent().text().match(/View\smore\s/gi) || $("a[href=\"http://www.freecatphotoapp.com\"]").parent().text().match(/View\smore\s/gi)), "Your <code>p</code> element should have the text "View more " (with a space after it).");'
|
||||||
- text: الخاص بك <code>a</code> يجب أن <em>لا</em> يكون عنصر النص "عرض أكثر".
|
- text: الخاص بك <code>a</code> يجب أن <em>لا</em> يكون عنصر النص "عرض أكثر".
|
||||||
testString: 'assert(!$("a").text().match(/View\smore/gi), "Your <code>a</code> element should <em>not</em> have the text "View more".");'
|
testString: 'assert(!$("a").text().match(/View\smore/gi), "Your <code>a</code> element should <em>not</em> have the text "View more".");'
|
||||||
- text: تأكد من أن كل عنصر من عناصر <code>p</code> لديه علامة إغلاق.
|
- text: تأكد من أن كل عنصر من عناصر <code>p</code> لديه علامة إغلاق.
|
||||||
@ -47,7 +47,7 @@ tests:
|
|||||||
<h2>CatPhotoApp</h2>
|
<h2>CatPhotoApp</h2>
|
||||||
<main>
|
<main>
|
||||||
|
|
||||||
<a href="http://freecatphotoapp.com" target="_blank">cat photos</a>
|
<a href="https://freecatphotoapp.com" target="_blank">cat photos</a>
|
||||||
|
|
||||||
<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
|
<img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
|
||||||
|
|
||||||
@ -69,4 +69,5 @@ tests:
|
|||||||
```js
|
```js
|
||||||
// solution required
|
// solution required
|
||||||
```
|
```
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -55,7 +55,7 @@ tests:
|
|||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
|
||||||
<label><input type="checkbox" name="personality" checked> Loving</label>
|
<label><input type="checkbox" name="personality" checked> Loving</label>
|
||||||
|
@ -48,7 +48,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<input type="text" placeholder="cat photo URL">
|
<input type="text" placeholder="cat photo URL">
|
||||||
<button type="submit">Submit</button>
|
<button type="submit">Submit</button>
|
||||||
</form>
|
</form>
|
||||||
|
@ -85,7 +85,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -86,7 +86,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -84,7 +84,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -80,7 +80,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -83,7 +83,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -83,7 +83,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -81,7 +81,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -96,7 +96,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -88,7 +88,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-6">
|
<div class="col-xs-6">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
|
@ -85,7 +85,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -86,7 +86,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-6">
|
<div class="col-xs-6">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
|
@ -85,7 +85,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -88,7 +88,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-6">
|
<div class="col-xs-6">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
|
@ -83,7 +83,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -81,7 +81,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -80,7 +80,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -86,7 +86,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
@ -85,7 +85,7 @@ tests:
|
|||||||
<li>thunder</li>
|
<li>thunder</li>
|
||||||
<li>other cats</li>
|
<li>other cats</li>
|
||||||
</ol>
|
</ol>
|
||||||
<form action="/submit-cat-photo">
|
<form action="https://freecatphotoapp.com/submit-cat-photo">
|
||||||
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
|
||||||
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
|
||||||
<label><input type="checkbox" name="personality"> Loving</label>
|
<label><input type="checkbox" name="personality"> Loving</label>
|
||||||
|
Reference in New Issue
Block a user