mirror of
https://github.com/gsi-upm/sitc
synced 2024-11-13 10:22:27 +00:00
9 lines
209 B
JavaScript
9 lines
209 B
JavaScript
$(document).ready(function() {
|
|
$('a').each(function() {
|
|
var a = new RegExp('/' + window.location.host + '/');
|
|
if (!a.test(this.href)) {
|
|
$(this).attr("target","_blank");
|
|
}
|
|
});
|
|
});
|