Difference between revisions of "User:RJackson/vector.js"

From Team Fortress Wiki
Jump to: navigation, search
(Remove custom JS)
(This is Scout. Rainbows make me cry!)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
const logo = document.querySelector('.mw-wiki-logo');
 +
logo.style.transform = 'rotate(' + Math.random() * 360 + 'deg)';
  
 +
// Im a profeional developer so i must make sure there is no flash of unrotated content
 +
logo.setAttribute('angleshaha', true);
 +
 +
// doesnt work in safari, but works in practically everything else
 +
$('link[rel~="icon"]').attr('href', '/w/images/d/d0/User_disguises_as_scout.png');

Latest revision as of 21:02, 25 March 2021

const logo = document.querySelector('.mw-wiki-logo');
logo.style.transform = 'rotate(' + Math.random() * 360 + 'deg)';

// Im a profeional developer so i must make sure there is no flash of unrotated content
logo.setAttribute('angleshaha', true);

// doesnt work in safari, but works in practically everything else
$('link[rel~="icon"]').attr('href', '/w/images/d/d0/User_disguises_as_scout.png');