1
0
mirror of https://github.com/gsi-upm/sitc synced 2024-11-18 04:22:28 +00:00
sitc/lod/tutorial/js/ext_links.js

9 lines
209 B
JavaScript
Raw Permalink Normal View History

2021-02-18 17:10:59 +00:00
$(document).ready(function() {
$('a').each(function() {
var a = new RegExp('/' + window.location.host + '/');
if (!a.test(this.href)) {
$(this).attr("target","_blank");
}
});
});