MediaWiki:Common.js: Difference between revisions
From Elwiki
No edit summary |
No edit summary |
||
Line 334: | Line 334: | ||
$("#ca-ve-edit").hide(); | $("#ca-ve-edit").hide(); | ||
var rows_to_highlight = [ | |||
'Normal', | |||
'[Enhanced]', | |||
'PvE', | |||
'PvP' | |||
] | |||
rows_to_highlight.forEach(function (rowContent) { | |||
var rows = $(`[class^="colortable-"] td b:contains("${rowContent}")`); | |||
rows.each(function () { | |||
if ($(this).text() == rowContent) $(this).parent().addClass('tone-4'); | |||
}) | |||
}) | |||
}); | }); | ||
Line 444: | Line 452: | ||
}); | }); | ||
setTimeout(function () { | setTimeout(function () { $('.current-info .segment-contents > .mw-collapsible-content').addClass('shown') }, 100); | ||
if (typeof character_banner_exists !== undefined) mw.loader.load('https://elwiki.net/wiki/index.php?title=MediaWiki:Character-Banner.js&action=raw&ctype=text/javascript'); | if (typeof character_banner_exists !== undefined) mw.loader.load('https://elwiki.net/wiki/index.php?title=MediaWiki:Character-Banner.js&action=raw&ctype=text/javascript'); |