fix(learn): updated catphotoapp links (Chinese) (#39252)

This commit is contained in:
Randell Dawson
2020-07-15 02:55:06 -07:00
committed by GitHub
parent 3c58ec4dad
commit 98977942ff
47 changed files with 56 additions and 55 deletions

View File

@ -53,7 +53,7 @@ tests:
</style>
<a href="http://freecatphotoapp.com/" target="_blank">猫咪相册 App</a>
<a href="https://freecatphotoapp.com/" target="_blank">猫咪相册 App</a>
```
</div>

View File

@ -98,7 +98,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -85,7 +85,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -64,7 +64,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -69,7 +69,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -95,7 +95,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -80,7 +80,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -85,7 +85,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -74,7 +74,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -91,7 +91,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -85,7 +85,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -90,7 +90,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -70,7 +70,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -83,7 +83,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -102,7 +102,7 @@ tests:
</ol>
</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">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -100,7 +100,7 @@ tests:
</ol>
</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">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -84,7 +84,7 @@ tests:
</ol>
</div>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -61,7 +61,7 @@ tests:
<li>打雷</li>
<li>同类</li>
</ol>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<input type="text" placeholder="猫咪图片地址">
</form>
</main>

View File

@ -56,7 +56,7 @@ tests:
<li>打雷</li>
<li>同类</li>
</ol>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -16,7 +16,7 @@ localeTitle: 创建一个表单
## Instructions
<section id='instructions'>
<code>input</code>输入框外层创建一个<code>form</code>表单,然后设置表单的<code>action</code>属性为<code>"/submit-cat-photo"</code>
<code>input</code>输入框外层创建一个<code>form</code>表单,然后设置表单的<code>action</code>属性为<code>"https://freecatphotoapp.com/submit-cat-photo"</code>
</section>
## Tests
@ -26,8 +26,8 @@ localeTitle: 创建一个表单
tests:
- text: '在<code>input</code>输入框外层创建一个<code>form</code>表单。'
testString: assert($("form") && $("form").children("input") && $("form").children("input").length > 0);
- text: '确保表单的<code>action</code>属性为<code>"/submit-cat-photo"</code>。'
testString: assert($("form").attr("action") === "/submit-cat-photo");
- text: '确保表单的<code>action</code>属性为<code>"https://freecatphotoapp.com/submit-cat-photo"</code>。'
testString: assert($("form").attr("action") === "https://freecatphotoapp.com/submit-cat-photo");
- text: '确保表单有开始标记和结束标记。'
testString: assert(code.match(/<\/form>/g) && code.match(/<form [^<]*>/g) && code.match(/<\/form>/g).length === code.match(/<form [^<]*>/g).length);

View File

@ -67,7 +67,7 @@ tests:
<li>打雷</li>
<li>同类</li>
</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">室内</label>
<label for="outdoor"><input id="outdoor" type="radio" name="indoor-outdoor">室外</label><br>
<input type="text" placeholder="猫咪图片地址" required>

View File

@ -84,7 +84,7 @@ tests:
<li>打雷</li>
<li>同类</li>
</ol>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<input type="text" placeholder="猫咪图片地址" required>
<button type="submit">提交</button>
</form>

View File

@ -17,7 +17,7 @@ localeTitle: 用 a 实现网页间的跳转
## Instructions
<section id='instructions'>
创建一个 <code>a</code>,它的<code>href</code>属性为<code>http://freecatphotoapp.com</code> ,它的文本为<code>cat photos</code>
创建一个 <code>a</code>,它的<code>href</code>属性为<code>https://freecatphotoapp.com</code> ,它的文本为<code>cat photos</code>
</section>
## Tests

View File

@ -59,7 +59,7 @@ tests:
<h2>CatPhotoApp</h2>
<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="一只仰卧着的萌猫">

View File

@ -15,7 +15,7 @@ localeTitle: '用 # 号来创建链接占位符'
## Instructions
<section id='instructions'>
<code>href</code>属性的当前值是指向 "http://freecatphotoapp.com",将<code>href</code>属性的值替换为<code>#</code>,就可以创建固定链接。
<code>href</code>属性的当前值是指向 "https://freecatphotoapp.com",将<code>href</code>属性的值替换为<code>#</code>,就可以创建固定链接。
例如: <code>href="#"</code>
</section>
@ -39,7 +39,7 @@ tests:
```html
<h2>CatPhotoApp</h2>
<main>
<p>点击这里可以获取更多<a href="http://freecatphotoapp.com" target="_blank">猫咪图片</a></p>
<p>点击这里可以获取更多<a href="https://freecatphotoapp.com" target="_blank">猫咪图片</a></p>
<img src="https://bit.ly/fcc-relaxing-cat" alt="一只仰卧着的萌猫">

View File

@ -38,16 +38,16 @@ localeTitle: 将 a 嵌套在段落中
```yml
tests:
- text: '你需要一个指向 "http://freecatphotoapp.com" 的 <code>a</code> 。'
testString: assert(($("a[href=\"http://freecatphotoapp.com\"]").length > 0 || $("a[href=\"http://www.freecatphotoapp.com\"]").length > 0));
- text: '你需要一个指向 "https://freecatphotoapp.com" 的 <code>a</code> 。'
testString: assert(($("a[href=\"https://freecatphotoapp.com\"]").length > 0 || $("a[href=\"http://www.freecatphotoapp.com\"]").length > 0));
- text: '<code>a</code> 的文本应为cat photos。'
testString: assert($("a").text().match(/cat\sphotos/gi));
- text: '在 <code>a</code> 的外部创建一个新段落,这样页面就有 3 个段落了。'
testString: assert($("p") && $("p").length > 2);
- text: '<code>a</code> 应嵌套在新段落内。'
testString: assert(($("a[href=\"http://freecatphotoapp.com\"]").parent().is("p") || $("a[href=\"http://www.freecatphotoapp.com\"]").parent().is("p")));
testString: assert(($("a[href=\"https://freecatphotoapp.com\"]").parent().is("p") || $("a[href=\"http://www.freecatphotoapp.com\"]").parent().is("p")));
- text: '段落应该包含文本 View more记得 more 后面有一个空格)。'
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)));
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)));
- text: '<code>a</code> 不应该包含文本 View more。'
testString: assert(!$("a").text().match(/View\smore/gi));
- text: '确保每个段落有结束标记。'
@ -68,7 +68,7 @@ tests:
<h2>CatPhotoApp</h2>
<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="一只仰卧着的萌猫">
@ -85,5 +85,6 @@ tests:
## Solution
<section id='solution'>
</section>

View File

@ -63,7 +63,7 @@ tests:
<li>同类</li>
</ol>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor">室内</label>
<label><input type="radio" name="indoor-outdoor">室外</label><br>
<label><input type="checkbox" name="personality">忠诚</label>

View File

@ -54,7 +54,7 @@ tests:
<li>打雷</li>
<li>同类</li>
</ol>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<input type="text" placeholder="猫咪图片地址">
<button type="submit">提交</button>
</form>

View File

@ -74,7 +74,7 @@ tests:
<li>打雷</li>
<li>同类</li>
</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"> Outdoor</label><br>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -85,7 +85,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -87,7 +87,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -85,7 +85,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -80,7 +80,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -83,7 +83,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -83,7 +83,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -81,7 +81,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -97,7 +97,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -88,7 +88,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>

View File

@ -85,7 +85,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -86,7 +86,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>

View File

@ -85,7 +85,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -88,7 +88,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<form action="https://freecatphotoapp.com/submit-cat-photo">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>

View File

@ -83,7 +83,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -82,7 +82,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -80,7 +80,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -87,7 +87,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>

View File

@ -86,7 +86,7 @@ tests:
<li>thunder</li>
<li>other cats</li>
</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"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>