Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Spellsmith (talk | contribs) |
Spellsmith (talk | contribs) |
||
| (21 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
| − | $('div#content.mw-body:has(div.faction_illuminati)').css('background', '# | + | $('div#content.mw-body:has(div.faction_illuminati)').css('background', '#0d1623'); |
| − | $('div#content.mw-body:has(div.faction_dragon)').css('background', '# | + | $('div#content.mw-body:has(div.faction_templar)').css('background', '#281010'); |
| − | $('div#content.mw-body:has(div.faction_neutral)').css('background', '# | + | $('div#content.mw-body:has(div.faction_dragon)').css('background', '#172a10'); |
| + | $('div#content.mw-body:has(div.faction_neutral)').css('background', '#232218'); | ||
| + | $('div#content.mw-body:has(div.faction_cov)').css('background', '#0d1623'); | ||
| + | $('div#content.mw-body:has(div.faction_orochi)').css('background', '#000'); | ||
| + | |||
| + | $('div#headertabs').siblings('#toc').css('display','none'); | ||
| + | |||
| + | $('div#template_sidebar').detach().insertAfter("#headertabs"); | ||
| + | |||
}); | }); | ||
Latest revision as of 23:41, 11 April 2022
/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function(){
$('div#content.mw-body:has(div.faction_illuminati)').css('background', '#0d1623');
$('div#content.mw-body:has(div.faction_templar)').css('background', '#281010');
$('div#content.mw-body:has(div.faction_dragon)').css('background', '#172a10');
$('div#content.mw-body:has(div.faction_neutral)').css('background', '#232218');
$('div#content.mw-body:has(div.faction_cov)').css('background', '#0d1623');
$('div#content.mw-body:has(div.faction_orochi)').css('background', '#000');
$('div#headertabs').siblings('#toc').css('display','none');
$('div#template_sidebar').detach().insertAfter("#headertabs");
});