* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
1.1 KiB
1.1 KiB
id, title, challengeType, videoUrl, forumTopicId, dashedName
id | title | challengeType | videoUrl | forumTopicId | dashedName |
---|---|---|---|---|---|
bad87fed1348bd9aedf08833 | 删除 HTML 元素 | 0 | https://scrimba.com/p/pVMPUv/ckK73C9 | 17559 | delete-html-elements |
--description--
手机屏幕的空间是有限的。
让我们删除不必要的元素,开始设计我们的 CatPhotoApp。
--instructions--
任务:删除 h1
元素以简化视图。
--hints--
应删除 h1
元素。
assert(!code.match(/<h1>/gi) && !code.match(/<\/h1>/gi));
应保留 h2
元素。
assert(code.match(/<h2>[\w\W]*<\/h2>/gi));
应保留 p
元素。
assert(code.match(/<p>[\w\W]*<\/p>/gi));
--seed--
--seed-contents--
<h1>Hello World</h1>
<h2>CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
--solutions--
<h2>CatPhotoApp</h2><p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>