Skip to content

Commit 2af7402

Browse files
authored
Fixing urls to start with 'https' (#1632)
Fixing urls to start with 'https'
2 parents 020dd85 + 6d2b959 commit 2af7402

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

2-ui/2-events/04-default-browser-action/1-why-return-false-fails/solution.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The fix is simple:
2020
}
2121
</script>
2222

23-
<a href="http://w3.org" onclick="*!*return handler()*/!*">w3.org</a>
23+
<a href="https://w3.org" onclick="*!*return handler()*/!*">w3.org</a>
2424
```
2525

2626
Also we can use `event.preventDefault()`, like this:
@@ -35,5 +35,5 @@ Also we can use `event.preventDefault()`, like this:
3535
*/!*
3636
</script>
3737

38-
<a href="http://w3.org" onclick="*!*handler(event)*/!*">w3.org</a>
38+
<a href="https://w3.org" onclick="*!*handler(event)*/!*">w3.org</a>
3939
```

2-ui/2-events/04-default-browser-action/1-why-return-false-fails/task.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Why in the code below `return false` doesn't work at all?
1414
}
1515
</script>
1616

17-
<a href="http://w3.org" onclick="handler()">the browser will go to w3.org</a>
17+
<a href="https://w3.org" onclick="handler()">the browser will go to w3.org</a>
1818
```
1919

2020
The browser follows the URL on click, but we don't want it.

2-ui/2-events/04-default-browser-action/2-catch-link-navigation/solution.view/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<fieldset id="contents">
1717
<legend>#contents</legend>
1818
<p>
19-
How about to read <a href="http://wikipedia.org">Wikipedia</a> or visit <a href="http://w3.org"><i>W3.org</i></a> and learn about modern standards?
19+
How about to read <a href="https://wikipedia.org">Wikipedia</a> or visit <a href="https://w3.org"><i>W3.org</i></a> and learn about modern standards?
2020
</p>
2121
</fieldset>
2222

2-ui/2-events/04-default-browser-action/2-catch-link-navigation/source.view/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<fieldset id="contents">
1717
<legend>#contents</legend>
1818
<p>
19-
How about to read <a href="http://wikipedia.org">Wikipedia</a> or visit <a href="http://w3.org"><i>W3.org</i></a> and learn about modern standards?
19+
How about to read <a href="https://wikipedia.org">Wikipedia</a> or visit <a href="https://w3.org"><i>W3.org</i></a> and learn about modern standards?
2020
</p>
2121
</fieldset>
2222

0 commit comments

Comments
 (0)