Difference between revisions of "User:RJackson/vector.js"
(can i not use template strings???) |
|||
Line 1: | Line 1: | ||
const logo = document.querySelector('.mw-wiki-logo'); | const logo = document.querySelector('.mw-wiki-logo'); | ||
− | logo.style.transform = | + | logo.style.transform = 'rotate(' + Math.random() * 360 + 'deg)'; |
// Im a profeional developer so i must make sure there is no flash of unrotated content | // Im a profeional developer so i must make sure there is no flash of unrotated content | ||
logo.setAttribute('angleshaha', true); | logo.setAttribute('angleshaha', true); |
Revision as of 09:04, 30 September 2020
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);