MediaWiki:Gadget-MobileScript.js: Difference between revisions

From Halopedia, the Halo wiki

mNo edit summary
mNo edit summary
 
Line 30: Line 30:
$(function() {
$(function() {
if ($('.navbox-section').length) {
if ($('.navbox-section').length) {
if ($.trim($('section:nth-last-of-type(2) .succession-box').first().prev().text()) == '')
$('section:nth-last-of-type(2) .succession-box').first().prev().css('display', 'none');
if ($('section:nth-last-of-type(2) > *:not(.succession-box):not(.mw-empty-elt)').length > 0)
$('section:nth-last-of-type(2) > .succession-box').detach().appendTo('.navbox-section');
if ($('section:nth-last-of-type(2) > *:not(.navbox):not(.mw-empty-elt)').length > 0
if ($('section:nth-last-of-type(2) > *:not(.navbox):not(.mw-empty-elt)').length > 0
  || $('.section-heading:nth-last-of-type(2) > .mw-headline#References').length > 0
  || $('.section-heading:nth-last-of-type(2) > .mw-headline#References').length > 0