Update 'README.md'
This commit is contained in:
parent
c469e94a6d
commit
72e2b31341
15
README.md
15
README.md
@ -10,4 +10,17 @@ https://apunteak.lainoa.eus/post6035433e2a78d6208795d0c7
|
|||||||
|
|
||||||
## Test
|
## Test
|
||||||
node index.js
|
node index.js
|
||||||
[localhost:8080](http:localhost:8080){target="_blank"}
|
[localhost:8080](http:localhost:8080){target="_blank"}
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
var links = document.links;
|
||||||
|
for (var i = 0, linksLength = links.length; i < linksLength; i++) {
|
||||||
|
if (links[i].hostname != window.location.hostname) {
|
||||||
|
links[i].target = "_blank";
|
||||||
|
links[i].setAttribute("rel", "noopener noreferrer");
|
||||||
|
links[i].className += " externalLink";
|
||||||
|
} else {
|
||||||
|
links[i].className += " localLink";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})();
|
Loading…
Reference in New Issue
Block a user