Skip to content

Commit

Permalink
open links in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
nrchtct committed Dec 13, 2023
1 parent 96f0478 commit 8818710
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ async function updateView(){
document.querySelector('footer').style.visibility = 'visible';

animation()

// open links in new tab/window
document.querySelectorAll('a').forEach(link => {
if (!link.getAttribute('href').startsWith('#')) {
link.target = '_blank';
}
});
}
function updateItemPosition(item) {
//set height of session according to mobile or desktopy
Expand Down

0 comments on commit 8818710

Please sign in to comment.