MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 1,365: Line 1,365:
         );
         );


    }
});
/*----------------------------8-6-2026---------------------------------------*/
$(function () {
    // Only for mobile Minerva skin
    if (mw.config.get('skin') !== 'minerva') {
        return;
    }
    var $content = $('.mw-parser-output');
    if (!$content.length) {
        return;
    }
    // Find author block
    var $author = $content.children('p').filter(function () {
        return $(this).find('span[style*="float:right"]').length > 0;
    }).first();
    // Find article content block
    var $poem = $content.children('.Poem2-Ekatra').first();
    if ($author.length && $poem.length) {
        $author.insertAfter($poem);
     }
     }


});
});