|
|
| Line 1,369: |
Line 1,369: |
| }); | | }); |
| /*----------------------------8-6-2026---------------------------------------*/ | | /*----------------------------8-6-2026---------------------------------------*/ |
| $(function () {
| |
|
| |
| if (mw.config.get('skin') !== 'minerva') {
| |
| return;
| |
| }
| |
|
| |
| var observer = new MutationObserver(function () {
| |
|
| |
| var section = $('.mf-section-0');
| |
|
| |
| var authorBlock = section.children('p').filter(function () {
| |
| return $(this).find('span[style*="float:right"]').length;
| |
| }).first();
| |
|
| |
| var poemBlock = section.children('.Poem2-Ekatra').first();
| |
|
| |
| if (authorBlock.length) {
| |
| authorBlock.hide();
| |
| }
| |
|
| |
| if (authorBlock.length && poemBlock.length) {
| |
|
| |
| poemBlock.after(authorBlock);
| |
|
| |
| authorBlock.show();
| |
|
| |
| observer.disconnect();
| |
|
| |
| console.log('Author block moved');
| |
| }
| |
|
| |
| });
| |
|
| |
| observer.observe(document.body, {
| |
| childList: true,
| |
| subtree: true
| |
| });
| |
|
| |
| });
| |