Difference between revisions of "MediaWiki:Common.js"

From SWL Roleplay Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
   $('div#content.mw-body:has(div.faction_cov)').css('background', '#0d1623');
 
   $('div#content.mw-body:has(div.faction_cov)').css('background', '#0d1623');
 
   $('div#content.mw-body:has(div.faction_orochi)').css('background', '#000');
 
   $('div#content.mw-body:has(div.faction_orochi)').css('background', '#000');
  $('tr:has(td.illuminati)').css('background', '#8dcce4');
 
  $('tr:has(td.dragon)').css('background', '#bddfbc');
 
  $('tr:has(td.neutral)').css('background', '#dfdebc');
 
  $('tr:has(td.cov)').css('background', '#bddfbc');
 
  $('tr:has(td.orochi)').css('background', '#ccc');
 
  
 
});
 
});

Revision as of 04:13, 16 May 2017

/* 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');

});