Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Spellsmith (talk | contribs) |
Spellsmith (talk | contribs) |
||
| 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'); | ||
| − | + | $(('div.mw-htmlform-field-HTMLInfoField').siblings('mw-htmlform-field-HTMLTextField'):has(input#mw-input-captchaWord)').css('border: 1px solid red; padding: 10px;background-color: rgba(255,0,0,0.2)'); | |
}); | }); | ||
Revision as of 19:07, 15 June 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');
$(('div.mw-htmlform-field-HTMLInfoField').siblings('mw-htmlform-field-HTMLTextField'):has(input#mw-input-captchaWord)').css('border: 1px solid red; padding: 10px;background-color: rgba(255,0,0,0.2)');
});