MediaWiki:Vector.js
From Saint Seiya Awakening Wiki
Revision as of 15:49, 13 September 2019 by Erwinbantilan (talk | contribs) (Created page with "→Any JavaScript here will be loaded for users using the Vector skin: var bannerCode = '<img src="https://cdn.gamingph.com/wp-content/uploads/2019/07/xchess-rush-300-250-c...")
Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* Any JavaScript here will be loaded for users using the Vector skin */ var bannerCode = '<img src="https://cdn.gamingph.com/wp-content/uploads/2019/07/xchess-rush-300-250-creatives.jpg" width="300" height="250" />'; var bannerDisplay = true; if ( bannerDisplay == true ) { if ( skin == 'vector' ) { var bannerRef = document.getElementById('p-User_Fanon_Portals'); var bannerParent = bannerRef.parentNode; var bannerNewLink = document.createElement('div'); bannerNewLink.id = 'right-banner'; bannerNewLink.innerHTML = bannerCode; bannerParent.insertBefore(bannerNewLink, bannerRef); $('#right-banner').css({ 'width' : '125px', 'height' : '300px', 'float' : 'right', 'clear' : 'right', 'border' : 'solid 2px #000000', 'color' : '#CCCCCC', 'background' : '#222222', 'padding' : '10px' }); } } else {}