MediaWiki:Common.js: Difference between revisions

No edit summary
Tag: Manual revert
No edit summary
Line 1,375: Line 1,375:
     }
     }


     setTimeout(function () {
     var section = $('.mf-section-0');


        var section = $('.mf-section-0');
    if (!section.length) {
        return;
    }


        if (!section.length) {
    var authorBlock = section.children('p').filter(function () {
            return;
        return $(this).find('span[style*="float:right"]').length;
        }
    }).first();


         var authorBlock = section.children('p').filter(function () {
    if (authorBlock.length) {
         authorBlock.addClass('author-moving');
    }


            return $(this).find('span[style*="float:right"]').length;
    mw.hook('wikipage.content').add(function () {
 
        }).first();


         var poemBlock = section.children('.Poem2-Ekatra').first();
         var poemBlock = section.children('.Poem2-Ekatra').first();
Line 1,395: Line 1,397:
             poemBlock.after(authorBlock);
             poemBlock.after(authorBlock);


             console.log('Author block moved');
             authorBlock.removeClass('author-moving');
 
         }
         }


     }, 500);
     });


});
});