Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: // Mattyverse specific $(document).ready(function() { if (mw.config.get('wgCategories').indexO...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
if (mw.config.get('wgCategories').indexOf('Mattyverse') !== -1) { | if (mw.config.get('wgCategories').indexOf('Mattyverse') !== -1) { | ||
+ | |||
+ | //Body | ||
$('body').css({ | $('body').css({ | ||
− | 'background': '#B6E8FF url(https://www.worldofsp.com/wiki/images/ | + | 'background': '#B6E8FF url(https://www.worldofsp.com/wiki/images/8/8f/MattyversePageBG.png) 0 0 repeat' |
+ | }); | ||
+ | |||
+ | //Top of the page | ||
+ | $('#mw-head, mw-head-base').css({ | ||
+ | 'background': '#B6E8FF url(https://www.worldofsp.com/wiki/images/5/52/MattyversePageBGTop.png) 0 0 repeat' | ||
+ | }); | ||
+ | |||
+ | //Page Body | ||
+ | $('div.pBody, div#content').css({ | ||
+ | 'background': '#d0e4fd' | ||
}); | }); | ||
} | } | ||
}); | }); |
Latest revision as of 15:45, 23 February 2025
/* Any JavaScript here will be loaded for all users on every page load. */ // Mattyverse specific $(document).ready(function() { if (mw.config.get('wgCategories').indexOf('Mattyverse') !== -1) { //Body $('body').css({ 'background': '#B6E8FF url(https://www.worldofsp.com/wiki/images/8/8f/MattyversePageBG.png) 0 0 repeat' }); //Top of the page $('#mw-head, mw-head-base').css({ 'background': '#B6E8FF url(https://www.worldofsp.com/wiki/images/5/52/MattyversePageBGTop.png) 0 0 repeat' }); //Page Body $('div.pBody, div#content').css({ 'background': '#d0e4fd' }); } });