Difference between revisions of "MediaWiki:Common.js"

From SWL Roleplay Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
   $('div#content.mw-body:has(div.faction_dragon)').css('background', '#0d1809');
 
   $('div#content.mw-body:has(div.faction_dragon)').css('background', '#0d1809');
 
   $('div#content.mw-body:has(div.faction_neutral)').css('background', '#181509');
 
   $('div#content.mw-body:has(div.faction_neutral)').css('background', '#181509');
   $('tr:has(td.illuminati)').css('background', '#8fe0ff');
+
   $('tr:has(td.illuminati)').css('background', '#8dcce4');
 
   $('tr:has(td.dragon)').css('background', '#bddfbc');
 
   $('tr:has(td.dragon)').css('background', '#bddfbc');
 
   $('tr:has(td.neutral)').css('background', '#dfdebc');
 
   $('tr:has(td.neutral)').css('background', '#dfdebc');
  
 
});
 
});

Revision as of 20:36, 26 April 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', '#090b18');
   $('div#content.mw-body:has(div.faction_dragon)').css('background', '#0d1809');
   $('div#content.mw-body:has(div.faction_neutral)').css('background', '#181509');
   $('tr:has(td.illuminati)').css('background', '#8dcce4');
   $('tr:has(td.dragon)').css('background', '#bddfbc');
   $('tr:has(td.neutral)').css('background', '#dfdebc');

});