Skip to content

Commit

Permalink
Fixing Links
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksarantinoudis committed Apr 4, 2024
1 parent f3b7b0c commit 29959b6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions publications.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@

<script>

$(document).ready(function(){
$('.bibbase_paper_content a').filter(function(){
return $(this).attr('href').substr(0,8) == "https://";
}).attr("target", "_blank");
document.querySelectorAll('.bibbase_paper_content a')
.forEach(function(x) {
var url = new URL(x.href);
if (url.host !== window.location.host) {
x.setAttribute('target', '_blank');
}
});

</script>
Expand Down

0 comments on commit 29959b6

Please sign in to comment.