MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1,369: | Line 1,369: | ||
}); | }); | ||
/*----------------------------8-6-2026---------------------------------------*/ | /*----------------------------8-6-2026---------------------------------------*/ | ||
$ | $(function () { | ||
if (mw.config.get('skin') !== 'minerva') { | if (mw.config.get('skin') !== 'minerva') { | ||
| Line 1,383: | Line 1,383: | ||
var authorBlock = section.children('p').filter(function () { | var authorBlock = section.children('p').filter(function () { | ||
return $(this).find('span[style*="float:right"]').length | return $(this).find('span[style*="float:right"]').length; | ||
}).first(); | }).first(); | ||
var poemBlock = section.children('.Poem2-Ekatra').first(); | |||
if (authorBlock.length && poemBlock.length) { | |||
poemBlock.after(authorBlock); | |||
console.log('Author block moved'); | |||
} | } | ||
}); | }); | ||