changed http to https in HTML5 & CSS3 #7613
+43
−43
...ront-end-development-certification/html5-and-css.json
@@ -1291,11 +1291,11 @@ | ||
"<p class=\"red-text\">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>" | ||
], | ||
"tests": [ | ||
- "assert($(\"a[href=\\\"http://www.freecatphotoapp.com\\\"]\").length > 0, 'message: You need an <code>a</code> element that links to \"http://www.freecatphotoapp.com\".');", | ||
+ "assert($(\"a[href=\\\"https://www.freecatphotoapp.com\\\"]\").length > 0, 'message: You need an <code>a</code> element that links to \"https://www.freecatphotoapp.com\".');", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
...ront-end-development-certification/html5-and-css.json
"assert($(\"a\").text().match(/cat\\sphotos/gi), 'message: Your <code>a</code> element should have the anchor text of \"cat photos\"');", | ||
"assert($(\"p\") && $(\"p\").length > 2, 'message: Create a new <code>p</code> element around your <code>a</code> element.');", | ||
- "assert($(\"a[href=\\\"http://www.freecatphotoapp.com\\\"]\").parent().is(\"p\"), 'message: Your <code>a</code> element should be nested within your new <code>p</code> element.');", | ||
- "assert($(\"a[href=\\\"http://www.freecatphotoapp.com\\\"]\").parent().text().match(/^\\s*View\\smore\\s/gi), 'message: Your <code>p</code> element should have the text \"View more \" (with a space after it).');", | ||
+ "assert($(\"a[href=\\\"https://www.freecatphotoapp.com\\\"]\").parent().is(\"p\"), 'message: Your <code>a</code> element should be nested within your new <code>p</code> element.');", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
...ront-end-development-certification/html5-and-css.json
"assert($(\"a\").text().match(/cat\\sphotos/gi), 'message: Your <code>a</code> element should have the anchor text of \"cat photos\"');", | ||
"assert($(\"p\") && $(\"p\").length > 2, 'message: Create a new <code>p</code> element around your <code>a</code> element.');", | ||
- "assert($(\"a[href=\\\"http://www.freecatphotoapp.com\\\"]\").parent().is(\"p\"), 'message: Your <code>a</code> element should be nested within your new <code>p</code> element.');", | ||
- "assert($(\"a[href=\\\"http://www.freecatphotoapp.com\\\"]\").parent().text().match(/^\\s*View\\smore\\s/gi), 'message: Your <code>p</code> element should have the text \"View more \" (with a space after it).');", | ||
+ "assert($(\"a[href=\\\"https://www.freecatphotoapp.com\\\"]\").parent().is(\"p\"), 'message: Your <code>a</code> element should be nested within your new <code>p</code> element.');", | ||
+ "assert($(\"a[href=\\\"https://www.freecatphotoapp.com\\\"]\").parent().text().match(/^\\s*View\\smore\\s/gi), 'message: Your <code>p</code> element should have the text \"View more \" (with a space after it).');", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
...ront-end-development-certification/html5-and-css.json
@@ -1283,7 +1283,7 @@ | ||
"", | ||
"<h2 class=\"red-text\">CatPhotoApp</h2>", | ||
"", | ||
- "<a href=\"http://www.freecatphotoapp.com\">cat photos</a>", | ||
+ "<a href=\"https://www.freecatphotoapp.com\">cat photos</a>", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
...ront-end-development-certification/html5-and-css.json
@@ -1363,7 +1363,7 @@ | ||
"", | ||
"<h2 class=\"red-text\">CatPhotoApp</h2>", | ||
"", | ||
- "<p>Click here for <a href=\"http://www.freecatphotoapp.com\">cat photos</a>.</p>", | ||
+ "<p>Click here for <a href=\"https://www.freecatphotoapp.com\">cat photos</a>.</p>", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
...ront-end-development-certification/html5-and-css.json
@@ -1212,7 +1212,7 @@ | ||
], | ||
"tests": [ | ||
"assert((/cat photos/gi).test($(\"a\").text()), 'message: Your <code>a</code> element should have the <code>anchor text</code> of \"cat photos\".');", | ||
- "assert(/http:\\/\\/freecatphotoapp\\.com/gi.test($(\"a\").attr(\"href\")), 'message: You need an <code>a</code> element that links to <code>http://freecatphotoapp.com</code>');", | ||
+ "assert(/https:\\/\\/freecatphotoapp\\.com/gi.test($(\"a\").attr(\"href\")), 'message: You need an <code>a</code> element that links to <code>http://freecatphotoapp.com</code>');", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
@AkiraLaine Seems you missed out on some of the reversals.
I'll take this up.
This looks good by the diff and apparently should not break anything, but needs to be tested, while other wise good to go.
If anyone is available, please go ahead, else I'll be taking this up later today.
...ront-end-development-certification/html5-and-css.json
@@ -1292,7 +1292,7 @@ | ||
], | ||
"tests": [ | ||
"assert($(\"a[href=\\\"http://www.freecatphotoapp.com\\\"]\").length > 0, 'message: You need an <code>a</code> element that links to \"http://www.freecatphotoapp.com\".');", | ||
- "assert($(\"a\").text().match(/cat\\sphotos/gi), 'message: Your <code>a</code> element should have the anchor text of \"cat photos\"');", | ||
+ "assert($(\"a\").text().match(/cat\\sphotos/gi), 'mssage: Your <code>a</code> element should have the anchor text of \"cat photos\"');", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
...ront-end-development-certification/html5-and-css.json
@@ -829,7 +829,7 @@ | ||
"description": [ | ||
"You can add images to your website by using the <code>img</code> element, and point to a specific image's URL using the <code>src</code> attribute.", | ||
"An example of this would be:", | ||
- "<code><img src=\"http://www.your-image-source.com/your-image.jpg\"></code>", | ||
+ "<code><img src=\"https://www.your-image-source.com/your-image.jpg\"></code>", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
Thanks @bugron for finding those. Updated description and PR
...ront-end-development-certification/html5-and-css.json
@@ -686,7 +686,7 @@ | ||
"Agora, vamos importar e aplicar um estilo de fonte por meio do Google Fonts.", | ||
"Primeiro, faça um <code>chamado</code> ao Google Fonts para poder utilizar a fonte chamada <code>Lobster</code> e carregá-la em seu HTML.", | ||
"Para fazer isso, copie o código abaixo e insira-o na parte superior de seu editor de texto:", | ||
- "<code><link href=\"http://fonts.googleapis.com/css?family=Lobster\" rel=\"stylesheet\" type=\"text/css\"></code>", | ||
+ "<code><link href=\"https://fonts.googleapis.com/css?family=Lobster\" rel=\"stylesheet\" type=\"text/css\"></code>", |
Use protocol independent link Nope that's going to confuse people. Its better this way. But having said that this could be done in actual code logic for FCC but not in challenges. Can be shocker to beginners.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
1 check passed
Details
continuous-integration/travis-ci/pr
The Travis CI build passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As described in title.
closes #7584
closes #7616