MediaWiki:Timeless.js: Difference between revisions
From Fintech Lab Wiki
(Created page with "→All JavaScript here will be loaded for users of the Timeless skin: var bocconi_logo = document.getElementById('p-banner'); bocconi_logo.setAttribute('href',"https://www....") |
No edit summary |
||
Line 1: | Line 1: | ||
/* All JavaScript here will be loaded for users of the Timeless skin */ | /* All JavaScript here will be loaded for users of the Timeless skin */ | ||
const bocconiLogo = document.getElementById('p-banner'); | |||
bocconiLogo.setAttribute('href',"https://www.unibocconi.it"); | |||
bocconiLogo.setAttribute('target',"_blank"); | |||
/* Add a target=_blank to all social links in footer */ | |||
const socialLinks = document.querySelectorAll('#f-socialsico a') | |||
socialLinks.forEach(element => { | |||
element.setAttribute('target',"_blank"); | |||
}); | |||
/* Add a target=_blank to all Algorand links in footer */ | |||
const algorandLinks = document.querySelectorAll('#f-algorandico a') | |||
algorandLinks.forEach(element => { | |||
element.setAttribute('target',"_blank"); | |||
}); |
Revision as of 15:49, 1 June 2022
/* All JavaScript here will be loaded for users of the Timeless skin */ const bocconiLogo = document.getElementById('p-banner'); bocconiLogo.setAttribute('href',"https://www.unibocconi.it"); bocconiLogo.setAttribute('target',"_blank"); /* Add a target=_blank to all social links in footer */ const socialLinks = document.querySelectorAll('#f-socialsico a') socialLinks.forEach(element => { element.setAttribute('target',"_blank"); }); /* Add a target=_blank to all Algorand links in footer */ const algorandLinks = document.querySelectorAll('#f-algorandico a') algorandLinks.forEach(element => { element.setAttribute('target',"_blank"); });