MediaWiki:Timeless.js

From Fintech Lab Wiki
Revision as of 15:55, 1 June 2022 by 8000271 (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* 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('.footer-icons a')
socialLinks.forEach(element => {
  element.setAttribute('target', "_blank");
});